I made my own plugin and while executing pdf output , the default dita-ot plugin is running

88 views
Skip to first unread message

ro...@metapercept.com

unread,
Dec 5, 2016, 4:05:41 AM12/5/16
to DITA-OT Users
Hi ,  I made my own plugin and while executing pdf output , the default dita-ot plugin is running and generating default ditamap pdf output. where am I missing ? I checked my code and it is well connected with pdf2 plugin.  

Jarno Elovirta

unread,
Dec 5, 2016, 9:45:31 AM12/5/16
to ro...@metapercept.com, DITA-OT Users
What is your plugin trying to do? Modify default PDF output or create a new transtype with customizations? More details are needed.

J

--
Sent from a mobile device.

On 5 Dec 2016, at 11.05, ro...@metapercept.com wrote:

Hi ,  I made my own plugin and while executing pdf output , the default dita-ot plugin is running and generating default ditamap pdf output. where am I missing ? I checked my code and it is well connected with pdf2 plugin.  

--
You received this message because you are subscribed to the Google Groups "DITA-OT Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to dita-ot-user...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

mrob

unread,
Dec 5, 2016, 8:28:46 PM12/5/16
to DITA-OT Users
The problem could be in the .ant file. You need to specify your custom plugin using the "transtype" property inside the <ant antfile="${dita.dir}/build.xml"> element. The build.xml, build_custpdf.xml, and build_custpdf_template.xml files inside your custom plugin directory need to be correct too.

You probably checked these, but if in doubt, paste them into an e-mail message here.

HTH,

mrob

Rohit Ghosh

unread,
Dec 14, 2016, 1:45:43 AM12/14/16
to DITA-OT Users
Still Facing problem here is my code-

build.xml

<project>
    <import file="build_pdf2waikato_template.xml"/>
</project>



build_pdf2waikato_template.xml

?xml version="1.0" encoding="UTF-8"?>
<project name="org.dita.pdf2waikato" default="dita2pdf2waikato" basedir=".">
    
<property name="transtype" location="C:\Program Files\dita-ot-2.4"/>
  
    
    <target name="dita2pdf2waikato"  description="PDF" depends="pdf"/>
        <target name="pdf" description="build PDF">
        <ant antfile="C:\Program Files\dita-ot-2.4\org.dita.pdf2waikato\build_pdf2waikato_template.xml">
            <property name="args.input" value="D:\AutoDOSE-Demo\AutoDOSE_Precision_Detergent_Dispenser.ditamap"/>
            <property name="args.gen.task.lbl" value="YES"/>   
            <property name="args.rellinks" value="nofamily"/>   
            <property name="output.dir" value="C:\"/>
            <property name="transtype" value="pdf"/>
        </ant>
    </target>
    
</project>


plugin.xml

<?xml version="1.0" encoding="UTF-8"?>

<plugin id="org.dita.pdf2waikato">
    <require plugin="org.dita.pdf2"/>
    <feature extension="dita.conductor.transtype.check" value="pdf2waikato"/>
    <feature extension="dita.transtype.print" value="pdf2waikato"/>
    
    <feature extension="dita.conductor.target.relative" file="build.xml"/>
</plugin>

 
Actually the default pdf2 plugin is running ..where am i missing

Stefan Eike

unread,
Dec 14, 2016, 3:05:56 AM12/14/16
to DITA-OT Users
You mixed a few things up. For example don't try to call Ant as you do. You can later use ant to call your transformation, but you don't need Ant code in your transformation, see example below. You should use the dita-generator to generate a plugin stub, get this to work and then customize it. Further on, you should read the DITA-OT docs, they contain howtos to do what you want, for example Example: Creating a simple PDF plug-in.

plugin.xml
<?xml version="1.0" encoding="UTF-8"?>
<project name="com.company.waikato">
  <target name="dita2waikato.init">
    <property name="customization.dir" location="${dita.plugin.com.company.waikato.dir}/cfg"/>
    <property name="pdf2.i18n.skip" value="true"/>
    <property name="args.xsl.pdf" location="${dita.plugin.com.company.waikato.dir}/xsl/fo/topic2fo_shell_fop.xsl"/>
    <property name="args.chapter.layout" value="MINITOC"/>
    <property name="args.bookmark.style" value="COLLAPSED"/>
    <property name="args.fo.include.rellinks" value="none"/>
  </target>
  <target name="dita2waikato" depends="dita2waikato.init, dita2pdf2"/>
</project>

integrator.xml
<?xml version="1.0" encoding="UTF-8"?>
<plugin id="com.company.waikato">
  <require plugin="org.dita.pdf2"/>
  <feature value="waikato" extension="dita.conductor.transtype.check"/>
  <feature value="waikato" extension="dita.transtype.print"/>
  <feature extension="dita.conductor.target.relative" file="integrator.xml"/>
</plugin>

Rohit Ghosh

unread,
Dec 14, 2016, 6:07:33 AM12/14/16
to DITA-OT Users
I was following the dita-ot workbook . Is there is something wrong to use the old version steps ? 

Stefan Eike

unread,
Dec 14, 2016, 6:23:13 AM12/14/16
to DITA-OT Users
Yes. I assume you mean "DITA for Print". A new version of this book is going to be released soon. Many things changed from 1.8.x to 2.x.

Rohit Ghosh

unread,
Dec 14, 2016, 7:23:26 AM12/14/16
to DITA-OT Users
Ok, Thank You
Reply all
Reply to author
Forward
0 new messages