Closed JMHAVANCE closed 2 years ago
Hi,
sorry, the last commit had an error... I have reverted it. Now it is working.
Thank you for the quick reply!
I've pulled the latest commit but I am still having issues:
> cat .\.git\refs\heads\main
4c92b5f119d730c0dc6d3729c7efbbb04b2dc749
> php pdfrebuild.php examples/testdoc.pdf > testdoc-rebuilt.pdf
Debug info at C:\xampp\htdocs\signer\sapp\src\PDFDoc.php:755: generating xref using classic xref...trailer
A PDF is generated, but when opening in Adobe I get this message:
Adobe Acrobat Reader could no open 'testdoc-rebuilt.pdf' because it is either not a supported file type or because the file has been damaged (for example, it was sent as an email attachment and wasn't correctly decoded).
This happens when trying to sign the documents as well.
Hi,
that is a problem that has to do with pipes in Windows. In Linux and MacOS, it works as expected. If you write the result to a file instead of using pipes, it works as expected.
To show how to do it, I have modified the example pdfrebuild.php
to accept an extra parameter to write to a file.
You're The Man Now, Dog. =]
(Thank you!!)
PS C:\xampp\htdocs\signer\sapp> php pdfrebuild.php examples/testdoc.pdf > testdoc-rebuilt.pdf
I am using windows with a fresh install using these instructions: