Skip to content

Links lost in merged PDF #89

@MarcPinnell

Description

@MarcPinnell

I am observing web links being lost in merged documents. All packages are up to date (via composer). I have verified that the link exists and works in base PDF, but after merging, the link "blue" type indicating the link is still there, but the link functionality is lost.

I found in past issues the fix of:

$template = $fpdi->importPage($pageNr, importExternalLinks: true);

But it doesn't appear to make any change in the final merged PDF.

I am merging like this:

$merger = new Merger(new TcpdiDriver);

$merger->addFile($path.'pdf_cat_front.pdf');
$merger->addFile($path.'tmp/cat_guts.pdf');
$merger->addFile($path.'pdf_cat_back.pdf');
$createdPdf = $merger->merge();

Is that correct? The "tmp/cat_guts.pdf" file is the one with the links. The merge works great, other than the missing links.

Thanks in advance for any help you can give.

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