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.

Similar Messages

  • 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

  • Syncing texts - i-phone 5S and i-pad 4th gen

    I am trying to sync text messages to and from my I-phone and I-pad. Both are on iOS 8.1.2    I am using my I-cloud email to start conversations on both devices.
    Under Settings>Messages>Text Message Forwarding>(my name) ipad ( turned ON)  I am asked to "enter the code shown on your ipad to allow iPhone text messages to also be sent and received on (my name ) ipad" 
    Question: what is this code and how do I find it?  Note: the key board that appears is similar to the one that I use to enter my passcode but the passcode itself does not work.

    Did you have DND enabled manually? Or on a schedule? If the latter, check the timing.
    Personally, I still use the mute switch on the side. I've never had it fail me.
    Best of luck.

  • 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.

  • 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

  • Image not displayed in pdf generated using Java API for Forms service

    Hi,
    I am creating a pdf document using Java API for Forms Service.
    I am able to generate the pdf but the images are not visible in the generated pdf.
    The image relative path is coming in the xml as defined below. The images are stored dynamically in the Livecycle repository each time a request is fired with unique name before the xml is generated.
    <imageURI xfa:contentType="image/png" href="../Images/logo.png"></imageURI>
    Not sure if I need to specify specify specific URI values that are required to render a form with image.
    The same thing is working when I generate pdf document using Java API for Output Service.
    As, I need to generate interactive form, I have to use Forms service to generate pdfs.
    Any help will be highly appreciated.
    Thanks.

    Below is the code snippet:
                //Create a FormsServiceClient object
                FormsServiceClient formsClient = new FormsServiceClient(myFactory);
                //Specify URI values that are required to render a form
                URLSpec uriValues = new URLSpec();
                                  // Template location contains the whole rpository path for the form
                uriValues.setContentRootURI(templateLocation);
               // The base URL where form resources such as images and scripts are located.  Whole Image path is passed in BaseUrl in the http format.
                      String baseLocation = repositoryPath.concat(serviceName).concat(imagesPath);   
                                  uriValues.setBaseURL(baseLocation);                                        
                // Set run-time options using a PDFFormRenderSpec instance
                PDFFormRenderSpec pdfFormRenderSpec = new PDFFormRenderSpec();
                pdfFormRenderSpec.setCacheEnabled(new Boolean(true));           
                pdfFormRenderSpec.setAcrobatVersion(com.adobe.livecycle.formsservice.client.AcrobatVersio n.Acrobat_8);
                                  //Invoke the renderPDFForm method and write the
                //results to a client web browser
                String tempTemplateName =templateName;
                FormsResult formOut = formsClient.renderPDFForm(tempTemplateName,
                                              inXMDataTransformed,pdfFormRenderSpec,uriValues,null);
                //Create a Document object that stores form data
                Document outputDocument = formOut.getOutputContent();
                InputStream inputStream = outputDocument.getInputStream();

  • Text Flow in ePUB and Accessible PDF

    I have a newsletter in InDesign.  I have all the text flow marked.  Each article is a separate "story".  Story1 flows onto page 2, with the text flows linked correctly.  On page 2, story2 begins in the text box below the end of story1.
    So on page 2, why does accessble pdf read story2 before the second portion of story1?
    I have the same behavior in the version extracted to EPUB.
    Any ideas what I am doing wrong? or how I can correct it without having to create a single column of text throughout?
    Thank you,
    Joyce

    I've never seen that. In both accessible PDFs and EPUB, when I export all of a story will be read before going on to another object.
    What version of InDesign are you using? If you're using InDesign CS5.5 or later, you can use the Articles panel to set the reading order for accessibility (or for EPUB).

  • Text documents w/symbols and also pdf's

    I am trying to incorporate my trademark, logo design and symbols.  Program will not download microsoft word docs.  Can adobe 1 page pdf files be downloaded into the beginning or end of a video?  Thank You.

    Don't let the newness of the program get you down.
    Titler is a pretty powerful little application. However, it does have some limitations. I use it for most of my simple Titles, but rely on other programs for something more involved. I'll do the text in Word, or WordPerfect (to use Spell Checker), and then do Copy/Paste operations to either Illustrator (and then to PS), or Photoshop to get my final output. For me the only question is when to I go to those other applications. I'm pretty quick to jump out of PrPro's Titler, but much of that is because I love working in PS and AI for their control.
    Good luck,
    Hunt

  • HT1212 I have forgotten my passcode to my i-pod touch, it is not sync'd to i-tunes and I have not used i-cloud.  How can I get into the i-pod?

    How can I access my i-pod touch?  I have forgotten my passcode, not on i-tunes or i-cloud.

    Disabled
    Place the iOS device in Recovery Mode and then connect to your computer and restore via iTunes. The iPod will be erased.
    iOS: Wrong passcode results in red disabled screen                         
    If recovery mode does not work try DFU mode.                        
    How to put iPod touch / iPhone into DFU mode « Karthik's scribblings        
    For how to restore:
    iTunes: Restoring iOS software
    To restore from backup see:
    iOS: Back up and restore your iOS device with iCloud or iTunes
    If you restore from iCloud backup the apps will be automatically downloaded. If you restore from iTunes backup the apps and music have to be in the iTunes library since synced media like apps and music are not included in the backup of the iOS device that iTunes makes.
    You can redownload most iTunes purchases by:
    Downloading past purchases from the App Store, iBookstore, and iTunes Store        
    If problem what happens or does not happen and when in the instructions? When you successfully get the iPod in recovery mode and connect to computer iTunes should say it found an iPod in recovery mode.

  • 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

  • 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

  • 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

  • How to use PDF generator installed on dedicated machine

    Hi!
    According to Adobe official recommendation I have installed PDF generator on dedicated machine, separed from rest of LiveCycle modules. But now I don't know how to use such a PDF generator from my LC processes. Obviously I may use webservice component and call PDF generator using SOAP. But that is not elegant. I searched in adminui for some URL or IP address settings, but found nothing.
    And what to do when I have more then one PDF generator server? Probably I need some sort of load balancing. Is LC ES capable of work in such configuration?
    Thanks for some ideas.
    --- Jaroslav

    There is possible to specify PDF generator location in file repository:///assembler.properties . So I created the file:
    serverType=JBoss
    protocol=soap
    endPoint=http://192.168.2.1:8080
    username=administrator
    password=password
    and put it to repository root. Unfortunetally nothing happened. I restared server also but no effect. Do you have some experience with configuring server location in LiveCycle?
    --- Jaroslav

  • 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

  • Multiple times payment for one subscription

    Hi, i am holding one subscription and tried to get new subscription to same country and same subscription before the 1st subscription completed.when i tried to do payment through skrill  i got an error msg  "payment was unsucessful  please retry" so

  • Plant Maintenance Order Act Costs-0PM_OM_OPA_2 or 0CO_OM_OPA_6 datasources?

    To get Actual/plan costs for the value categories in Plant Maintenance workorders, which DataSource  would I use? The 0PM_OM_OPA_2 or 0CO_OM_OPA_6? What is the difference? The 0CO_OM_OPA_6 is already pulling data for Internal orders in our system. Ho

  • Just bought Logic 8 ....and found out 9 is now out

    Hi all ! . Sorry to go over old ground (as Im sure this questions has been asked on here already) , but Ive only just made the change from PC to Mac so a little bit behind with thing's. I got and iMac 2 weeks ago and bought Logic Studio 8 at the same

  • How to install software correctly?

    when installing a software, how can i do it so it works in both accounts? yesterday i was trying to install msn.. but i work on the account i installed? but i could found it in the other account. why? can anybody help me?

  • Problem by uploading files via gui_upload with large files

    I´m using gui_upload to upload files to the application server. When I´m trying to trasfer files bigger than 150MB I get the exception dp_out_of_memory.