How can I change the PDF size?
Having trouble installing Oxygen? Got a bug to report? Post it all here.
-
- Posts: 9434
- Joined: Fri Jul 09, 2004 5:18 pm
Re: How can I change the PDF size?
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
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
<oXygen/> XML Editor
http://www.oxygenxml.com
-
- Posts: 846
- Joined: Mon Dec 05, 2011 6:04 pm
Re: How can I change the PDF size?
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
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
oXygen XML Editor and Author Support
-
- Posts: 4
- Joined: Tue May 22, 2018 5:31 am
Re: How can I change the PDF size?
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
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
-
- Posts: 9434
- Joined: Fri Jul 09, 2004 5:18 pm
Re: How can I change the PDF size?
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
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
<oXygen/> XML Editor
http://www.oxygenxml.com
-
- Posts: 4
- Joined: Tue May 22, 2018 5:31 am
Re: How can I change the PDF size?
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
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
-
- Posts: 9434
- Joined: Fri Jul 09, 2004 5:18 pm
Re: How can I change the PDF size?
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
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
<oXygen/> XML Editor
http://www.oxygenxml.com
Jump to
- Oxygen XML Editor/Author/Developer
- ↳ Feature Request
- ↳ Common Problems
- ↳ DITA (Editing and Publishing DITA Content)
- ↳ SDK-API, Frameworks - Document Types
- ↳ DocBook
- ↳ TEI
- ↳ XHTML
- ↳ Other Issues
- Oxygen XML Web Author
- ↳ Feature Request
- ↳ Common Problems
- Oxygen Content Fusion
- ↳ Feature Request
- ↳ Common Problems
- Oxygen JSON Editor
- ↳ Feature Request
- ↳ Common Problems
- Oxygen PDF Chemistry
- ↳ Feature Request
- ↳ Common Problems
- Oxygen Feedback
- ↳ Feature Request
- ↳ Common Problems
- Oxygen XML WebHelp
- ↳ Feature Request
- ↳ Common Problems
- XML
- ↳ General XML Questions
- ↳ XSLT and FOP
- ↳ XML Schemas
- ↳ XQuery
- NVDL
- ↳ General NVDL Issues
- ↳ oNVDL Related Issues
- XML Services Market
- ↳ Offer a Service