PDFMerger icon indicating copy to clipboard operation
PDFMerger copied to clipboard

How to use Setasign PDF Parser 2?

Open kaleidoscopique opened this issue 5 years ago • 2 comments

Hi,

I just bought https://www.setasign.com/products/fpdi-pdf-parser/manual/ to use newer versions of PDF, but unfortunately PDFMerger is using is own version of FPDI :

public function __construct()
{
        if(!class_exists("FPDF")) {
            require_once('fpdf/fpdf.php');
        }
        if(!class_exists("FPDI")) {
            require_once('fpdi/fpdi.php');
        }
    }

If I comment out these lines, it doesn't work anymore. My composer.json is looking like:

"require": 
    {
        "setasign/fpdi-fpdf": "^2.0.0",
        "setasign/fpdi_pdf-parser": "^2.0",
        
        "rguedes/pdfmerger": "dev-master",
...
}

I thought it should work because I'm loading setasign's librairies before your library, but no :-/

Thanks a lot, Stéphane

kaleidoscopique avatar Apr 25 '19 15:04 kaleidoscopique

Hey did u get this working, I also want to buy the paid version but want to make I’ll be able to make this working

allstartechsolutions avatar Jul 13 '19 00:07 allstartechsolutions

Hey did u get this working, I also want to buy the paid version but want to make I’ll be able to make this working

Unfortunately no :/ My only solution for now would be to buy this: https://www.setasign.com/products/setapdf-merger/pricing/

If you get this working, please advice, I'm sure you could help a lot of people!

Thanks!

kaleidoscopique avatar Jul 15 '19 10:07 kaleidoscopique