PDF Customisation - Scenario not working
Having trouble installing Oxygen? Got a bug to report? Post it all here.
-
- Posts: 86
- Joined: Wed Feb 09, 2011 10:43 pm
PDF Customisation - Scenario not working
Hello,
We needed to customise the layout of our PDF so we created a new plug-in directory.(we followed the DITA OT documentation). When we run the transformation directly from the command line, it works fine. Now I am trying to implete the plug-in directory to make it work with Oxygen, and I am unable to get it work.
I pasted the directory under frameworks/dita/Dita-OTest/plugins.
I changed the path of the parameter of the scenario, to make sure it would pick up the rigth Dita-OT.
I ran the startcmd.bat file (ant -f integrator.xml) and the build is successfull.
Then I expected the scenario to generate a PDF with our custom layout, but it keeps generating the PDF with the out of the box layout.I made sure the build.xml, catalog.xml, integrator.xml and plugin.xml, all pointed to the new directory.
Where did I miss something?
Regards.
We needed to customise the layout of our PDF so we created a new plug-in directory.(we followed the DITA OT documentation). When we run the transformation directly from the command line, it works fine. Now I am trying to implete the plug-in directory to make it work with Oxygen, and I am unable to get it work.
I pasted the directory under frameworks/dita/Dita-OTest/plugins.
I changed the path of the parameter of the scenario, to make sure it would pick up the rigth Dita-OT.
I ran the startcmd.bat file (ant -f integrator.xml) and the build is successfull.
Then I expected the scenario to generate a PDF with our custom layout, but it keeps generating the PDF with the out of the box layout.I made sure the build.xml, catalog.xml, integrator.xml and plugin.xml, all pointed to the new directory.
Where did I miss something?
Regards.
-
- Posts: 9449
- Joined: Fri Jul 09, 2004 5:18 pm
Re: PDF Customisation - Scenario not working
Hi Carole,
So:
OXYGEN_INSTALL_DIR/frameworks/dita/Dita-OTest
right? You could have stored it anywhere on the hard drive, you did not have to copy it to the Oxygen installation folder.
Regards,
Radu
So:
So you copied your custom DITA OT folder to:I pasted the directory under frameworks/dita/Dita-OTest/plugins.
OXYGEN_INSTALL_DIR/frameworks/dita/Dita-OTest
right? You could have stored it anywhere on the hard drive, you did not have to copy it to the Oxygen installation folder.
So you edited the transformation scenario and set the "dita.dir" parameter to point to the alternate DITA OT, correct?I changed the path of the parameter of the scenario, to make sure it would pick up the rigth Dita-OT.
Did you run the integrator in the proper DITA OT alternate installation folder? Do you have full read/write access rights in that folder? If not, you can keep the alternate DITA OT installation in a separate folder on your hard drive (somewhere in the user home for example).I ran the startcmd.bat file (ant -f integrator.xml) and the build is successfull.
Does your plugin add a new PDF transtype value? If so, when editing the transformation scenario in the Parameters list you should add a parameter called transtype with the transtype contributed by your plugin.Then I expected the scenario to generate a PDF with our custom layout, but it keeps generating the PDF with the out of the box layout.
Ok. If you edit the transformation scenario, in the Output tab you can opt for Show Console Output->Always. This will show all the output given by the ANT process in the console view and you can look to see what targets are being executed.I made sure the build.xml, catalog.xml, integrator.xml and plugin.xml, all pointed to the new directory.
Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
<oXygen/> XML Editor
http://www.oxygenxml.com
-
- Posts: 86
- Joined: Wed Feb 09, 2011 10:43 pm
Re: PDF Customisation - Scenario not working
thank you! it works.
I was missing the transtype parameter.
1- I copied the plugin in ...frameworks/dita/DITA-OTTest/plugins
2- I ran the Run Dita OT Integrator directly from Oxygen using the Run Dita OT Integrator scenario.
I made sure that I was pointing to the proper Dita folder to pick up the proper integrator file.
2 I added a new parameter in my scenario called transtype and gave it the value of the name of the transtype. (found it in the plugin.xml file of the plugin).
Generated the document, and there it was, working as expected.
I really appreciated the Run Dita OT Integrator scenario, I really dont like using the cmd line....
Thanks again.
I was missing the transtype parameter.
1- I copied the plugin in ...frameworks/dita/DITA-OTTest/plugins
2- I ran the Run Dita OT Integrator directly from Oxygen using the Run Dita OT Integrator scenario.
I made sure that I was pointing to the proper Dita folder to pick up the proper integrator file.
2 I added a new parameter in my scenario called transtype and gave it the value of the name of the transtype. (found it in the plugin.xml file of the plugin).
Generated the document, and there it was, working as expected.
I really appreciated the Run Dita OT Integrator scenario, I really dont like using the cmd line....
Thanks again.
-
- Posts: 9449
- Joined: Fri Jul 09, 2004 5:18 pm
Re: PDF Customisation - Scenario not working
Hi Carole,
I'm glad it works for you. About this remark:
Regards,
Radu
I'm glad it works for you. About this remark:
We also plan for a future Oxygen release to add an automatic plugin transtype discovery in order for example to use the New button in the Configure Transformation Scenarios dialog and find your transformation type already there.I really appreciated the Run Dita OT Integrator scenario, I really dont like using the cmd line....
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)
- ↳ Artificial Intelligence (AI Positron Assistant add-on)
- ↳ 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