Problems generating PDF from FO DOM with SVG in code.

Colleagues,
I am using FOP 0.20.5rc to render an FO DOM I have in a javax.xml.transform.dom.DOMResult into a PDF output stream destined ultimately for an attachment to an email. The FO DOM contains SVG generated from a JPEG image.
If dump the FO DOM to a file and then generate the PDF using FOP from the command line I get the image in the document.
If I pass the FO DOM to a FOP Driver in code I get the document but no image!
I'm obviously missing some vital configuration option in code but for the life of me I can't see it.
Any help would be gratefully received,
Peter
PS. Some of the code:
Driver driver = new Driver();
driver.setLogger(new org.apache.avalon.framework.logger.NullLogger());
driver.setRenderer(Driver.RENDER_PDF);
driver.setOutputStream(new java.io.FileOutputStream("c:\\temp\\out.pdf"));
driver.render((Document)foDOM.getNode());

Output from run with a ConsoleLogger instead of a NullLogger:
[java] [INFO] building formatting object tree
[java] [WARNING] Screen logger not set - Using ConsoleLogger.
[java] [INFO] setting up fonts
[java] [INFO] [1]
[java] [DEBUG] Last page-sequence produced 1 pages.
[java] [INFO] Parsing of document complete, stopping renderer
[java] [DEBUG] Initial heap size: 2434Kb
[java] [DEBUG] Current heap size: 2142Kb
[java] [DEBUG] Total memory used: -292Kb
[java] [DEBUG] Memory use is indicative; no GC was performed
[java] [DEBUG] These figures should not be used comparatively
[java] [DEBUG] Total time used: 781ms
[java] [DEBUG] Pages rendered: 1
[java] [DEBUG] Avg render time: 781ms/page
As far as I can tell, it's not complaining about anything,
Peter

