PhpSpreadsheet icon indicating copy to clipboard operation
PhpSpreadsheet copied to clipboard

Issue saving PDF file from Excel

Open ALGAzevedo opened this issue 1 year ago • 1 comments

This is:

- [x ] a bug report
- [ ] a feature request
- [ ] **not** a usage question (ask them on https://stackoverflow.com/questions/tagged/phpspreadsheet or https://gitter.im/PHPOffice/PhpSpreadsheet)

What is the expected behavior?

Save a pdf file from an xlsx

What is the current behavior?

The excel is created and saved but the pdf is saved with 0kb and cant open it.

What are the steps to reproduce?

Please provide a Minimal, Complete, and Verifiable example of code that exhibits the issue without relying on an external Excel file or a web server:

I am using this block of code. It used to work with mpdf but it stoped and I tried all 3 and they dont work for some reason I can not understand. I also have tried every way in the documentation.

image

What features do you think are causing the issue

  • [ ] Reader
  • [ x] Writer
  • [ ] Styles
  • [ ] Data Validations
  • [ ] Formula Calculations
  • [ ] Charts
  • [ ] AutoFilter
  • [ ] Form Elements

Does an issue affect all spreadsheet file formats? If not, which formats are affected?

pdf

Which versions of PhpSpreadsheet and PHP are affected?

php 8.2 spreadsheets 1.29

ALGAzevedo avatar Aug 07 '24 10:08 ALGAzevedo

Can you upload the spreadsheet that you are unable to write to Pdf?

oleibman avatar Feb 24 '25 01:02 oleibman

No update in 6 months, unable to debug. Closing.

oleibman avatar Aug 12 '25 18:08 oleibman