DITA TO PDF

Post here questions and problems related to editing and publishing DITA content.
catherine
Posts: 158
Joined: Fri Nov 10, 2017 8:16 am

DITA TO PDF

Post by catherine »

Hi,
I got a dita map named 'help center'.
This map contains introduction part, getting started, user guide, FAQ, API.
I taged each part, and generate different PDF files, like
introduction.pdf
Getting started.pdf
User guide.pdf
.......

Everything works well, but, the problem is...
The PDF file title is the map title 'help ce 'help center', but not 'introduction' , 'user guide' or others.
For example, in getting started.pdf file. PDF title is 'help center'. The toc is as below

Code: Select all

Getting started
Topic 1
Topic1.1
Topic 1.2
Topic 2
Topic 2.1
Topic 2.2

My disired PDF structure is that the PDF title is 'getting started'. TOC is below

Code: Select all


  Topic 1
Topic1.1
Topic 1.2
Topic 2
Topic 2.1
Topic 2.2
I think there should be one parameter can solve this problem. Or, how to do the PDF customization to achieve this?

Would appreciate for your any reply!
Thanks so much!
Radu
Posts: 9057
Joined: Fri Jul 09, 2004 5:18 pm

Re: DITA TO PDF

Post by Radu »

Hi Catherine,

You can also add profiling conditions inside the main DITA Map title like:

Code: Select all

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE map PUBLIC "-//OASIS//DTD DITA Map//EN" "map.dtd">
<map>
<title><ph product="A">ProductA</ph><ph product="B">ProductB</ph></title>

.....
Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
catherine
Posts: 158
Joined: Fri Nov 10, 2017 8:16 am

Re: DITA TO PDF

Post by catherine »

Hi, Radu
Thanks so much for you help.
The primal problem is not the PDF title, but the TOC in the PDF file.
I want to get a TOC in the getting_started.pdf file like the following. The "Getting Started" should not show in the TOC, but display as the PDF title before the TOC.

Topic 1 >>>>> 1st level title
Topic 1.1 >>>>> 2nd level title
Topic 1.2 >>>>> 2nd level title
Topic 1.3 >>>>> 2nd level title
Topic 2
Topic 2.1
Topic 2.2

How to make this work?
Radu
Posts: 9057
Joined: Fri Jul 09, 2004 5:18 pm

Re: DITA TO PDF

Post by Radu »

Hi Catherine,

Maybe you can create submaps, for example create a submap called "getting_started.ditamap" containing the topicrefs:

Code: Select all

    Topic 1
Topic1.1
Topic 1.2
Topic 2
Topic 2.1
Topic 2.2
This would be the DITA Map from which you publish the small getting started PDF.

Then in the main DITA Map add a topic reference to a "getting_started.dita" topic and inside that topic reference another topic reference to the
"getting_started.ditamap" map.
The main DITA Map would be used to publish the entire content to a single PDF.
Or you could try with your current setup and maybe a PDF customization but I do not have a good idea about how this could work.

Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
catherine
Posts: 158
Joined: Fri Nov 10, 2017 8:16 am

Re: DITA TO PDF

Post by catherine »

Thanks, Radu, the submap idea solved my problem! Cool!
Post Reply