Fpdi Pdf Parser Php Download

0 views
Skip to first unread message
Message has been deleted

Christian Erdmann

unread,
Jul 10, 2024, 5:09:03 AM7/10/24
to blasbetedpi

I hit this same limitation in a project I'm currently working on, and ended up creating my own parser based on TCPDF's parser which works with a modified verision of FPDI called TCPDI and an unmodified copy of FPDF_TPL. It works with TCPDF 6, and supports up to at least PDF 1.6 (I haven't got a 1.7 PDF handy to try, but I'll be hunting one down shortly to make sure it works).

If you're still wanting to do this, please feel free to try out TCPDI / tcpdi_parser - if you encounter any issues, please report them via Github and I'll look into them. Basic installation and usage instructions can be found in the TCPDI README.

Fpdi Pdf Parser Php Download


Download Zip https://cinurl.com/2yV6C2



I proceeded to visit the link, which advised to use the commercial addon fpdi-pdf-parser. This file is already included with the rest of the files. And in the installation steps, it is said that there are no other steps that are needed to be made, but I am still getting the same error.

TL;DR For simple PDF text and metadata extraction, use pdfparser. For advanced options, try pdftotext and pdfinfo from Poppler. To join or split PDF files, encrypt them or apply watermarks, use pdftk. To make a JPEG or PNG screenshot of a PDF, use ImageMagick or pdftocairo.

This is a library made by the creator of TCPDF, a well-known library generating PDF files. This parser draws less interest than the first one, though the author has over 15 years of experience handling PDFs.

Exception - This document ([tempdir]/assignsubmission_pdf/074d3f9d0a018d93a2ab5c0f58d6897506c8ad9csub/coversheet.pdf) probably uses a compression technique which is not supported by the free parser shipped with FPDI. (See -pdf-parser for more details)

While I can't speak for the status of tcpdf_import / tcpdf_parser, I can tell you that I've just released a pair of projects: TCPDI and tcpdi_parser, which work together with fpdf_tpl to provide PDF importing for TCPDF.

I've put these together because FPDI doesn't support PDFs above 1.4 unless you pay for a commercial addon, and I noticed that tcpdf_parser could cope with at least some PDFs above 1.4. To that end, tcpdi_parser is based on tcpdf_parser, with fixes and enhancements as well as some changes to make it virtually a drop-in replacement for FPDI's parser; TCPDI is essentially a clone of FPDI except using tcpdi_parser instead of FPDI's parser.

You can get both projects from my Github: pauln/tcpdi and pauln/tcpdi_parser - with brief instructions provided in TCPDI's README. You'll also need to grab a copy of fpdf_tpl, if you don't already have it - the link is in the TCPDI README.

The tcpdf_parser.php class is almost complete and can be used in the current status. Only some advanced functions are not yet implemented, like decoding encrypted documents and support for non common filters (tcpdf_filters.php).

The pauln approach doesn't make much sense to me because it has duplicate the old code that is also broken. I suggest pauln to create a new class like tcpdf_import and implement there the FPDI-like approach, using the external tcpdf_parser class.

I recently moved my Moodle to a new VPS server form Amazons AWS and now experiencing many problems. The biggest is that most pdf's appear corrupted, even when uploading. I've looked into every possibility I can think of and believe there is an Assignment plugin (the fpdi parser) that is not working properly with this new server ( running php 5.6 on CentOS 6.8 and Moodle 3.1.2+ )

I am running the following code and giving me this error : FPDF error: This document (testcopy.pdf) probably uses a compression technique which is not supported by the free parser shipped with FPDI. I used another pdf named test.pdf and that works fine but it is giving me error in testcopy.pdf.

aa06259810
Reply all
Reply to author
Forward
0 new messages