Header in pdf overlaping body of pdf doc:using fop

I'm generating PDF file with FOP, but my header contents are not fixed, they keep on changing with each report and with each locale of browser.
Because of this my static width / height setting like
margin-top="0.25in"or
margin-top="0.95in"is failing for some reports, i.e my header is overlapping with body contents.
Is there a generic solution which can fix this?
More details:
Header of pdf is overlapping on the contents of body of pdf, because of which I am not able to see my top contents in my body of pdf document.
I want to way by which ,if header contents are increased then body should start after the layout of header.
But in pdf api it is required to set:
<fo:region-body margin-top="1.25in" margin-bottom="0.50in" />
<fo:region-before extent="1.25in"/>
<fo:region-after extent="0.50in"/>which is causing problem bec. when my text in header increases beyond 1.25in which is specified in
<fo:region-body margin-top="1.25in"then in that case header text overlapps body text.

When you distribute a form using the distribute process, Acrobat replaces whatever code you placed in the button with its own. You do not need to use the distribution process to set this up. Instead, Reader-enable the form and your button should work like you want.

Similar Messages

  • I have been able to open PDF docs using C# API Process.Start("Full_path_To_the_PDF_File") in windows 7 or windows 8 with all previous versions of Acrobat32 reader.

    I have been able to open PDF docs using C# API Process.Start("Full_path_To_the_PDF_File") in windows 7 or windows 8 with all previous versions of Acrobat32 reader.
    However, with v11.0, the same command, in Windows 8, it does not open the PDF document. I can see the Acrobat(32) started in the task manager, but the document does open. Not sure how I can troble shoot this problem. Any help would be appreciated.

    I haven't use the C# API but I imagine it is the same as C ShellExecute. Which in turn is the same thing (in essence) as double clicking in Windows Explorer.
    So... does Adobe Reader run normally on this machine?
    And does it start and open if you double click on a PDF file?

  • Problem with number-fields in PDF Output Using FOP

    When generating PDF Output using FOP as described in the utilitiy provided in the HTMLDB Studio http://htmldb.oracle.com/pls/otn/f?p=18326:44:12104450162492733947::::P44_ID:1522
    formatted numbers over 1,000 are resolved as characters (because of the comma) and are therefore right justified. This results in alignment issues for numeric columns.
    Does anyone have any ideas on how to work around this.
    Thanks,
    David

    Hello,
    Your probably going to have to edit the xslt to get the result either by stripping out the comma or by setting that column to explicitly align the way you want it.
    Carl

  • Sync Text alignment in HTMLEditor and a PDF generated using FOP

    Hi,
    How to sync text alignment in HTMLEditor and a PDF generated using FOP ?
    I tried setting the dimensions of HTMLEditor and PDF in pixels by calculating the size in Pixels for A4 paper size with a particular dpi value.
    Have done the font settings as well. The problem is I see uneven line cuts in the PDF as compared to HTMLEditor.
    Thanks.

    It's not a realistic expectation. You are expecting the PDF produced by whoever provided your FOP implementation to observe exactly the same typographical rules as HTMLEditor. Basically it won't, and there is no way to enforce it. Line breaking/hyphenation/word spacing algorithms can be of great complexity. You are expecting two systems that aren't specified to agree, to agree.

  • Opening PDF docs using ipad3

    using an ipad3. need to know how to open PDF docs to view at websites. thanks

    thanks for trying. it didn't work. when I'm on the internet using safari I cannot open a PDF doc. I have no problem opening docs in my email. only when using safari on the internet. there must me someone else out there that has experienced this problem and can explain what I need to do.
    thanks.
    Sent from my iPad

  • Problem Opening Hyperlink on Adobe .pdf Docs Using Safari Browser

    Does anyone have a problem opening a hyperlink on .pdf documents using Safari browser on iPhone or Mac computers?

    Kimmerdog, Would you please rewrite your sentence "you have to publish the document it to the repository". And what is a repository?

  • Printing PDF documents using FOP

    Hi,
    I seem to be getting the following error when printing to PDF using FOP:
    report error:
    ORA-29273: HTTP request failed
    ORA-06512: at "SYS.UTL_HTTP", line 1186
    ORA-12571: TNS:packet writer failure
    I've set up PDF printing by following the (FOP) instructions in the following link:
    http://www.oracle.com/technology/products/database/application_express/html/configure_printing.html
    I've verified that my OC4J container and the jsp page apex_fop.jsp is running as it should as I can get PDF documents back if I call the jsp page outside of APEX (by sending in my own template and xml request parameters).
    I've also verified that I do hit the apex_fop.jsp page when trying to print from within the APEX application. The problem is that the two parameters template and xml are both null when trying to print PDF from APEX.
    It appears as though APEX is not sending in the template and xml request parameters.
    My test case is to create a simply report query in shared components, use a generic layout, select the pdf option and click on Test Report. The result is the error shown above.
    Any ideas? I know I'm close!
    btw, I'm using 10g and APEX 3.1
    Sanjeev

    thanks Dimitri ..
    I have progress... I went back and reconfig'd my oc4j, since Ihad donethat a long time ago.
    Now I am getting the 500 Internal Server Error
    Servlet eror: ... The current application deployment descriptors do not allow for including it in this response. Please consult the application log for details.
    The application.log give me a dump ...
    09/01/20 18:55:29.515 10.1.3.4.0 Started
    09/01/20 18:55:29.718 fop: 10.1.3.4.0 Started
    09/01/20 19:00:45.906 fop: Servlet error
    oracle.xml.parser.v2.XMLParseException: Start of root element expected.
    at oracle.xml.parser.v2.XMLError.flushErrors1(XMLError.java:320)
    at oracle.xml.parser.v2.NonValidatingParser.parseRootElement(NonValidatingParser.java:341)
    at oracle.xml.parser.v2.NonValidatingParser.parseDocument(NonValidatingParser.java:303)
    at oracle.xml.parser.v2.XMLParser.parse(XMLParser.java:320)
    at oracle.xml.xslt.XSLProcessor.newXSLStylesheet(XSLProcessor.java:713)
    at oracle.xml.xslt.XSLStylesheet.<init>(XSLStylesheet.java:321)
    at oracle.xml.parser.v2.XSLStylesheet.<init>(XSLStylesheet.java:114)
    at apex_fop._jspService(_apex__fop.java:71)
    at com.orionserver[Oracle Containers for J2EE 10g (10.1.3.4.0) ].http.OrionHttpJspPage.service(OrionHttpJspPage.java:59)
    at oracle.jsp.runtimev2.JspPageTable.compileAndServe(JspPageTable.java:724)
    at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:414)
    at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:594)
    at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:518)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
    at com.evermind[Oracle Containers for J2EE 10g (10.1.3.4.0) ].server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher
    .java:713)
    at com.evermind[Oracle Containers for J2EE 10g (10.1.3.4.0) ].server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher
    .java:370)
    at com.evermind[Oracle Containers for J2EE 10g (10.1.3.4.0) ].server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler
    .java:871)
    at com.evermind[Oracle Containers for J2EE 10g (10.1.3.4.0) ].server.http.HttpRequestHandler.processRequest(HttpRequestHandler
    .java:453)
    at com.evermind[Oracle Containers for J2EE 10g (10.1.3.4.0) ].server.http.HttpRequestHandler.serveOneRequest(HttpRequestHandler
    .java:221)
    at com.evermind[Oracle Containers for J2EE 10g (10.1.3.4.0) ].server.http.HttpRequestHandler.run(HttpRequestHandler.java:122)
    at com.evermind[Oracle Containers for J2EE 10g (10.1.3.4.0) ].server.http.HttpRequestHandler.run(HttpRequestHandler.java:111)
    at oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocketReadHandler.java:260)
    at oracle.oc4j.network.ServerSocketAcceptHandler.procClientSocket(ServerSocketAcceptHandler.java:234)
    at oracle.oc4j.network.ServerSocketAcceptHandler.access$700(ServerSocketAcceptHandler.java:29)
    at oracle.oc4j.network.ServerSocketAcceptHandler$AcceptHandlerHorse.run(ServerSocketAcceptHandler.java:879)
    at com.evermind[Oracle Containers for J2EE 10g (10.1.3.4.0) ].util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor
    .java:303)
    at java.lang.Thread.run(Thread.java:619)
    Not sure what to make of this, but it does give the xact same error each time.
    For what it's worth, I can successfully call a test page per Marc Sewtz's blog, so conceptually something is working, which is progress. I'll keep at it, but suggestions are welcome. Thanks for the direction.
    Karen

  • To access bookmarks in pdf doc using acrobat sdk with C#

    Hi, I am converting a word doc to PDF. While doing this the headlines in word doc are getting converted to bookmarks in PDF & I get a bookmark tree. I want the bookmarks to be collapsed. I am using acrobat dll to convert word doc to pdf. Want to use the same to collapse the bookmarks.
    Any help would be appreciated.
    Thanks & Regards,
    Lalit

    Hi Irosenth,
    If we have Acrobat installed on our m/c in Micorsoft office word I get an "Acrobat" tab. In that I get an option to create "PDF" from word.
    So keeping this in mind I created a  project in C# using VS 2008. In this project I took the reference of "Acrobat.dll" the com library.
    Using the reference of this library I converted the word/excel/ppt docs to PDF.
    Below is the code snippet :
    public 
    void startConversion(string docFile, string pdfFile){
    Acrobat.
    AcroAVDocClass _acroDoc = new Acrobat.AcroAVDocClass();Acrobat.
    AcroPDDoc _pdDoc = null; 
    string strNonPDFFile = docFile; 
    string strPDFFile = pdfFile; 
    _acroDoc.Open(strNonPDFFile, strPDFFile);
    _pdDoc = (Acrobat.
    AcroPDDoc)(_acroDoc.GetPDDoc());
    _pdDoc.Save(
    Convert.ToInt16(Acrobat.PDSaveFlags.PDSaveFull), strPDFFile); 
    _pdDoc.Close();
    _pdDoc =
    null;_acroDoc.Close(1);
    _acroDoc =
    null;}
    This does convert Word/exce/ppt to pdf successfully. But I wanted to get access to the bookmarks of the PDF file....
    Any help would be appreciated.
    Thanks & Regards,
    Lalit

  • Can't print a PDF doc using Adobe Reader X

    Previously had Adobe Reader 8.  First time ever experienced a problem in printing a PDF document, message read "you need to install a printer".  My printer is installed, can print in Word, Excel, photos, etc.  Downloaded latest drivers to my printer, installed Adobe Reader X, opened the document, but alas, it encountered a problem and closed down.  So I am still unable to print a PDF document.  I've been around in circles trying to find a solution but haven't been successful.  Can anyone help?

    Normally if I come across unprintable PDF files, first I would check the property to see if it has print restriction. If so, I would turn to a pdf password remover to remove it.
    But your case is a little strange, maybe you can try to print with another pdf reader first.
    That's all I can think about. Hope it helps.

  • Issue in PDF printing using FOP

    We have configured Print server as per http://www.oracle.com/technology/products/database/application_express/html/configure_printing.html section #5
    However when we try to print pdf, it says "Page Cannot be found"
    In the print server oc4j log, here is what we see:
    =============
    08/11/18 09:58:03 [ERROR] Logger not set
    08/11/18 09:58:03 [INFO] Using oracle.xml.parser.v2.SAXParser as SAX2 Parser
    08/11/18 09:58:03 [INFO] building formatting object tree
    08/11/18 09:58:03 [INFO] setting up fonts
    08/11/18 09:58:03 [INFO] [1]
    08/11/18 09:58:03 [WARNING] table-layout=auto is not supported, using fixed!
    08/11/18 09:58:03 [INFO] area contents overflows area in line Solicitation
    08/11/18 09:58:03 [INFO] area contents overflows area in line
    08/11/18 09:58:03 [INFO] area contents overflows area in line
    08/11/18 09:58:03 [INFO] area contents overflows area in line
    08/11/18 09:58:03 [INFO] area contents overflows area in line Proposal
    08/11/18 09:58:03 [INFO] area contents overflows area in line Proposal
    08/11/18 09:58:03 [INFO] area contents overflows area in line Project
    08/11/18 09:58:03 [INFO] area contents overflows area in line
    08/11/18 09:58:03 [INFO] area contents overflows area in line Created
    08/11/18 09:58:03 [INFO] area contents overflows area in line
    08/11/18 09:58:03 [INFO] area contents overflows area in line Project
    08/11/18 09:58:03 [INFO] area contents overflows area in line ETECH
    08/11/18 09:58:03 [INFO] area contents overflows area in line
    08/11/18 09:58:03 [INFO] area contents overflows area in line Request
    08/11/18 09:58:03 [INFO] area contents overflows area in line
    08/11/18 09:58:03 [INFO] area contents overflows area in line
    08/11/18 09:58:03 [INFO] area contents overflows area in line
    08/11/18 09:58:03 [INFO] area contents overflows area in line
    08/11/18 09:58:03 [INFO] area contents overflows area in line
    08/11/18 09:58:03 [INFO] area contents overflows area in line Stephen
    08/11/18 09:58:03 [INFO] area contents overflows area in line
    08/11/18 09:58:03 [INFO] area contents overflows area in line Serena
    08/11/18 09:58:03 [INFO] area contents overflows area in line
    08/11/18 09:58:03 [INFO] area contents overflows area in line assessment
    08/11/18 09:58:03 [INFO] area contents overflows area in line station
    08/11/18 09:58:03 [INFO] area contents overflows area in line Fillmore,
    08/11/18 09:58:03 [INFO] area contents overflows area in line Fillmore,
    08/11/18 09:58:03 [INFO] area contents overflows area in line Fillmore
    08/11/18 09:58:03 [INFO] area contents overflows area in line Fillmore
    08/11/18 09:58:03 [INFO] area contents overflows area in line Buffalo,
    08/11/18 09:58:03 [INFO] Parsing of document complete, stopping renderer
    ===============
    Is there any setting that we are missing.Any help will be appreciated.

    Mary
    I too use multiple report queries which are then converted to XML and passed to the FOP server, I'm not sure what you want is achievable in the report queries. Alternatively you can use XSL in the style sheet to conditionally display output.
    e.g.
    <fo:block font-size="8pt">
    <xsl:for-each select="//ROWSET2/ROWSET2_ROW">
    <xsl:variable name="vContactTypeName">
    <xsl:value-of select="CONTACT_TYPE_NAME"/>
    </xsl:variable>
    <xsl:if test="$vContactTypeName = 'URL'">
    <fo:block><xsl:value-of select="CONTACT_TYPE_VALUE"/></fo:block>
    </xsl:if>
    </xsl:for-each>
    </fo:block>
    Hope that helps
    Paul

  • Oracle HTMLDB report output in PDF format using FOP

    Hi,
    We are currently using Oracle HTMLDB1.6.I am trying to implement the HTMLDB report output in PDF format.I got at document but it is not clear.Could you please let use know wheether anybody has already used in their organization.
    Appreciate your response.
    Regards
    Murai

    Hey Murai,
    did you read the technote:
    http://www.oracle.com/technology/pub/notes/technote_htmldb_fop.html
    There is anything explained!
    greets,
    tim

  • Generating PDF file using FOP API in Web Dynpro

    Hi experts,
    I would like to generate PDF files from a WebDynpro application without using Adobe Interactive forms.
    I think that I can export context data to XML stream and then apply XSLT transformation to produce XSLFO format and then pass it to xlfo processor i.e FOP to generate the PDF file.
    Has someone already try this way of generating PDF files?
    Is it a good way of processing ?
    Thanks in advance.
    Thomas.

    hi Thomas,
    You can make use of the iText API to create pdf documents through webdynpro.
    For this you'll have to download  the Itext api jar file.
    Right click your webdynpro project include this jar file using the 'add external jar files'.Now you'll be able to make use of this api in your webdynpro project.
    http://javaboutique.internet.com/tutorials/iText/ .
    The above link will help you in using iText API.
    hope this one helps you.
    Regards,
    Rahul.

  • Pdf Printing using fop

    Hello gurus,
    I am receiving the following errors once I load my .fo file and test it:
    Adobe could not open 'accpted_risk_rpt[3].pdf, not a supported file type or fille has been damaged.
    I am using Apex 3.2.1 on Oracle 10g. I have purchased the java4less to produce my formatted reports and export the .fo file.
    Then upload the file into my Apex environment and attach the file to a report query, then I receive the error. When I attach the file to the defuault fo layout, provided by apex it doesn't error on me. Any help on this is greatly appreciated.
    Thanks,
    Mary

    Mary
    I too use multiple report queries which are then converted to XML and passed to the FOP server, I'm not sure what you want is achievable in the report queries. Alternatively you can use XSL in the style sheet to conditionally display output.
    e.g.
    <fo:block font-size="8pt">
    <xsl:for-each select="//ROWSET2/ROWSET2_ROW">
    <xsl:variable name="vContactTypeName">
    <xsl:value-of select="CONTACT_TYPE_NAME"/>
    </xsl:variable>
    <xsl:if test="$vContactTypeName = 'URL'">
    <fo:block><xsl:value-of select="CONTACT_TYPE_VALUE"/></fo:block>
    </xsl:if>
    </xsl:for-each>
    </fo:block>
    Hope that helps
    Paul

  • Help bring a multipage scanned document (TIFF) in PDF format using XML Publ

    Help bring a multipage scanned document (TIFF) in PDF format using XML Publisher.
    In the generated XML file data into BLOB field is, but their XML Publisher can not handle.
    If the output TIFF, multipage PDF file in the report, the report prints a blank.
    <fo:instream-foreign-object content-type="image/tiff"> <xsl:value-of select=".//FILE_DATA"/>
    If the output JPG file to a PDF report, all displayed perfectly.
    <fo:instream-foreign-object content-type="image/jpg" height="9 cm" width="12 cm">
    <xsl:value-of select=".//FILE_DATA"/>
    Thanks

    It seems that these error messages MOD_OC4J_0184 etc are associated with some sort of timeout.
    My problem finally solved - see my comments at:
    Re: FOP
    I would like to see the PDF format using FOP docs made clearer that 2 http servers are involved in this process, one serving htmldb pages and the other oc4j stuff.
    Is it possible to do the PDF format using FOP with only the htmldb http server??
    Cheers
    KIM

  • PDF Printing with FOP/Apache Tomcat/J4LFOPServer in windows

    Hi everyone,
    I have been learning to create pdf report with Apex 4.2 and BI Publisher 10 which I have been successful with. Now I like to learn how to create pdf reports using FOP thinking of the customers who will not spend money on BI Publisher. I have gone through the documents and procedures described in Java 4 Less. http://www.java4less.com/apache/fop.php and http://www.java4less.com/fopdesigner/fodesigner.php?info=apex. Configured Apex instance setting accordingly.
    For default layout a tabular pdf report is created.
    I have created an xsl-fo file named Formatted_report.fo on same query and xml file from report query with BI Desktop. But when I try to print a formatted output with Formatted_report.fo report layout it does not work(J4LFOPServer ). but same layout with .rtf template works fine (BI Publisher Print Server).
    Please help
    Hasan Al Mamun
    Programmer/Assistant Systems Analyst
    Bangladesh Bank
    Dhaka, Bangladesh
    Edited by: 913230 on Dec 15, 2012 9:37 AM

    hi,
    if you use the J4lFOPServer as you write, you can set it in debug mode as described here:
    http://www.java4less.com/apache/fop.php?info=faq#debug
    you will then see the XML data and the FO data in the server window. Maybe you can see there if there is an error and that can help you fixing it.
    Jon

Maybe you are looking for