Page 1 of 1

DITA TO PDF

Posted: Wed Apr 25, 2018 6:03 pm
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!

Re: DITA TO PDF

Posted: Wed Apr 25, 2018 7:32 pm
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

Re: DITA TO PDF

Posted: Thu Apr 26, 2018 2:06 pm
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?

Re: DITA TO PDF

Posted: Thu Apr 26, 2018 5:35 pm
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

Re: DITA TO PDF

Posted: Sat Apr 28, 2018 8:43 am
by catherine
Thanks, Radu, the submap idea solved my problem! Cool!