Pdf file in dita map

Post here questions and problems related to editing and publishing DITA content.
MWdal
Posts: 20
Joined: Thu Jun 09, 2022 2:49 pm

Pdf file in dita map

Post 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
julien_lacour
Posts: 496
Joined: Wed Oct 16, 2019 3:47 pm

Re: Pdf file in dita map

Post 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
MWdal
Posts: 20
Joined: Thu Jun 09, 2022 2:49 pm

Re: Pdf file in dita map

Post 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
julien_lacour
Posts: 496
Joined: Wed Oct 16, 2019 3:47 pm

Re: Pdf file in dita map

Post 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
Post Reply