libmergepdf icon indicating copy to clipboard operation
libmergepdf copied to clipboard

PDF 1.7 merge not working

Open applyACS opened this issue 4 years ago • 9 comments

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

applyACS avatar Jun 05 '20 14:06 applyACS

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?

hanneskod avatar Jun 08 '20 09:06 hanneskod

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

applyACS avatar Jun 09 '20 05:06 applyACS

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

lgme avatar Nov 06 '20 08:11 lgme

@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 avatar Nov 06 '20 08:11 kaystrobach

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

lgme avatar Nov 06 '20 08:11 lgme

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

kaystrobach avatar Nov 06 '20 09:11 kaystrobach

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

kaystrobach avatar Dec 07 '20 18:12 kaystrobach

Any news?

pulponair avatar Jan 29 '21 09:01 pulponair

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

OlexandrPopov avatar Feb 03 '21 09:02 OlexandrPopov