Help converting html/xhtml to pdf with bfo pdf lib or other tools?

Hi,
I need to convert from xhtml to pdf. I tried parsing it with xerces and crimson but wouldnt work. So the samples coming with big faceless pdf library dosent work. Is there any other method to convert html/xhtml to pdf - any libraries for direct conversion. BFO pdf report generator takes xml as i/p to convert to pdf.
Thanks for any help

Look here:
http://www.adobe.com/sea/products/server/pdfgenerator/

Similar Messages

  • Add Image in PDF with Alive PDF

    Hi community, i need help to add a image in PDF with Alive PDF.
    I try it so:
    [Embed(source="bilder/PDFLogo.png", mimeType="application/octet-stream" )]
    protected var PDFLogos:Class;
    printPDF.addImageStream(new PDFLogos() as ByteArray,15,5,190,0);
    But they gives me an error when i compiling.
    When i try it so
    printPDF.addImageStream(new PDFLogos() as ByteArray,ColorSpace.DEVICE_RGB)
    then i can compile but when i click on the button then can´t download the pdf please help

    Hi Kamil,
    Hello, I attached a piece of code we use, including statements, etc.. In my case, I captured all the content is a canvas to create a report of a bar chart or pie chart.
         import org.alivepdf.display.*;
         import org.alivepdf.fonts.*;
         import org.alivepdf.layout.*;
         import org.alivepdf.pdf.*;
         import org.alivepdf.saving.*;
    protected var pdf:PDF;
    // declared of logo or imagen on top of the PDF's document.
    [Embed(source="assets/logo.jpg", mimeType="application/octet-stream" )]
    protected var jpgBytes:Class;
    protected function savePDF(event:MouseEvent): void {
            pdf = new PDF(Orientation.LANDSCAPE, Unit.MM, Size.LETTER);
            pdf.setDisplayMode(Display.FULL_WIDTH);
            pdf.addPage();
            pdf.addImageStream(new jpgBytes() as ByteArray, 10, 10, 0, 0, 1);
            pdf.setFont(FontFamily.ARIAL, Style.NORMAL, 12);
            pdf.addText("Grafico de Rata de Fallas", 100, 40); // title
            pdf.addImage(imprimirRata, 50, 50, 200, 150); // captured canvas with charts
    //      pdf.addImage(leyendaImprimir, 50, 120, 20,20); // captured leyend of charts
            pdf.addText("RTP Software. Modulo de Score Card.", 10, 200); // header of the document
            pdf.addText("Creado: " + new Date(), 180, 200); // Add the created date as a leyend or footer on document
            var fs:FileStream = new FileStream();
            var file: File = File.desktopDirectory.resolvePath("rtp-ratadefallas.pdf"); // Name of the file
            fs.open(file, FileMode.WRITE);
            fs.writeBytes(pdf.save(Method.LOCAL));
            fs.close();
            Alert.show("El reporte ha sido generado", "Informacion"); // Confirmation message as a pop-up
     

  • Need help - CONVERTING HTML to PDF

    A friend of mine has tasked me to research on a Java API that converts HTML files to PDF... Does anyone know about this?
    I've been browsing the net for an hour now and i still haven't got a plausible solution to his problem... Can you guys help me with this?!? Any help would be greatly appreciated... Thanks... :)

    Done, I'd be glad to send
    you the spanish MX properties
    version, where can I send it
    to you?great, please use email address [email protected], thanks
    Strangely, many options that
    work fine as standalone, appear
    to be disabled now, options
    like... in menu Edition: Undo,
    Redo; in menu Format: Table, Link;
    all the Table menu options.Undo and redo are active if there is something to undo or redo only. As well many table actions are only active when the caret is inside a table. See also the source code: class FrmMain contains almost all actions as inner classes (a design I changed in later applications). Each action class has a method 'update' which takes care of enabling or displaing an action depending on certain conditions.
    HTH
    Ulrich

  • PDF with hyperlinks to images and other PDFs.

    Hi, All.
    I would like to create a small booklet with approximately 12 to 16 pages as a PDF document but wish to have images and text in the document set as hyperlinks so that they can launch other images and/or documents. In other words, a viewer could click on an image or text and then see an enlarged image open on the center of his computer screen or see another document open over the original PDF. This would work in a similar fashion to what one can do with interactive books on the iPad created with iBook Author.
    The questions I have are:
    Where can I find more material to read on how to create PDF with these features?
    I have seen PDFs that open with an application on screen that makes them 'feel' more like a real magazine. They are not a typical Acrobat or similar PDF viewer but rather an application that 'flips' the pages in a similar manner to what one would do holding a real magazine. Is it possible to do this with the PDF documents launched by hyperlinks on my PDF document?
    Can these hyperlinks open enlarged images in the center of the screen while the remaining area around the image (background) become darker to place emphasis on the image?
    How can I learn more about these features and how to use them with Acrobat and PDF documents?
    In case the information is relevant I am currently running Acrobat 9 Pro version 9.5.3 on a Mac.
    This is sort of an urgent project so any help you can share will be very appreciated.
    TIA,
    Joe.

    hi
    flash.net is the package you need on flex, inside it you
    several methods that can help you, 2 of them are:
    URLVariables and navigateToURL
    look at them and if you can't do it, just hire me, i'll be
    glad to do it :D

  • How do I compress a pdf with Create PDF so that I can attach it to e-mail?

    How do I compress a pdf with Create PDR so that I can attach it to e-mail?

    Hi, Blue Mamba.
    Your file is automatically compressed when using the CreatePDF service to convert from some other file type (e.g. Word, Excel) to PDF. For example, most PowerPoint files get compressed 50% to 90% over their original size.
    If there is a particular file you're converting to PDF using the CreatePDF service, and you are not seeing the size savings that you would like, please provide more details.
    Thanks.
    Dave

  • Exporting PDF with standard PDF/X-1b

    Hello All,
    We received the request from one of our client to generate the PDF with the standard 'PDF/X-1b', but while exporting the PDF from InDesign, we don't have this option, could you please check and advise how to meet this requirement?
    Thanks in advance,
    Praveen

    You should ensure that 1b is meant. I suppose it is a typo.
    If your client requires a CMYK, then 1a would be the correct version.
    You could ask for a joboption file. You can install it, open Acrobat Distiller and drag and drop the joboption file into the open Distiller window. This will install this joboptions for all programs with PDF export like InDesign too.

  • Acrobat 9 Pro - Will it print to pdf with embedded pdf's from Word 2007?

    Hello All,
    We're considering upgrading to Acrobat 9 Pro or Extended.  One of our concerns is whether it will handle the following:
    1. We create very large documents and we like the ability to use OLE of existing PDF documents imbedded into Word 2007 which causes a new PDF window  to open up from the imbedded PDF.  It also displays nicely as an icon or the cover page within Word.
    2. The challenge is when printing (distilling) that master document with any imbedded PDFs, the icon or cover page is displayed, but the OLE feature goes away and does not recognize the imbedded PDF any longer; Acrobat simply treats the imbedded PDF in Word as any other page in the distilling process.
    3. We're not wild about bookmarking or linking to another PDF.
    Does Acrobat 9 Pro or Extended resolve this issue?

    The options availible for scripted print settings are all shown in the entry for "PrintParams" object in the Acrobat JavaScript Reference.  Have you looked to see if these options fit your needs?  If they do, and if the script can detect which PDF requires which options, then  you're in business.  But if the options you need are not there, then your only option is to set the batch process to display the print dialog for every PDF.
    Thom Parker
    The source for PDF Scripting Info
    pdfscripting.com
    The Acrobat JavaScript Reference, Use it Early and Often
    http://www.adobe.com/devnet/acrobat/javascript.html
    Then most important JavaScript Development tool in Acrobat
    The Console Window (Video tutorial)
    The Console Window(article)

  • Openeing a pdf with native pdf reader: openwithdefaultapplication

    Hello,
    Wondering if anyone can help on this one. From what I have read AIR for android does not support openwithdefaultapplication. The device I am developing for , the Motorola Xoom does not support pdf viewing in StageWebView or the browser. I have tried stagewebview and navigatetourl witn no success. So is it possible to open my pdf's with the native pdf viewer, calling it from my flex mobile app, developed in FB4.5 Any tips/ links sample code on how to do this, if it is possible would be great.
    Thanks

    Just to let everyone know. The answer
    Rangora gave was the correct solution for my purposes. I actually found this link (below) a while ago which takes you through it and gave me some inspiration. Its a java hack and not the prettiest solution. Lets hope Adobe and Android provide something a little more useful in the future
    http://www.jamesward.com/2011/05/11/extending-air-for-android/
    This (above) is if you want to open local files with the native/default application. I actually managed to extend this and get it to open a file with its default application (not just pdfs, any type as long as the tablet has a software that can open/support the type)
    For the unitiated who have found this post: WebView is only good for loading webpages and pdfs wont load on HoneyComb devices this way. You can get PDFs to display in a browser with PDF plugin on Honeycomb devices, but only from a hosted file location (webserver) which wasnt any good for my purposes
    The link above is currently the only way to open local files with their default application
    Thanks to all for your participation

  • Cannot export to PDF with grayscale PDF in layout

    IDCS5.5, MacPro, OSX 10.7.4
    I am working on a grayscale teacher’s guide that accompanies a CMYK schoolbook. The introduction pages contain miniature pages of the workbook (formatted as grayscale PDF), but InDesign refuses to output those pages as PDF ("Impossible d’exporter le fichier PDF"), or when it does produce a PDF (when exporting page by page), Acrobat warns of a possible problem and stuff is missing on the resulting page, not necessarily from the grayscale minipages.
    I have tried grayscale PDFs created from the original CMYK PDFs in Acrobat Pro X, grayscale PDFs exported from the original CMYK file in InDesign CS6, PDFs reduced to 20% in InDesign, PDFs reduced to 20% with a third-party application and imported in ID at 100%, and all sort of variations on the export values. The problem is also present in InDesign CS4 (after exporting the file as IDML) and in CS6.
    The thing is, there is no problem at all if I use the CMYK PDF version of the minipages (I then turned the resulting PDF into grayscale with Acrobat Pro X). But the printer expects to see only grayscale images in a grayscale job, not color... and a Photoshop version of those minipages is not acceptable.
    Has anybody encountered that problem? Can you reproduce it, i.e. can you export to PDF if you use any type of grayscale PDFs in your layout?

    FOUND IT! Inspired by Rob solution, I was able to export my InDesign CS5.5 document containing some grayscale PDFs to PDF/X-3:2002 (and PDF/X-1a:2001), with or without the standard, but without converting to destination. For some reason, it does not work with PDF/X-4:2008, nor with any of the other presets.
    -3

  • Can I "Print to PDF" with Adobe PDF Pack?

    ONe of the reasons I purchased PDF pack is because it says that I can "print to PDF" which is said to mean that when I go to print something that one of my choices of printer besides my HP should be Adobe. I don't see anything in my drop down of printers that wasn't there before I purchased the PDF PACK. I have rebooted and everything and still nothing is there. Can you help?

    Hi geolog12 and remedy111,
    If you're on Windows, you can use the CreatePDF Desktop Printer to "print" to PDF from almost any application. You'll find a link to the installer on the Create PDF page when you're logged in to the PDF Pack account.
    Here are the instructions for installing it: http://helpx.adobe.com/acrobat-com/kb/using-pdfpack.html#main_adobePDF_desktop_printer
    Best,
    Sara

  • Can i optimize a pdf with the pdf pack?

    hi! I've been using acrobat pro in order to benefit from the optimization feature which helps reduce the weight of the files in order to mail them. I was wondering if the pdf pack which has a much lower cost offers this feature. Thank you very much. Alfonso

    No, PDF optimization is only available on Acrobat Pro.

  • Resizing PDFs with Adobe PDF Pack

    Our office uses Adobe PDF Pack for combining PDFs and conversions. However, when we send reports via email our PDF attachments are too large for the email to be sent.  Is there a way to resize the file using Adobe PDF Pack, or do we need to buy Adobe Acrobat (I know using Adobe Acrobat to resize you do the PDF Optimizer)?
    Thank you in advance.

    Yes, you'll need Acrobat Pro. (which has the optimizer) to reduce the file size of a PDF.

  • Word 2010 Document with embedded pdf objects

    Is it possible to convert a word 2010 document with embedded pdf object into a PDF without loosing the functiuonality of double clicking on the Acrobat icon and opening the (embedded) document?
    Thank you for your help.

    Pretty sure that the PDF will contain exactly what you'd get if you printed the Word document. There is no promise or expectation that objects will be "live".

  • Possible to scan a document into Acrobat XPro,then replace part of that PDF with text or image file?

    Hi everyone,
    Is it possible first to  scan a paper document into Acrobat X Pro, and then to replace a "pane" or box within that PDF with a text or image file?
    Would it require  SDK and Javascript?
    Thanks,
    Rick Weinhaus

    CtDave and others:
    Here's the problem in more detail.
    I am a physician and I already have the ability to incorporate paper-based
    documents into an electronic health record (EHR) by scanning them and
    saving them as PDFs.  The documents are paper patient encounter forms with
    a different box or 'pane' for each category of data.   Each box has a fixed
    location on the paper form.
    There are three situations, however, where I want to have the option to
    overwrite certain boxes of the PDF with data generated by methods other
    than scanning.
    1) Insert text macros with variable fields using the electronic health
    record's software.
    2) Insert a drawing available as a pre-existing JPG or generated by using a
    tablet.
    3) Insert text generated using Dragon Naturally Speaking.
    For efficient office workflow, in all three cases the text or image to be
    inserted into the box or 'pane' in the PDF needs to be generated while I am
    still seeing the patient -- that is -- before the paper form has been
    scanned and converted to a PDF.
    The sticky note tool is one option, but I would want to be able to modify
    the default size of the sticky note so that it corresponded exactly to the
    size of the box it was 'overwriting.'  I can't figure out how to do this?
    Could it be done using scripting?
    Furthermore, I would want the sticky notes to automatically display when
    the PDF was opened, so that a hover would close rather than open them.  This
    sticky note method would have the advantage of allowing the user to toggle
    back and forth between inserted data and any original handwritten text.
    Any thoughts?
    Rick

  • How do I import a PDF with typewriter objects?

    I have a saved .pdf with text created by the typewriter tool. When I import the .pdf in InDesign (I'm using CS4), the typewriter text disappears in the InDesign document. I cannot find any preferences or settings in either Acrobat or InDesign that solves this problem. Any help is greatly appreciated!

    Text that is typed into a PDF file via the Typewriter Tool (anyone remember what a “typewriter” is?) is treated as an annotation just as cross-outs and highlights applied to existing text are.
    InDesign (and Illustrator) only import the base PDF document, not annotations.
    What you need to do is to flatten the annotations into the base document. This may be accomplished via executing a one line JavaScript will flatten all annotations / comments within a PDF file into the base document. This line of JavaScript is: 
           this.flattenPages(); 
    This is documented in the JavaScript API Reference that is part of the Acrobat X SDK, freely downloadable from Adobe's web site.
    This function is more fully documented in the PDF file I've attached to this posting.
    After this process, the resultant PDF file will fully place within your InDesign (or Illustrator) document!
    Adobe most strongly recommends that you not “refry” a PDF file by printing to the Adobe PDF printer to get a new PDF file. Printing from Acrobat is optimized for printing, not PDF creation.
              - Dov

Maybe you are looking for