Generating PDF output with DITA-FMx

I am evaluating DITA-FMx to get professional PDF output from my ditamaps and thanks to the useful video from saprentice, I am able to get a working PDF, with numbered chapters, page numbering, and so on. But now I am stuck with the following:
- Preface and notices are numbered and they shouldn't. How do I remove numbering from them?
- chapters appear twice in the TOC: once numbered and then again without numbers.
Thanks

The preface and notices are numbered because they are using the default template (assumed to be "chapter"). You'll need to set up and assign a "component template" for those component types. I assume you're using a bookmap .. so you should be able to create component templates called "tpl~preface.fm" and "tpl~notices.fm" .. put those in your component templates folder (as specified in the ditafmx-bookbuild.ini file), and those templates will be applied to the corresponding book components. You'll need to modify the EDD that is within those templates so it applies a different paragraph tag to top-level title (take a careful look at the sample tpl~appendix.fm component template which does this same thing for appendix components.
The duplicate chapter references in the TOC are a bit puzzling. Keep in mind that the TOC creation is fundamentally the same as you would have done in unstructured Frame. It's controlled by the TOC reference page in the TOC template ("gentpl~toc.fm"), and the tags specified in the GeneratedFile-toc section of the ditafmx-bookbuild.ini file. If you can make this work by manually setting things in the generated files, you should be able to translate that into the files to make it work through FMx.
Also .. be sure to check the FrameMaker console window after a book build .. you may see messages that help to debug any problems.
BTW .. a good place to post this sort of question is to the dita-fmx-users Yahoo group.
Cheers,
...scott
Scott Prentice
Leximation, Inc.
www.leximation.com

