Page 1 of 1

How can I change the PDF size?

Posted: Fri May 18, 2018 10:14 am
by hedyhan
Hi ,

I use the "DITA Map PDF" transformation, how can I change the PDF size in oxygen 19.0?

Re: How can I change the PDF size?

Posted: Fri May 18, 2018 11:03 am
by Radu
Hi,

By size do you mean paper size?
If so, with a PDF plugin you can override the paper size variables from the base PDF plugin:

http://www.dita-ot.org/2.0/readme/dita2pdf-customization.html

Regards,
Radu

Re: How can I change the PDF size?

Posted: Fri May 18, 2018 12:54 pm
by hedyhan
Hi ,

Thanks for your reply.

The last step: "Run the integration process to install the plug-in"? How to run?

Re: How can I change the PDF size?

Posted: Fri May 18, 2018 2:05 pm
by Costin
Hi hedyhan,

The DITA-OT integrator comes as a predefined transformation scenario that must be run whenever you need to install additional plugins.
More details about running the DITA-OT integrator available in the User-Guide.

Please pay special attention to the fact that you need to start oXygen in administrator mode before running the integrator scenario, then you should restart oXygen in normal mode.

Regards,
Costin

Re: How can I change the PDF size?

Posted: Tue May 22, 2018 6:16 am
by Joseccy
Hi Radu,

I followed the process and example used in this link (http://www.dita-ot.org/2.0/readme/dita2 ... ation.html) to create the same pdf plugin as the example. Then this plugin was installed successfully in the DITA-OT 3.0.

My question is how to implement this plugin (or any other customized pdf output plugins)?

Thanks.

Peter

Re: How can I change the PDF size?

Posted: Tue May 22, 2018 7:39 am
by Radu
Hi Peter,

I'm sorry but as you said you successfully followed the steps to create the plugin I do not understand your final question.
If you are just starting to customize the DITA to PDF output here are two approaches:

1) There is a book called "DITA For Print" which contains lots of PDF customization examples:

https://xmlpress.net/publications/dita/dita-for-print/

2) We (the Oxygen team) started about 1-2 years ago to implement an alternative to the classic DITA to PDF publishing. This alternative is based on using CSS to style the result PDF and is much easier to customize.
How this works, if you open a DITA Map in the DITA Maps Manager and you click the "Configure Transformation Scenarios" button there is a transformation scenario there called DITA Map PDF - WYSIWYG, if you duplicate and edit it, in the "Parameters" tab you can set the "args.custom.css" parameter to point to your custom CSS.
For example here's how to change the page size using this CSS-based approach:

https://www.oxygenxml.com/doc/versions/20.0/ug-editor/topics/dcpp_how_to_change_the_page_dimension.html

Regards,
Radu

Re: How can I change the PDF size?

Posted: Tue May 22, 2018 5:03 pm
by Joseccy
Hi Radu,

Thank you very much for prompt response and information you provided. Pardon me I did not make myself across.

My question is since I have created a plug-in for pdf output and installed it,
what should I do to make the transformation process point to this new plug-in so that the output appearance can be different?

I mean the current pdf output transformation points to this plug-in "org.dita.pdf2", which is DITA-OT default plug-in.
How can I make the transformation point to this new one, "com.example.print-pdf", which I have created following this procedure described in this link (http://www.dita-ot.org/2.0/readme/dita2 ... ation.html)?

Since I am also a newbie in html and css, I think I will go for "DITA For Print" at this moment.

Peter

Re: How can I change the PDF size?

Posted: Wed May 23, 2018 9:18 am
by Radu
Hi Peter,

Oh, now I understand. So you created your plugin and integrated it in the DITA OT, probably doing something similar to:

https://www.oxygenxml.com/doc/versions/20.0/ug-editor/topics/dita-ot-install-plugin.html#dita-ot-install-plugin

After this, you should open the "Configure Transformation Scenarios" dialog, press the "New" button and choose to create a scenario of type "DITA-OT". The "DITA Transformation Type" dialog should now also contain your new transtype (which was defined in your custom plugin.xml). Choose that and create the scenario based on it.
Or:
Edit a plain existing "DITA Map PDF" transformation scenario and in the "Parameters" tab add a new parameter called "transtype" with your custom transtype value.

Regards,
Radu