Producing pdf from XML via XSL:FO

Anyboy point me in the direction of a good tutorial, book or any other reference on how to produce a pdf from XML, please?

Elliott Rusty Harold's XML Bible has a decent chapter re: XSL-FO. The on-line version might even be up-to-date (the print edition that I have is not).
The Apache FOP documentation is pretty good.

Similar Messages

  • Generating PDF with XML and XSL

    Hi, quick basic question...
    I'm trying to generate pdf doc from xml with xsl.
    I'm using following sample code from xml.apache.org
    response.setContentType("application/pdf");
    Driver driver =new Driver();
    driver.setOutputStream(response.getOutputStream());
    driver.setRenderer(Driver.RENDER_PDF);
    Transformer transformer=TransformerFactory.newInstance()
    .newTransformer(new StreamSource("foo.xsl"));
    transformer.transform(xmlsource, new SAXResult(driver.getContentHandler()));
    xmlSource is my regular xml that wants to be pdf.
    is foo.xsl any regular xsl that I use to coonvert xml into html?
    or is it some special xsl that is tailored for pdf.
    Is this what is called xsl-fo?
    Thanks
    IL

    Hi IL,
    XSLT can translate XML to something else. It is most suited to transforming to another tree-like format (XML, HTML, etc.) but can be 'asked' to produce other kinds of output, flat text for example.
    It is driven by an XSL file which is a series of patterns to match and output to produce.
    This XSL file can be used to generate another XML document in which the nodes come from the Formatting Object namespace. These describe, in generic terms the format of an output document based upon the contents of the original XML.
    The formatting object XML document can then be used as input to a formatting object XML processor which can generate PDF output from it.
    You may want to check out:
    www.w3c.org
    for all the stuff on XML, XSL, XSLT, Formatting Objects, etc., and:
    xml.apache.org
    for imformation on Xalan, which is an XSL processor and FOP, which is a formatting object processor.
    Hope that helps,
    Peter.

  • How to automatically create fillable PDFs from XML

    We are looking for a way to create fillable PDFs that users can enter data into and save (so the PDF needs Reader Rights applied) and we want to be able to automatically create these PDFs from XML files. We are able to do what we want in a manual fashion using Acrobat Pro v8 but we need a way to automate this due to the volume of XML files that we will need to convert.
    Is there any way that this can be scripted from a command line interface with Acrobat.. like:
    Acrobat.exe –input FileName.xml –output FileName.pdf –applyReaderRights true
    If there is no command line options for this is there any way that this could be coded using .NET or any other programming language?

    You cannot automate applying usage rights with Acrobat. For that you'd need to use Adobe's LiveCycle Reader Extensions.
    How exactly are you currently converting XML into fillable forms? Are you using an XDP to somehow convert to an XFA-based PDF?

  • Fastest Way to Render PDF from XML

    Hi
    I have used XSLTC(pre-compiled XSL files) to render PDFs.Parser i have used are the latest from XALAN.
    Using FOP 0.20.5
    Using JAXP 1.3 i am using the validate framework for validating XMLs against XSDs.
    This is the fastest approach which i could possibly come up with for rendering XMLs into PDFs
    I am just wondering..with so many API etc available is there any accepted fastest way of Rendering PDFs through XML.
    I mean this should also take into account the rendering capability of the transformers.
    Any insights would be welcome.
    Thanks.

    Logging and Capturing?  Or Logging and TRANSFERRING?  This being P2...I'll assume the latter.  It should take about a gig a min to transfer...the same time needed to back up a card. 
    But you are L&T right from the camera...so I assume that you are not backing up the footage...just importing?  Why not back up?  That's step #1.  Unless you are backing up later.  Connected to the computer via USB or Firewire?  And the drive is connected to the computer how?  USB or Firewire?

  • How to generate PDF from XML output without XML publisher

    Hi,
    I am facing a problem while splitting the rdf generated XML output.
    Problem Description:
    I have a oracle invoice report which runs once every day (scheduled program). This report fetches me the invoices generated on that day and needs to be Mailed / Faxed to the customers.
    So i developed the report in such a way that it generates the output order by customers...since the output generated will be as one .out file in APPLCSF/out directory...the .out file needs to be splitted by customers, for which i have written a cursor which takes the data of the main query and submits that many requests as many as customers are there.....There is a possibility of having 1000 customers per day also. If that is the case then my main program will fire that many requests.
    Is there a different approach......any inputs are highly appreciated.
    Also, i am generating the output in XML format. Is there a way from which i can directly generate a PDF from that XML output rather using any other tool.
    Thanks & Regards,
    Lakshmi Kalyan Vara Prasad.

    Hi,
    with Reports Bursting and the defined "distributions" it's possible to have one report splittet to several parts with different receipients. Have a look at http://download-uk.oracle.com/docs/cd/B14504_01/dl/bi/B13673_01/pbr_dist.htm.
    With xsl-fo it's possible to create pdf out of xml ... that's what xml publisher is doing.
    Regards
    Rainer

  • From XML to XSL FO

    How to produce XSL FO file from XML file using XSLT (or something else). Is it possible, and can someone give some example ?

    You can use JAXP to apply an XSLT to an XML file. Beyond that questions about XSLT should be posted somewhere else. This is mostly for Java and XML not XML only help.

  • Creating PDF from XML directly in a content management system?

    Hi!
    This is my first post here and I've tried to find any previous posts that could answer my question but to no avail. Also I think and hope this is the correct sub forum to post it in.
    I work at a company that produces a product catalogue that is published as a webpage, a PDF document (used as the basis for a tablet app) and a printed catalogue from a PDF. For the PDF (used in the tablet app and the printed catalogue) we are using a CMS based on XML that produces Adobe FrameMaker documents which we then export the PDF from. We are looking in to updating the system and make it flow much better but are a bit uncertain of what the best way to go would be.
    A solution I'm thinking of would be to have the content of the product catalogue in some kind of XML based service that can export the information in XML. This would hopefully make it possible to send the documents either directly to PDF by XML and some style sheets or import the XML into some InDesign templates (for the more complicated designs at intro pages etc).
    One important aspect of the product catalogue is that we have all information saved in different languages so there has to be some kind of connection between the templates and different language versions -- ie. the page design but different language text flows for each language edition.
    What I wonder is. What kind of services/solutions would there be that handles XML to PDF for a quite complicated product catalogue (ie. the different language versions)?
    Thanks in advance!

    The difference between the two packages is that PatternStream effectively works on a "pull" principle (the content is retrieved into the template(s) by queries at the appropriate locations), while Miramo is a "push" (the tagged content is processed by Miramo using templates to create the DTP files). SInce Miramo allows programatical processing before the content is pushed into the DTP app, you can do all sorts of manipulations, conditional processing, automatically insert markers and variables, etc. so it allows for a fairly complex layout, even with FrameMaker. It also allows api's and scripts to be triggered at the backend when the publication has been assembled for further processing/manipulation.
    Is there any particular reason that you want to move from the FM engine to the ID one? In terms of throughpu,t FM streams run very much faster than ID ones. Also, unless the layouts are extremely complex, in an automated environment, there are very few catalogue layouts that I've seen that couldn't also be handled using a FM workflow.
    Are there any samples on line of the types of catalogues that you are currently producing? This would help in assessing which tools and workflows might be more appropriate to your situation.

  • Recreating PDF from XML

    Hello,
        I have designed a form in Adobe LiveCycle designer with rights enabled PDF,As we cant collect PDF directly from users due to 500 use licensing limit.Plan is to have users send the XML via 'Submit By Email' button and from my end recreate the PDF.
      My question is whats the ways/options do i have to recreate the PDF based on values in XML.
      This would be part of set up- where an application would connect to email server, download the email message with XML attachment;review the xml and if some tags/nodes are true then recreate the   PDF file with data from XML and save it locally.
      Now the email template have a statement that ". Adobe Acrobat Professional 7 or later can process this data by importing it back into the blank form....."
    Does that mean I can simply import the XML file to the form I created and voila i have my PDF,but how can i achieve the same via an application.
    As always Thanks in advance.

    You open the form in Acrobat and then simply use the data import under the forms tools. You could also use tools to save the data to a database (sorry, I don't know how to do it, but know it can be done).

  • Create pdf from xml in java

    hiya,
    i create an xml file in java program.
    now i want to create a pdf from this xml file "the information of sure"
    i have no idea how to do that.
    any headlines about that?
    i tiny example or a http site?
    thx :)

    xml.apache.org/fop
    really good.
    What you do is create a xsl with fo (formatting objects), that your transform to a fo and then you render to pdf, awt, ps or whatever you need to render to..
    I do 4500 documents (minimum 3 pages each) in 1 hour and a half...
    it's one of the best tools i found for PDF rendering from servlets, batchjobs etc...
    greetings
    maesj

  • Photoshop batch produce titles from XML or text list

    Hi,
    Is it possible to use photoshop to batch export a large list of titles from XML or some kind of text list?
    e.g.
    Home
    My Account
    Products
    Downloads
    Help
    etc
    For example, a website uses a lot of images as H1 titles for things  such as 'My Account' & 'Downloads' etc. I have a large text list of  these. Is there a script or plugin, that will take this list a given a  selected size & type face, produce images as cropped down GIFs.
    The  correct size is the size of the title. For example, create a new  document -> type some text -> hold down cmd and click the T on the  layer -> this will create the selection, and select crop from the  image drop down. That's the size I'm after.
    I can create  an action to do the bit above, but I'm unsure of how to feed the text in  to photoshop 1 title at a time. I've looked at the jQuery Sifr plugin,  but the idiots want to use images
    Thanks
    Any help on this would be great.
    Thanks
    Oli

    I don’t follow – what’s the input and what exactly is Photoshop supposed to put out?
    For example, a website uses a lot of images as H1 titles for things such as 'My Account' & 'Downloads' etc. I have a large text list of these. Is there a script or plugin, that will take this list a given a selected size & type face, produce images as cropped down GIFs.
    What size would be the »correct size« and how is Photoshop to deduce it?
    The correct size is the size of the title. For example, create a new document -> type some text -> hold down cmd and click the T on the layer -> this will create the selection, and select crop from the image drop down. That's the size I'm after.
    I can create an action to do the bit above, but I'm unsure of how to feed the text in to photoshop 1 title at a time. I've looked at the jQuery Sifr plugin, but the idiots want to use images
    Thanks

  • Photoshop batch produce titles from XML

    Hi,
    Is it possible to use photoshop to batch export a large list of titles from XML or some kind of text list?
    e.g.
    Home
    My Account
    Products
    Downloads
    Help
    etc
    Cropping the images down to the correct sizes as it goes?
    Any help on this would be great.
    Thanks
    Oli

    I don’t follow – what’s the input and what exactly is Photoshop supposed to put out?
    For example, a website uses a lot of images as H1 titles for things such as 'My Account' & 'Downloads' etc. I have a large text list of these. Is there a script or plugin, that will take this list a given a selected size & type face, produce images as cropped down GIFs.
    What size would be the »correct size« and how is Photoshop to deduce it?
    The correct size is the size of the title. For example, create a new document -> type some text -> hold down cmd and click the T on the layer -> this will create the selection, and select crop from the image drop down. That's the size I'm after.
    I can create an action to do the bit above, but I'm unsure of how to feed the text in to photoshop 1 title at a time. I've looked at the jQuery Sifr plugin, but the idiots want to use images
    Thanks

  • Pre-populate PDF from XML data

    I am looking into the feasibility of pre-populating a PDF form using an XML data file. The basic workflow I am investigating is this:
    1. both the PDF form (built in LiveCycle Designer) and XML file would be stored together on a web server.
    2. User would navigate to a web page containing a link to the PDF form, and click to open. The PDF form would open in their browser (using their installed PDF viewer plug in)
    3. the PDF form would be (partially) populated by the data in the XML file automatically
    4. User would fill out the unpopulated portion of the form, and save the resulting PDF to their computer.
    Is this workflow feasible? What are the problem areas? I realize that the the PDF would have to be Reader Extended to allow the user to save it.
    Many thanks for any and all help and direction.
    Matt LL.

    Hi Matt,
    yes, this workflow is perfectly feasible, not really with solely a standard HTTP server though.
    There are a variety of options. The issue is that the process of populating the form can usually not be done without any server-side application of logic.
    - You could use LiveCycle Forms to achieve that. That'd also allow you to use other LC components later on easily , such as Reader Extensions, Process Management or DRM for your documents.
    - You could use Adobe ColdFusion for pre-populating the form from XML, it's super easy (much more straightforward than LC imho). The downside is that CF doesn't have an option to Reader Extend the form for you. That being said, you could get Reader Extensions as a stand-alone module and use it's SOA APIs to hook into your CF code (ColdFusion is basically just an abstraction layer on top of Java).
    Hope that helps to get an idea.
    Cheers
    Kai

  • 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

  • Interactive 3D PDF from CAD via Photoshop

    Hi,
    I see a lot of discussions on this topic but none ever seem to have an answer.
    My designers are rendering images in FormZ (CAD program).
    FormZ has no way to directly output an interactive PDF where you can see a 360 degree view.
    FormZ support and lots of info I googled tell me to run it thru PS Extended 3D.
    It seems that PS CS6 removed the .u3d export function so it does not seem to work.
    I've tried to go back to CS5.1 but that brings the CAD file in as a smart object and loses the interactive function.
    Is there a path thru for either 5.1 or 6?
    Bottom line is we have the CAD 3D/360 files.
    We want an interactive PDF where our customers can get that 360 view.
    (FormZ outputs a nice web version, but stupid IE doesn't support the HTML5 enough for it to function so a web version is out of the question for now)
    Thank you for any input!

    You actually have great options for making 3D PDFs from FormZ data.  FormZ can output to several neutral file formats - STEP, IGES, STL, SAT, OBJ, for example.  Just download a free trial of 3D PDF Converter from www.tetra4d.com/3d-pdf-converter  Once you've installed,  just right click the exported STEP or any of the other supported formats (I suggest you play around with which one gives you the best results) and you will quikcly have a 3D PDF.  If you want to do more advance things, like add textures or make it more photo realistic, try outputting a .3ds file and using Autodesk's 3D Studio Max.  Then to get the 3D PDF, you can add the 3D PDF for 3ds Max plug-in from tetra4D.  http://www.tetra4d.com/3d-pdf-for-3ds-max.  Hope that helps!

  • Using IE V.11 and blocks PDF from opening via links?

    Using IE V.11 and can't open PDF from links. Help PLZ!

    What exactly means "can't"?  Is this perhaps the problem: http://support.microsoft.com/kb/2716529 ?

Maybe you are looking for

  • Safari crashes and won't open.

    New Bee here and after searching and trying most everything, I had no luck and to post this error msg I get every time I try to open Safari. I have no Genieo as I looked for it. Your help is appreciated. Rgds Elvin Process:           Safari [847] Pat

  • Doesn't feed paper. color laserjet pro mfp m177fw

    I just bought the Color Laserjet Pro MFP M177fw. I removed all the packing as instructed in the installation guide. While initializing the printer makes a strange noise. When I try to print it gives me a message to load paper. No matter how much pape

  • Premiere Pro CC-MediaEncoder : Setting sequence composite linear color ?

    Hello, hello, Someone would tell me what is this option? Setting sequence> composite linear color (or GPU acceleration rendering quality max neccessary)? I wonder if the fact that my media encoder takes me 6 H encoding to make a video of 17mn which h

  • Sharing bookmarks using bonjour

    Hi everyone. I am running Tiger on my MacBook and my girlfriend has Leopard on a new aluminium MacBook. We'd like to share our bookmarks over the WLAN so we could find each others stuff on both computers. So far I've had no luck trying to accomplish

  • Blu-Ray video capture and burning with G4 Power Book ??

    Good afternoon. Has anybody figured out this route with a G4? If so, please explain in nauseating details! Hardware, software, etc....... Thanks for your time!