Similar Messages

  • Generating PDF from Microsoft Word with C#

    Hello,
    We have created web-based system for a customer that stores/handles Microsoft word documents and provides these to users as PDF versions. Unfortunately some problems appear with our third-party component that generates PDF from Word. Our customer has previously used Adobe Acrobat X Pro to manually generate the PDF files and is confident that the output produced this way is valid. Despite searching and reading a lot I can't find any way to determine if (and how) it is possible to automate the process of generating a PDF file from a Microsoft word file using the Adobe engine. There is a lot of SDK documentation, how to control PDF rendering in winforms applications etc. etc. All I want to do is to load an Adobe Acrobat instance, feed it with a word document and save it as a PDF on disk. From a C# app (ASP.NET). Is that possible?
    Best regards
    Jan Hansen

    As mentioned, you can probably send the DOC file to the Adobe PDF printer to create the file. What I keep reading in your post is a legal issue. You keep mentioning being able to create the PDF on a server automatically. The server use of Acrobat is a violation of the EULA. If you are creting the files off-line for posting as has been done, there should not be a problem. However, having these created in an automated manner by the user may be an issue. Before you go much further, I would check with legal counsel about the use of Acrobat in the way you intend. If they indicate there is a problem, then your question is not needed.
    Back to the issue. Try just dropping a DOC file on the Adobe PDF printer icon (you may have to open the Start>Printers to do that. See if that creates the PDF. If so, you will just need to automate that process.

  • Problems opening PDFs from SharePoint 2010 with Acrobat X Pro

    Is anyone else having problems integrating pdf document support into Sharepoint 2010?
    I now have the icon showing for any pdf documents saved in a Document Lirary, However I don't get the options of Checking out - editing an checking in. There is also no revision control. I think that when I open a pdf document, the servers own copy of Adobe Reader opens, and not my local copy of Reader or Acrobat X pro.
    I've done what it says in the Administrators guide for Sharepoint integration and I'm still unable to get this functionality to work. As we use interactivve pdfs for a lot of our internal documentation the pdf integration features are very important.
    Any help from users who have already been through the pain of sharepoint integration would be really appreciated.
    Regards.

    Hi Bill,
    Looking at your initial problem of not being able to open the SharePoint hosted PDF document from the web browser.
    Could you please verify that as per the "Enterprise Administration Guide", the DocIcon.xml file of your server contains the following line:
    <Mapping Key="pdf" Value="AdobePDF.png" OpenControl="AdobeAcrobat.OpenDocuments"/>
    Please verify that the OpenControl attribute is also mentioned correctly. Without this the Acrobat Active X component would not be invoked.
    thanks,
    Shivani

  • Problems opening PDFs from SharePoint 2007 with Acrobat X Pro

    We are currently migrating to Windows 7 x86, Acrobat X Pro, and Office Pro Plus 2010 SP1. Our old setup is Windows XP, Acrobat 8 Pro, and Office 2007. We are using SharePoint 2007. On our older machines, we are able to open and edit PDFs without any problems. However, on our newer machines with Acrobat X, we get this error whenever we open a PDF for editing:
    The document could not be opened for editing. A Windows SharePoint Services compatible application could not be found to edit the document.
    All of our XP users can open and edit documents without any problems--only our newly migrated Windows 7 users are unable to edit these documents. Is there a setting that I need to adjust in Acrobat X? I don't recall seeing any Acrobat X specific options in SharePoint configuration. Thanks!
    EDIT: I was able to open and edit a PDF document using the following steps:
    1. Click drop-down menu next to document and select "Check Out."
    2. In the check-out dialog box, check "Use my local drafts folder." Click OK.
    3. Back in SharePoint, click on document to open--click OK to message warning about malicious files.
    4. Edit document, then click Save button. Close Acrobat.
    5. Back in SharePoint, click drop-down menu next to document and select "Check In."
    6. Confirm the check-in.
    7. Redirected back to document library and the modified date and by fields are updated.
    This seems like an awful amount of steps. Is there a way to make this function the same when a user edits a Word or Excel document?
    Message was edited by: jprateragg
    Added info under EDIT.

    In Acrobat X, SharePoint Integration has been added which allows users to check-out/check-in the document from within Acrobat. Clicking the file from document library in Internet Explorer opens the file in Acrobat. The configuration that needs to be done on the SharePoint server is explained in the following KB article in section 11.1.
    http://kb2.adobe.com/cps/837/cpsid_83709/attachments/Acrobat_Enterprise_Administration.pdf
    Please try these and let us know if you face any problems after this.

  • How to ... Generate PDF from BexWAD Application with company Logo in header

    Hi all profis,
    I read many theories (on-line help, sdn forum, google) about creating a PDF document with pictures, logos, texts and so on, but in each of them is some "...but, limitations, only if ..."
    The easiest way, I guess is to create a BexWAD Application with item "REPORT" and "ANALYSIS ITEM".
    In REPORT - a crystal report page, is saved company logo with text
    ANALYSIS item includes data
    Via Export (into PDF) those both items has to be exported. The only topic is, how to repeat the report item on each page of a PDF document? There is a possibility to repeat column names, but not a company logos as a header.
    I will ask in general -> Does someone has a solution, how to export data from SAP BI into PDF including  Logo and Text(Company Adress) in header (which will repeat on each page) ??
    Thank you very much for any purposes. As answer I prefer a concrete suggestions, not links to on-line help.
    Have a nice day.
    Standa

    I have another idea to create a PDF file with company logo and hierarchical structure of data.
    Via Report designer, it is not possible to display data in hierarchical structure, but it is possible to add logo (picture) into header.
    Via WADWeb Application designer, it is possible to display data with a hierarchy, but a logo is not shown on each page.
    Via InformationBroadcaster, there is a possibility to add into header a free text. There is an option <PR_ONLINE_LINK> . Can I create another element (new, own one), which will contain a picture? How can I edit this element <PR_ONLINE_LINK> ? Would it be possible to add there a picture?
    Thank you
    Standa

  • Problem sending PDFs from Adobe Acrobat with Email

    All the sudden when I send emails from Adobe Acrobat XI Pro it does not recognize my default mail program (Microsoft Outlook 2013). I've gone to "Edit > Preferences..." and then email accounts. It has the "Default email application (Microsoft Outlook)" checked. But it still persists with the error: "Either there is no default mail client or the current mail client cannot fulfill the messaging requests. Please run Microsoft Outlook and set it as the default mail client."I've set the default mail client as outlook. This service used to work and then all the sudden it stopped working.

    Was the e-mail option working with Outlook 2013 in the past or did you just install OFFICE 2013 and are now having the problem?

  • Generate PDF From Database

    Hi,
    I have a table in database. Table has a column. There is data of pathes of images into column. I cretaed a illustrator template and I want to generate PDF from this template with using table data in database. so, is it possible? illustrator created pdf per each image with using illustrator template.
    thanks,

    AI cannot conent directly to databases. It can only parse CSV/ XML data. You either need to export the stuff or create extensive scripts to connect to the life database using sockets.
    Mylenium

  • JNDI error while generating pdf from crystal reports in java

    Hi, i want to generate PDF from crystal reports in java. I have the .PDF file with database configured into the report. Following details are available in report.
    1. Server Name      = testdb
    2. Database Name  = testdb
    3. User
    4. Password
    I am using CR XI.
    In CRConfig.xml i had given following details.
    <JDBC>
         <CacheRowSetSize>100</CacheRowSetSize>
         <JDBCURL>jdbc:oracle:thin:@192.218.216.102:1521://TESTDB</JDBCURL>
         <JDBCClassName>oracle.jdbc.driver.OracleDriver</JDBCClassName>
         <JDBCUserName>user</JDBCUserName>
         <JNDIURL>password</JNDIURL>
         <JNDIConnectionFactory></JNDIConnectionFactory>
         <JNDIInitContext>/</JNDIInitContext>
         <JNDIUserName>testdb</JNDIUserName>
         <GenericJDBCDriver>
              <Default>
                   <ServerType>UNKNOWN</ServerType>
                   <QuoteIdentifierOnOff>ON</QuoteIdentifierOnOff>
                   <StoredProcType>Standard</StoredProcType>
                   <LogonStyle>Standard</LogonStyle>
              </Default>
         </GenericJDBCDriver>
    </JDBC>
    When i am calling from java as standalone, i am getting following error.
    JRCAgent1 detected an exception: Error finding JNDI name (testdb)
    at com.crystaldecisions.sdk.occa.report.lib.ReportSDKException.throwReportSDKException(Unknown Source)      at com.businessobjects.reports.sdk.b.i.if(Unknown Source)
    Can anyone let me know where is the problem?

    Actually, the question boils down to; does the framework support the fonts?
    I believe that my question re. this working in the designer was valid. The designer does not use the framework, so if it works there, it is either a framework issue or a runtime print engine issue.
    I believe if you use the code below, it will list fonts available to the framework:
    foreach(FontFamily ff in FontFamily.Families)
    System.Diagnostics.Debug.WriteLine(ff.Name);
    For more information see kbase [1198306 - Crystal Report displaying incorrect font in Microsoft Visual Studio .NET|http://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/oss_notes_boj/sdn_oss_boj_dev/sap(bD1lbiZjPTAwMQ==)/bc/bsp/spn/scn_bosap/notes%7B6163636573733d36393736354636443646363436353344333933393338323636393736354637333631373036453646373436353733354636453735364436323635373233443330333033303331333133393338333333303336%7D.do]
    Ludek

  • Gray box for logo generating pdf from fm book

    Greetings,
    I have a large FrameMaker book that I've generated pdfs from a million times. We cleaned up our logo, so I dropped it in and tried to generate the usual pdf. a gray box resulted for the logo only. all other artwork displayed fine. i tried scaling down the logo, changing formats, changing import methods, etc. all failed. however, generating a pdf from the book if I remove a few chapters gives me my logo. Am I running out of resources? I'm using tech comm suite 1.3 on vista. There are no clues in the acrobat log. show large images is turned on in the adobe reader.
    I used the obvious workaround: generated two pdfs, one with just the logo page and one with the rest of the book, then combined them. But this process is not practical long term. Any clues?

    A couple questions:
    What format is the new logo file?
    Given that it works with some component files, but not in the book... I'd guess that it may be a resource issue. How much RAM and free space do you have?
    And when you "dropped it in," does that mean imported into one file by reference, or copied in, or imported into a template that you used to update all files in the book..... or something else? And if it did update multiple files, did you double-check them to make sure the path to the graphic is correct?

  • Generating pdf from scanner

    generating pdf from scanner hp G3010: old windows xp file weight 40-50 K. Macbook pro with new mac os 10.7.2 minimum file weight 1,9 Mbyte with terrible resolution!!!! and no way to reduce.
    Nice change?

    It is assumed the TOC is up to date.

  • How to generate PDF from template via REST query

    Hello. I'm newbie in Adobe LiveCycle, will appreciate any help.
    What we need: generate PDF from template, using different data.
    What we have: LiveCycle Designer and server with deployed Adobe LiveCycle ES 2.5 image.
    Looks like server works and listen 8080.
    In Livecycle Designer I can generate XML (XDP) from PDF, so I can change this XML in PHP/Python/Go script to fill template with data.
    I'm looking for some REST method, where I can give that XML (XDP) and recieve generated PDF in response.
    I've spent whole to for googling all these things, found a lot of docs, but all is very complicated there. Also, examples from just doesn't work - maybe I have to do something on server before calling REST API method.
    Please, push me into right direction

    Your best bet is to probably create an orchestration (or "process" in Adobe speak) that accepts two document parameters, calls LiveCycle Forms (or Output depending on whether you want to interactive or non-interactive PDF), and returns the resulting document variable.
    The orchestration will return a redirect that will point you to the document object.
    See Invoking LiveCycle using REST Requests, and Creating Your First LiveCycle ES4 Application.
    Rob

  • Generate PDF From Flex

    Hi All,
    I am doing a Reporting/Chart application in FLEX. we need to
    generate PDF from FLEX. Report data will be 5-10 pages, How we can
    do this? Please advise.
    Thanks
    Subhash

    Hi,
    thanks for your reply. I tried with alive pdf, but source
    code only AIR files. can we use this in web based flex?. How we can
    format the report like html code? I just see in alivepdf, its only
    linebyline display, not multiple columns? pls advise.
    thanks alot
    Subhash

  • How to create PDF from text file with specific layout?

    I wanted to create the pdf from text file in specific layout - Landscape orientation and JIS B3 Page size while at Adobe Acrobat Pro.
    In past, I could do a right click on a text file (desktop area) and select print to print out the document into .pdf BUT only if I set the Adobe PDF to Landscape and JIS B3 Page size BEFORE.  And I could only do 15 text documents at once.
    I wanted to see if I could do the create the pdf from text file with specific layout in Adobe Acrobat without having to go to Control Panel to preset the Adobe PDF to specific layout at every time.   I would have to set Adobe PDF back to normal layout after I'm done with these pdf print outs.  I do lots of pdfs in normal layout.  Sometimes I would forget to do that.
    So, How do I do that?

    No such luck.  It would output the contents in letter size even in JIS B3 Page layout at MS word. 
    Is there a script or action where I could set the orientation and page size before creating PDF on these text files?

  • Generating PDF from MSWord--IsTable of Content Updated?

    Hello,
    In generating PDF from MSWord document does the Adobe process call a method on the MSWord object to update the TOC field in the Word document during the generation process. Or is it assumed that the table of content in the Word document is always updated. If the table of content field is not current, field error message can appear in the Word document and the page number for
    the link can contain inaccurate values.
    Thank you,
    Jesse

    It is assumed the TOC is up to date.

  • I am able to generate PDF from Framemaker file but not able to generate pdf from book in robohelp

    Hi,
    Using robo help i am able to generate pdf  from a single framemaker file.
    but when i am importing whole book then i am not able to make it.
    And also it is not showing any error on console
    It goes to hang like situation and i have to close it from task maneger.

    Ok, silly question - why are you bothering to try and create PDFs from RH when you've got FM? FM to PDF produces great results; RH to PDF involves having to go through Word - i.e. RH - Word - PDF = too much work IMHO.

Maybe you are looking for

  • How can I hide what I write in a find and change list

    I've written a find and change script, I prepared to offer it for anyone to use, but I don't want to anyone to read what I write in the find and change list. How Can I hide it?

  • How do I install the Macro Media Player?

    Im currently taking an online test for my college course and I cannot proceed without first downloading the macromedia player but Im unable to click the download link because I "need a plugin". PLease help.

  • Need help ASAP with photoshop elements 11

    Please I need help its photoshop elements 11 but I can't put up the pic I need help with could someone help me out by using Facebook, Amanda Jayne Clarke I have a pic of a little girl n a horse Please i need help ASAP

  • Phone is stuck in black and white + lost data

    help! I tried to transfer the addressbook from my old blackberry pearl to my new one and instead it just deleted practically everything. the screen is all black and white and I can't do anything....I'm pretty sure all my data is lost. My phone is out

  • Is there a memory leak in Aperture 3.5?

    Aperture 3.5 Mac mini (late 2012), 16GB RAM OSX 10.9 I've been doing some phto editing work in Aperture recently. This has involved painting in Curve adjustments. It's been getting pretty slow. Then this window appeared. Looking at Activity Monitor,