Skip to content
This repository was archived by the owner on May 21, 2021. It is now read-only.
This repository was archived by the owner on May 21, 2021. It is now read-only.

How to use Setasign PDF Parser 2? #15

Description

@kaleidoscopique

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions