Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PDF 1.7 merge not working #49

Open
applyACS opened this issue Jun 5, 2020 · 9 comments
Open

PDF 1.7 merge not working #49

applyACS opened this issue Jun 5, 2020 · 9 comments
Labels

Comments

@applyACS
Copy link

applyACS commented Jun 5, 2020

When merging with PDF 1.7 version it is not working
"'Array to string conversion' in 'raw-content'" - I get this when using TcpdiDriver
and of course:
"'This PDF document probably uses a compression technique which is not supported by the free parser shipped with FPDI. (See https://www.setasign.com/fpdi-pdf-parser for more details)' in 'raw-content'" - this for FPDI

@hanneskod
Copy link
Owner

Yes some pdf features seems to make tcpdi blow up. I need the pdfs you are trying to merge to be able to reproduce. What php and lib versions are you using?

@applyACS
Copy link
Author

applyACS commented Jun 9, 2020

1582646396_phpXTaAZU.pdf
This is the pdf 1.7. The other one is generated using wkhtmltopdf(no issue here).
php 7.3 or 7.4
iio/libmergepdf: 4.0.3

@lgme
Copy link

lgme commented Nov 6, 2020

I encounter the same issues as above. Do you have any results @hanneskod ?

@kaystrobach
Copy link
Collaborator

@lgme can you please also provide the file - this makes it easier to debug and maybe raise a bugreport at Tcpdi and other used projects.

@kaystrobach kaystrobach added the bug label Nov 6, 2020
@lgme
Copy link

lgme commented Nov 6, 2020

@kaystrobach Sure. Here:
p1.pdf
p2.pdf

@kaystrobach
Copy link
Collaborator

awesome! - will try to check that in the next days.

@kaystrobach
Copy link
Collaborator

sry took longer than expected, will try to take a look during the holidays

@pulponair
Copy link

Any news?

@OlexandrPopov
Copy link

It seems that for PDF 1.7 you need a commercial FPDI PDF-Parser. See more details here and here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

6 participants