How can I change the PDF size?

Having trouble installing Oxygen? Got a bug to report? Post it all here.
hedyhan
Posts: 21
Joined: Tue Mar 27, 2018 3:46 pm

How can I change the PDF size?

Post by hedyhan »

Hi ,

I use the "DITA Map PDF" transformation, how can I change the PDF size in oxygen 19.0?
Radu
Posts: 9051
Joined: Fri Jul 09, 2004 5:18 pm

Re: How can I change the PDF size?

Post 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/dita2 ... ation.html

Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
hedyhan
Posts: 21
Joined: Tue Mar 27, 2018 3:46 pm

Re: How can I change the PDF size?

Post by hedyhan »

Hi ,

Thanks for your reply.

The last step: "Run the integration process to install the plug-in"? How to run?
Costin
Posts: 833
Joined: Mon Dec 05, 2011 6:04 pm

Re: How can I change the PDF size?

Post 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
Costin Sandoi
oXygen XML Editor and Author Support
Joseccy
Posts: 4
Joined: Tue May 22, 2018 5:31 am

Re: How can I change the PDF size?

Post 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
Radu
Posts: 9051
Joined: Fri Jul 09, 2004 5:18 pm

Re: How can I change the PDF size?

Post 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/ ... nsion.html

Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
Joseccy
Posts: 4
Joined: Tue May 22, 2018 5:31 am

Re: How can I change the PDF size?

Post 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
Radu
Posts: 9051
Joined: Fri Jul 09, 2004 5:18 pm

Re: How can I change the PDF size?

Post 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/ ... all-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
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
Post Reply