Skip to content

How to add a file into the PDF, without adding annotation? #578

Open
@thierryler

Description

@thierryler

Hello,

To create an invoice, using the factur-x format, I need to embed an XML file into the PDF. The only way, i've founded was to add an annotation:

$pdf->Annotation(0,0,0,0, 'invoice', array(
    'Subtype' => 'FileAttachment', 
    'Name'    => 'PushPin', 
    'FS'      => 'factur-x.xml'
));

But:

  1. that adds an useless annotation
  2. the file appears twice (in the file list) when I open the PDF with Accrobat Reader

Is there a way to simply add the file, without annotation?

Thx
Th.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions