Page 1 of 1

Pdf file in dita map

Posted: Tue Oct 04, 2022 9:30 am
by MWdal
Is it possible to add a pdf file to a dita map (as appendix, topicref or ...) and get its content printed in the output pdf?
thanks, Mikael

Re: Pdf file in dita map

Posted: Tue Oct 04, 2022 4:07 pm
by julien_lacour
Hello,

Currently it isn't possible to merge a PDF into the currently generating ditamap.
The only available solution at this moment are the following:
  • Refer the PDF as a link, it will appear in the TOC and the link will open the PDF in another tab of the PDF Viewer

    Code: Select all

    <topicref href="flowers.pdf" format="pdf" navtitle="Flowers"/>
    
  • Refer the PDF as an image, it will appear in the generated content but only the first page will be displayed

    Code: Select all

    <image href="flowers.pdf" id="image_xsw_v2q_bvb"/>
    
We have feature requests to improve the integration of separate PDFs in the process. In your case, what are you trying to achieve?
- adding the PDF at the beginning or at the end of the generated output
- adding the PDF inside the generated output at a given location

Regards,
Julien

Re: Pdf file in dita map

Posted: Fri Oct 07, 2022 10:15 am
by MWdal
Thanks Julien, then I understand how it works.
Option " adding the PDF inside the generated output at a given location" would be the best one for us.
/Mikael

Re: Pdf file in dita map

Posted: Fri Oct 07, 2022 10:41 am
by julien_lacour
Hello Mikael,

I added your vote into the feature request and I will notify this thread once it will be available.

Regards,
Julien