Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

FPDI free parser that supports PDF version higher than 1.4

Tags:

php

fpdi

Is there a free/open-source PDF parser out there that can do the job? The free parser that comes with FPDI only supports PDF version up to 1.4. I tried TCPDF but it didn't work.

I know I can change the PDF version of a PDF file thru Acrobat but I had experienced bug on doing this.

I am using FPDI to watermark PDFs we're selling on our company. I noticed one of the PDF I downgraded to 1.4 from 1.7 thru Acrobat looks pretty much the same but after my watermark function is done, the PDF will have white spaces on the right and bottom part of my cover page which has a black background. In short, the PDF looked bad to sell after the whole process.

like image 386
kevinandrada Avatar asked Jun 14 '13 05:06

kevinandrada


People also ask

What is Fpdi PDF parser?

This is a testscript that allows you to upload an existing PDF and test if it works with the separate FPDI PDF-Parser.

Is it possible to parse a PDF?

A PDF Parser (also sometimes called PDF scraper) is a software that can be used to extract data from PDF documents. PDF Parsers can come in form of libraries for developers or as standalone software products for end-users. PDF Parsers are used mainly to extract data from a batch of PDF files.

What is PDF parser tool?

A PDF parser, or PDF scraper, is a tool that extracts data from PDF documents. Document parsing is a popular approach to extract text, images or data from inaccessible formats such as PDFs.


1 Answers

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.

like image 131
NullColaShip Avatar answered Sep 21 '22 14:09

NullColaShip