Similar Messages

  • Generating pdf output with webhelp look and functionality not like a print documentation

    Hi I have been using robohelp webhelp for our company online help documentation. Can I generate pdf output which has the same look and functionality as that of webhelp, using robohelp??

    Welcome to our community
    While you may certainly generate a PDF that contains the same information, it likely will not look exactly like WebHelp and it certainly will not behave as WebHelp.
    WebHelp is intended for on-line use while the PDF is really intended for printing if one chooses to.
    Cheers... Rick
    Helpful and Handy Links
    RoboHelp Wish Form/Bug Reporting Form
    Begin learning RoboHelp HTML 7, 8 or 9 within the day!
    Adobe Certified RoboHelp HTML Training
    SorcerStone Blog
    RoboHelp eBooks

  • PDF Output with javadoc

    Somebody once asked how to create PDF output with javadoc, so here's some work in progress:
    I am currently creating a PDF doclet which creates directly PDF output from javadoc. It's still in alpha stage, because it does not yet create an index or navigation frame (which is mandatory for the PDF to be useful), and most HTML tags are not yet interpreted. But that's gonna improve over the next few weeks.
    http://sourceforge.net/projects/pdfdoclet
    Bye,
    Marcel

    Hai Marcel,
    How to run this pdfdoclet?
    I tried like:
    javadoc -doclet com.tarsec.javadoc.pdfdoclet.PDFDoclet -docletpath d:\For_PDF_Doc\itext-0.92.jar;d:\For_PDF_Doc\pdfdoclet.jar *.java
    And the result is:
    Loading source file Test.java...
    Constructing Javadoc information...
    pdfdoclet: >> OPTION 0: -doclet
    pdfdoclet: >> OPTION 1: -docletpath
    pdfdoclet: Content completed, create index
    pdfdoclet: *** PDF DOCUMENT api.pdf COMPLETED ***
    Nothing is there in api.pdf!
    anu

  • Can we Compare PDF Output with CSV format

    Team,
    Can we Compare PDF Output with CSV format.
    In Excel I need to two text boxes asking us to browse the files and compare the files PDF & CSV format.
    Please suggest me if we have solution for this.
    Thanks!
    Kiran

    Hi
    I'm afraid the Excel Application does not support this function currently, I am suggesting you to take advantage of a third party component to achieve this goal.
    Thanks for your understanding.
    Best Regards
    Lan
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Can not generate PDF Output in RoboHelp 11

    Can not generate PDF Output. I keep getting the same error message:
    "Microsoft® Word has not been started on this computer.
    Launch Word and click the 'Start using Microsoft® Word' option before generating Printed Documentation again."
    I have MS Office 2013 32-bit and RoboHelp on a 64-bit Wondows desktop.
    What do am I doing wrong?

    Is the 32 bit version of Word the only version of Word you have on the machine?
    Where does Word's normal.dot reside? On your local machine? Sometimes it gets put on a network drive and that can cause problems.
    See www.grainge.org for RoboHelp and Authoring tips
    @petergrainge

  • How to generate PDF output from OracleXMLQuery

    I want to generate a PDF out put from XML by using JSP. For this i writen jsp and xsl. My jsp code works fine if i include html formated xsl and it displays as a text when i pass pdf formated xls.
    Here i am providing my jsp code.
    I don't want to use XSQL, please provide me information ASAP.
    <%@ page import = "java.sql.*,oracle.xml.sql.query.OracleXMLQuery" %>
    <% Connection conn = null;
    Statement stmt = null;
    ResultSet rset = null;
    String dbURL = "jdbc:oracle:thin:@localhost:1521:oracle9i";
    try{
         DriverManager.registerDriver(new oracle.jdbc.driver.OracleDriver());
         conn = DriverManager.getConnection(dbURL, "scott", "tiger");
         stmt = conn.createStatement ();
         rset = stmt.executeQuery ("SELECT * " +
                   "FROM scott.emp ORDER BY ename");
    OracleXMLQuery xq = new OracleXMLQuery(conn, rset); %>
    <% xq.setStyleSheet("emptablefo.xsl"); %>
    <%= xq.getXMLString() %>
    <% } catch (java.sql.SQLException e) {  %>
    SQL error: <%= e %>
    <% }
    finally {
    if (stmt != null) stmt.close();
    if (rset != null) rset.close();
    if (conn != null) conn.close();
    } %>
    Thanks,
    Ramana

    >
    if the report output format is xls this code is generating the pdf output
    >
    looks like pdf is default output in template definition in xml publisher resp
    so for r12 use FND_REQUEST.ADD_LAYOUT as example
    v_request_id   number;
    xml_layout boolean;
    xml_layout := FND_REQUEST.ADD_LAYOUT('XXCUSTOM','XXCONCNAME','en','00','EXCEL');
    v_request_id := fnd_request.submit_request(application => 'XXCUSTOM',
                                               program     => 'XXCONCNAME',
                                               description => NULL,
                                               start_time  => NULL,
                                               sub_request => FALSE,
                                               argument1   => p_date
                                               );also see http://andyblg.wordpress.com/2012/08/23/run-concurrent-program-twice-with-different-layout-r12/

  • Error in generating PDF output

    Whenever, I generate a PDF output, RH goes through the process but displays an error message stating that the file_name.pdf is not found. It did the same thing when I tried generating a PDF of a sample project as well. Any pointers on how to resolve this issue?

    I am just trying to see where there could be a problem. When you generate a PDF from RoboHelp a temporary Word file is automatically created in the background from which the PDF is created. What I was trying to get you to check was whether the problem is with the PDF creation or somewhere else. If you go through the same process to create a PDF but deselect the PDF creation option BUT select the Word creation option, a Word file will be created. If that works, it will have exactly the same fonts, styles as the PDF would if you can create it.
    I am also a bit unsure what you mean. It sounds like you are generating a Word file, then changing the fonts and styles in Word. Why not just make sure that your fonts, styles in RoboHelp are correct and then just map these to your Word template when creating the Word file. Peter Grainge has some excellent tips on this on his site. It is well worth a read.
    http://www.grainge.org/pages/authoring/printing/printing.htm
      The RoboColum(n)
      @robocolumn
      Colum McAndrew

  • Writing a java program for generating .pdf file with the data of MS-Excel .

    Hi all,
    My object is write a java program so tht...it'll generate the .pdf file after retriving the data from MS-Excel file.
    I used POI HSSF to read the data from MS-Excel and used iText to generate .pdf file:
    My Program is:
    * Created on Apr 13, 2005
    * TODO To change the template for this generated file go to
    * Window - Preferences - Java - Code Style - Code Templates
    package forums;
    import java.io.*;
    import java.awt.Color;
    import com.lowagie.text.*;
    import com.lowagie.text.pdf.*;
    import com.lowagie.text.Font.*;
    import com.lowagie.text.pdf.MultiColumnText;
    import com.lowagie.text.Phrase.*;
    import net.sf.hibernate.mapping.Array;
    import org.apache.poi.hssf.*;
    import org.apache.poi.poifs.filesystem.*;
    import org.apache.poi.hssf.usermodel.*;
    import com.lowagie.text.Phrase.*;
    import java.util.Iterator;
    * Generates a simple 'Hello World' PDF file.
    * @author blowagie
    public class pdfgenerator {
         * Generates a PDF file with the text 'Hello World'
         * @param args no arguments needed here
         public static void main(String[] args) {
              System.out.println("Hello World");
              Rectangle pageSize = new Rectangle(916, 1592);
                        pageSize.setBackgroundColor(new java.awt.Color(0xFF, 0xFF, 0xDE));
              // step 1: creation of a document-object
              //Document document = new Document(pageSize);
              Document document = new Document(pageSize, 132, 164, 108, 108);
              try {
                   // step 2:
                   // we create a writer that listens to the document
                   // and directs a PDF-stream to a file
                   PdfWriter writer =PdfWriter.getInstance(document,new FileOutputStream("c:\\weeklystatus.pdf"));
                   writer.setEncryption(PdfWriter.STRENGTH128BITS, "Hello", "World", PdfWriter.AllowCopy | PdfWriter.AllowPrinting);
    //               step 3: we open the document
                             document.open();
                   Paragraph paragraph = new Paragraph("",new Font(Font.TIMES_ROMAN, 13, Font.BOLDITALIC, new Color(0, 0, 255)));
                   POIFSFileSystem pofilesystem=new POIFSFileSystem(new FileInputStream("D:\\ESM\\plans\\weekly report(31-01..04-02).xls"));
                   HSSFWorkbook hbook=new HSSFWorkbook(pofilesystem);
                   HSSFSheet hsheet=hbook.getSheetAt(0);//.createSheet();
                   Iterator rows = hsheet.rowIterator();
                                  while( rows.hasNext() ) {
                                       Phrase phrase=new Phrase();
                                       HSSFRow row = (HSSFRow) rows.next();
                                       //System.out.println( "Row #" + row.getRowNum());
                                       // Iterate over each cell in the row and print out the cell's content
                                       Iterator cells = row.cellIterator();
                                       while( cells.hasNext() ) {
                                            HSSFCell cell = (HSSFCell) cells.next();
                                            //System.out.println( "Cell #" + cell.getCellNum() );
                                            switch ( cell.getCellType() ) {
                                                 case HSSFCell.CELL_TYPE_STRING:
                                                 String stringcell=cell.getStringCellValue ()+" ";
                                                 writer.setSpaceCharRatio(PdfWriter.NO_SPACE_CHAR_RATIO);
                                                 phrase.add(stringcell);
                                            // document.add(new Phrase(string));
                                                      System.out.print( cell.getStringCellValue () );
                                                      break;
                                                 case HSSFCell.CELL_TYPE_FORMULA:
                                                           String stringdate=cell.getCellFormula()+" ";
                                                           writer.setSpaceCharRatio(PdfWriter.NO_SPACE_CHAR_RATIO);
                                                           phrase.add(stringdate);
                                                 System.out.print( cell.getCellFormula() );
                                                           break;
                                                 case HSSFCell.CELL_TYPE_NUMERIC:
                                                 String string=String.valueOf(cell.getNumericCellValue())+" ";
                                                      writer.setSpaceCharRatio(PdfWriter.NO_SPACE_CHAR_RATIO);
                                                      phrase.add(string);
                                                      System.out.print( cell.getNumericCellValue() );
                                                      break;
                                                 default:
                                                      //System.out.println( "unsuported sell type" );
                                                      break;
                                       document.add(new Paragraph(phrase));
                                       document.add(new Paragraph("\n \n \n"));
                   // step 4: we add a paragraph to the document
              } catch (DocumentException de) {
                   System.err.println(de.getMessage());
              } catch (IOException ioe) {
                   System.err.println(ioe.getMessage());
              // step 5: we close the document
              document.close();
    My Input from MS-Excel file is:
         Planning and Tracking Template for Interns                                                                 
         Name of the Intern     N.Kesavulu Reddy                                                            
         Project Name     Enterprise Sales and Marketing                                                            
         Description     Estimated Effort in Hrs     Planned/Replanned          Actual          Actual Effort in Hrs     Complexity     Priority     LOC written new & modified     % work completion     Status     Rework     Remarks
    S.No               Start Date     End Date     Start Date     End Date                                        
    1     setup the configuration          31/01/2005     1/2/2005     31/01/2005     1/2/2005                                        
    2     Deploying an application through Tapestry, Spring, Hibernate          2/2/2005     2/2/2005     2/2/2005     2/2/2005                                        
    3     Gone through Componentization and Cxprice application          3/2/2005     3/2/2005     3/2/2005     3/2/2005                                        
    4     Attend the sessions(tapestry,spring, hibernate), QBA          4/2/2005     4/2/2005     4/2/2005     4/2/2005                                        
         The o/p I'm gettint in .pdf file is:
    Planning and Tracking Template for Interns
    N.Kesavulu Reddy Name of the Intern
    Enterprise Sales and Marketing Project Name
    Remarks Rework Status % work completion LOC written new & modified Priority
    Complexity Actual Effort in Hrs Actual Planned/Replanned Estimated Effort in Hrs Description
    End Date Start Date End Date Start Date S.No
    38354.0 31/01/2005 38354.0 31/01/2005 setup the configuration 1.0
    38385.0 38385.0 38385.0 38385.0 Deploying an application through Tapestry, Spring, Hibernate
    2.0
    38413.0 38413.0 38413.0 38413.0 Gone through Componentization and Cxprice application
    3.0
    38444.0 38444.0 38444.0 38444.0 Attend the sessions(tapestry,spring, hibernate), QBA 4.0
                                       The issues i'm facing are:
    When it is reading a row from MS-Excel it is writing to the .pdf file from last cell to first cell.( 2 cell in 1 place, 1 cell in 2 place like if the row has two cells with data as : Name of the Intern: Kesavulu Reddy then it is writing to the .pdf file as Kesavulu Reddy Name of Intern)
    and the second issue is:
    It is not recognizing the date format..it is recognizing the date in first row only......
    Plz Tell me wht is the solution for this...
    Regards
    [email protected]

    Don't double post your question:
    http://forum.java.sun.com/thread.jspa?threadID=617605&messageID=3450899#3450899
    /Kaj

  • Latvian Language support for generated PDF's with FPDF module for PHP

    Hello !
    I have a problem with Adobe Reader for Android. I am working with online PDF creation with PHP module named FPDF.
    With FPDF module for PHP you can create PDF's online.
    The problem is that - when generated PDF appears on phone it doesn't show Latvian language ( cp1257 or  ISO-8859-13 for example ). For example - "ŗķļņž" and "ŖĶĻŅŽ" is shown with other symbols.
    However opening the same file with standart app "Polaris Office" - the text is show as it used to be, without problem.
    Strange bug, that i can't fix from PHP ( Tried a lot of decodes and encodes ). Also i have saved PHP file with different encodings - nothing helped.

    You might ask about this in the regular forum. There are several form experts there that may be able to help you.

  • How to save dynamically generated PDF files with proper file name?

    Hi,
    I need to save the pdf file with default name which generated by
    dinamically.
    this is the code i am trying to save by default
    protected void processRequest (HttpServletRequest request, HttpServletResponse response)
    throws ServletException, IOException
    OutputStream bos = response.getOutputStream ();
    // this returns pdf byte array
    byte  ios[]  = callReport ( reportId_param , fullyQualifiedReportClassName , paramHashMap ) ;
    response.setContentType ("application/pdf");
    // reportId_param and reportName_param supplied from some where
    String docName =  reportId_param + "_" + reportName_param ;
    if( fromDate_req != null && toDate_req != null )
                    String dateStr = fromDate_req + "_to_" + toDate_req ;
                    dateStr = dateStr.replaceAll ( "/" , "_" ) ;
                    docName = docName + "_" + dateStr ;
    // here docName would be like "RP_COM_COLL_01_Message_Details_03_09_2008_to_03_09_2008"
    response.setHeader ("Content-Disposition","inline; filename=" + docName ) ;
    bos.write (ios);
    bos.flush ();
    }the above code produces pdf in browser when calling this URL
    http://localhost:8080/DAD01TN0801027/RWReportServlet
    In browser we can save this PDF by using two ways
    1. File -> Save As
    2. By using Save Icon within the PDF toolBar
    both the actions uses the file name "RWReportServlet" as default instead of using docName
    Can any one help me please
    Regards
    Sakthivel.

    That said, your code is not very efficient. You're storing the complete PDF file in memory. What if the PDF file is fairly large? And what if multiple users download multiple large PDF files simultaneously? Your server would run out of memory. Rather use InputStream instead of a raw byte[]. And preferably buffer it.
    You should also be setting the content-length header by the way.

  • PDF output with conditional text

    I need to create two PDFs from my project, each displaying a different conditional build expression, but I can't figure out how to do it. Selecting PDF Output doesn't show options like, for example, WebHelp does, unless I've missed something in the setup. Is this possible? My reviewers want to review hardcopies although I've tried to convince them that they should look at it as it will be displayed online.

    Hi there
    See if the video linked below helps.
    Click here
    Cheers... Rick

  • Generate PDF Output is grayed out

    Hello everyone,
    I am using Robohelp 9 as trial since yesterday. My problem is that I cannot create PDF-Files because the "PDF Output" Button is greyed out.
    What am I doing wrong ?
    kind regards
    Robinn225

    If you are creating the printed output from the SSL (single source layout) you should see a check box to tick rather than a button. I'm guessing you are using a menu option and haven't yet created a PDF SSL.
    I assume you did install the PDF option or already had a suitable alternative.
    See www.grainge.org for RoboHelp and Authoring tips
    @petergrainge

  • Error generating PDF output in Workspace for Sharepoint while batch scheduling

    Hi,
    I am trying to schedule a batch in Hyperion workspace which needs to generate output in SharePoint. I have done the setting in ExportFolder in FRCONFIG.cmd /Mbeans  as
    Sharepoint1=//msocsp02.lighthouse.hhc/Finance/Essbase Reporting Libraries/Test Batch Reporting
    and set readable/Writable properties to true.
    When I execute the batch it give me a error: (Logon Failure: The target account name is incorrect)
    ================================
    Server Activity
    Batch "NewBatch" was started at Monday, July 29, 2013 6:21:33 PM CDT
    Executed "OPROFIT/Working/Tricia/Dana/Commercial" successfully
    Status for various save options for "OPROFIT/Working/Tricia/Dana/Commercial"
    Error while saving as PDF
    \\msocsp02.lighthouse.hhc\Finance\Essbase Reporting Libraries\Test Batch Reporting\Commercial.pdf (Logon Failure: The target account name is incorrect)
    Saved successfully in repository as /OPROFIT/Working/Tricia/Dana/Commercial
    Batch "NewBatch" finished at Monday, July 29, 2013 6:21:50 PM CDT
    ================================
    When I type //msocsp02.lighthouse.hhc/Finance/Essbase Reporting Libraries/Test Batch Reporting in Windows explore ,it works fine for me. Plus I can manually upload the any file using my Windows active directory login in Share point via Internet explorer. I am using my windows active directory everywhere.
    I tried to execute this batch file in local  directory and it generates the required output but not in Sharepoint.
    Any help would be much appreciated.

    There is a warning about a malformed topic. I have seen projects  where there is nothing wrong with the topic but where the machine needed more RAM. What are the basics of your PC?
    Also try turning off PDF and generating a Word document instead. If that works, PDF from there. Does that work?
    See www.grainge.org for RoboHelp and Authoring tips

  • Generate PDF FORM with editable fields

    Hi,
    my requirement is to create a document wich has a number of fields which users can fill in. By default, these fields need to be filled in with the data from the database, but editable by the user, the rest of the document has to be non-editable. I'm looking to PDF Forms for this, but am open to other suggestions. I can't get the output to show such fields. Is it even possible?
    Spiffo

    HI,
    I have no clear at all how we define a editable field in the template.
    Besides, we need Adobe Writer to see this editable fields from the PDF generated?
    Thanks in advance.
    S.

  • XDO Help...Error while generating PDF output

    Hi All,
    I am currently facing an issue generating the PDF through the concurrent program.
    We have developed the RTF template using Oracle XML Publisher Builder Template for Word Version 10.1.3.2.0 Build 87.
    When we run ,the program errors out some times and the following error message is displayed in the log.
    FOProcessor setLocale: en-us
    java.lang.ArrayIndexOutOfBoundsException: 8 > 7
         at java.util.Vector.insertElementAt(Unknown Source)
         at oracle.apps.xdo.template.fo.elements.table.FOTableBody.doLayout(Unknown Source)
         at oracle.apps.xdo.template.fo.elements.table.FOTableBody.doLayout(Unknown Source)
         at oracle.apps.xdo.template.fo.elements.table.FOTable.doLayout(Unknown Source)
         at oracle.apps.xdo.template.fo.elements.FOBlock.doLayout(Unknown Source)
         at oracle.apps.xdo.template.fo.elements.FOBlock.doLayout(Unknown Source)
         at oracle.apps.xdo.template.fo.elements.FOBlock.doLayout(Unknown Source)
         at oracle.apps.xdo.template.fo.elements.FOFlow.doLayout(Unknown Source)
         at oracle.apps.xdo.template.fo.elements.FormattingEngine.startLayout(Unknown Source)
         at oracle.apps.xdo.template.fo.elements.FormattingEngine.run(Unknown Source)
         at oracle.apps.xdo.template.fo.FOHandler.endElement(Unknown Source)
         at oracle.apps.xdo.common.xml.XSLTHandler$EEEntry.sendEvent(Unknown Source)
         at oracle.apps.xdo.common.xml.XSLTMerger.startElement(Unknown Source)
         at oracle.xml.parser.v2.XMLContentHandler.startElement(XMLContentHandler.java:167)
         at oracle.xml.parser.v2.NonValidatingParser.parseElement(NonValidatingParser.java:1182)
         at oracle.xml.parser.v2.NonValidatingParser.parseRootElement(NonValidatingParser.java:301)
         at oracle.xml.parser.v2.NonValidatingParser.parseDocument(NonValidatingParser.java:268)
         at oracle.xml.parser.v2.XMLParser.parse(XMLParser.java:149)
         at oracle.apps.xdo.template.fo.FOProcessingEngine.process(Unknown Source)
         at oracle.apps.xdo.template.FOProcessor.generate(Unknown Source)
         at RTF2PDF.runRTFto(RTF2PDF.java:632)
         at RTF2PDF.runXDO(RTF2PDF.java:466)
         at RTF2PDF.main(RTF2PDF.java:254)
    If i switch the output to HTML/RTF it will complete normally.
    Could you please advise what needs to be done?
    Thanks,
    Ravi Kiran G

    Hi Aliaksandr,
    Thank you for the link.
    The ADSUSER was not created in the system. This is now created. A password is assigned to it and that password would be entered also in Visual Admin.
    I hope this would solve the problem.
    Are there any other other users, that are needed apart from this? or any additional steps?
    Regards,
    Dharmi
    Edited by: Dharmi Tanna on Jan 18, 2011 4:39 PM

Maybe you are looking for