Conversion of PDF from flex

Hai
   I need to create pdf generation from flex.
   I tried with LCDS and there is no way to create XDP template.
   live cycle designer needs dotnet support.. but i need to do with j2ee..
   is any other approach to create pdf from flex with j2ee environment???
   thanks in advance...

Hi there, there's a library called AlivePDF that allows you to create pdf files from Flex. Maybe that's what you're looking for.

Similar Messages

  • How I Got WYSIWYG TLF Text To PDF from Flex

    Awesome results read more here:  http://hybridmindset.com/blog/How-I-Got-WYSIWYG-TLF-Text-To-PDF-from-Flex-Part-1

    Hi,
    Adobe Reader currently doesn't support Text to Speech, but we have added this to our database for consideration in a future release.
    Thanks for your feedback!
    -Gaurav

  • 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

  • Big text showing in PDF from flex input

    Hi,
    I have a problem printing data to PDF from SQL. I'm using Rich text editor as it allows the user to add bullets, bold etc... and I'm using font Family arial and font size 12 in my flex form. Now when the data goes into DB it saves all the html tags like following
    Data coming from SQL is like
    <TEXTFORMAT LEADING="2"><P ALIGN="LEFT"><FONT FACE="Verdana" SIZE="10" COLOR="#0B333C" LETTERSPACING="0" KERNING="0">Here is some text</FONT></P></TEXTFORMAT>
    I'm using in PrintPDF.cfm
    <tr>
        <td style="font-family:Arial, Helvetica, sans-serif;
         font-size:12px; font-weight:bold;">Text</td>
         <td>#qryText.Some_text# </td>
    </tr>
    Using this the PDF show big data returning from the SQL DB.
    It overwrites all the styles that I have and will show big text
    Please let me know if there is a way around this...
    Any suggestions....

    text as following:
    Test Case here (This is what it is suppose to look)
    Add Test Case Here, Add Test Case Here. This is a test case...(This is what is showing up)...

  • Generating pdfs from Flex

    I'd like to generate pdf files from Flex. How is this done? How much does it cost? How flexible is it?

    http://lucamezzalira.com/2009/02/28/create-pdf-in-runtime-with-actionscript-3-alivepdf-zin c-or-air-flex-or-flash/ checkout this link..can be done freely

  • Generating PDF from Flex BarChart

    Hello,
    I am new to Flex. Have been playing with creating Advanced
    Data Grid and Bar Charts for our application prototype and would
    like to explore how to create a PDF file of the BarChart or other
    charting components.
    The requirement is simple. We show the BarChart and a button
    to view it as a PDF. When the user presses the button, the PDF
    viewing dialog should come up and the user can opt to save the PDF
    or view it (the standard way a browser deals with the PDF).
    Have read blogs, this forum and LiveCycle docs but don't
    understand clearly how Flex communicates with
    LiveCycle ES (or PDF Generator) to display the PDF. Any ideas
    or tutorials that does this would be appreciated.
    Thanks,
    Kannan

    In order to generate a PDF document, you have to call a
    method on a Java remote object that uses the XFAHelper and pass it
    some arguments.
    I modified the PDFService example in the documentation so I
    can:
    1- specify any document as opposed to hardcoding the PDF
    template name
    2- write the PDF to a file as opposed to writing it in the
    user's session
    Here is the source:
    package com.mycompany.flex.remoteObjects;
    import java.io.File;
    import java.io.IOException;
    import org.w3c.dom.Document;
    import flex.acrobat.pdf.XFAHelper;
    import flex.messaging.FlexContext;
    import flex.messaging.util.UUIDUtils;
    public class PDFService
    public PDFService()
    public Object generatePDF(Document dataset, String
    PDFdocument) throws IOException
    // Open shell PDF
    String source =
    FlexContext.getServletContext().getRealPath("/pdfgen/" +
    PDFdocument);
    int index = source.indexOf("./");
    if(index != -1 )
    // Remove the ./ added by UNIX
    source = source.substring(0, index) + source.substring(index
    + 2, source.length());
    XFAHelper helper = new XFAHelper();
    helper.open(source);
    // Import XFA dataset
    helper.importDataset(dataset);
    // Create a unique ID
    String uuid = UUIDUtils.createUUID(false);
    source =
    FlexContext.getServletContext().getRealPath("/dynamic-pdf/" + uuid
    + "_" + PDFdocument);
    index = source.indexOf("./");
    if(index != -1 )
    // Remove the ./ added by UNIX
    source = source.substring(0, index) + source.substring(index
    + 2, source.length());
    // Create the file object
    File file = new File(source);
    // Save the file
    helper.save(file);
    // Close any resources
    helper.close();
    return (uuid + "_" + PDFdocument);
    pdfgen is the folder where my PDF template resides.
    dynamic-pdf is the folder where the generated PDF are saved.
    These two folders are located under flex.war at the first
    level.
    In Flex, I wrote a Cairngorm command that calls this remote
    object and displays the generated PDF:
    package com.mycompany.core.commands
    import com.adobe.cairngorm.commands.ICommand;
    import com.adobe.cairngorm.control.CairngormEvent;
    import com.adobe.cairngorm.business.Responder;
    import
    com.mycompany.core.business.GenerateAndOpenPDFDelegate;
    import
    com.mycompany.core.control.event.GenerateAndOpenPDFEvent;
    import com.mycompany.core.model.ModelLocator;
    import flash.net.navigateToURL;
    import flash.net.URLRequest;
    import mx.rpc.events.ResultEvent;
    import mx.rpc.events.FaultEvent;
    import mx.collections.*;
    import mx.core.Application;
    import mx.controls.Alert;
    public class GenerateAndOpenPDFCommand implements ICommand,
    Responder
    [Bindable]
    private var model:ModelLocator = ModelLocator.getInstance();
    public function GenerateAndOpenPDFCommand():void
    public function execute(event:CairngormEvent):void
    trace("Executing GenerateAndOpenPDFCommand...");
    var delegate : GenerateAndOpenPDFDelegate = new
    GenerateAndOpenPDFDelegate( this );
    var generateAndOpenPDFEvent : GenerateAndOpenPDFEvent =
    event as GenerateAndOpenPDFEvent;
    delegate.generateAndOpenPDF( generateAndOpenPDFEvent.pdfVO
    public function onResult( event : * = null ) : void
    var item:Object;
    var result:String = (event as ResultEvent).result as String;
    trace("GenerateAndOpenPDFCommand::onResult\n\n" + result);
    if (result)
    // Open the generated PDF in a new window
    navigateToURL(new URLRequest(ModelLocator.FLEX_URL +
    "dynamic-pdf/" + result), "_blank");
    // Hide the progress bar overlay
    Application.application.requestProgressBar.visible = false;
    Application.application.requestProgressBar.progressBar.source =
    null;
    Application.application.requestProgressBar.progressBar.label
    = this.model.languageDictionary["000012"];
    public function onFault( event : * = null ) : void
    // Hide the progress bar overlay
    Application.application.requestProgressBar.visible = false;
    Application.application.requestProgressBar.progressBar.source =
    null;
    // Debug
    Alert.show("GenerateAndOpenPDFCommand:\n\n" + (event as
    FaultEvent).message);
    FLEX_URL is created in this way some place else in the
    application:
    // Get the server URL from the Application's
    var server:String = Application.application.url;
    var index:uint = server.indexOf("Shell"); // Shell is the
    name of my app folder
    server = server.substring(0, index);
    // This is the flex.war/ URL
    ModelLocator.FLEX_URL = server;
    Of course, it would be better to save the PDF in the user's
    session as Adobe suggests, but I couldn't figure out how they use
    the PDFResourceServlet. First of all, I had to get its code.
    I had to decompile the java class files in the samples to get
    the source of the PDFResourceServlet as it is not in the
    documentation. Here it is:
    package com.mycompany.flex.remoteObjects;
    import java.io.IOException;
    import javax.servlet.ServletException;
    import javax.servlet.http.HttpServlet;
    import javax.servlet.http.HttpServletRequest;
    import javax.servlet.http.HttpServletResponse;
    import javax.servlet.http.HttpSession;
    public class PDFResourceServlet extends HttpServlet
    public PDFResourceServlet()
    protected void doGet(HttpServletRequest req,
    HttpServletResponse res)
    throws ServletException, IOException
    doPost(req, res);
    protected void doPost(HttpServletRequest req,
    HttpServletResponse res)
    throws ServletException, IOException
    String id = req.getParameter("id");
    if(id != null)
    HttpSession session = req.getSession(true);
    try
    byte bytes[] = (byte[])(byte[])session.getAttribute(id);
    if(bytes != null)
    res.setContentType("application/pdf");
    res.setContentLength(bytes.length);
    res.getOutputStream().write(bytes);
    } else
    res.setStatus(404);
    catch(Throwable t)
    System.err.println(t.getMessage());
    private static final long serialVersionUID =
    0x7180e4383e53d335L;

  • Display PDF from flex windows application

    Hi,
    I am creating a flex windows application using action script and mxml script.I need help in displaying a PDF document in that windows application from a netwrok drive or local pc.I tried google search it is giving me some open source projects with IFrames.But,they can be only used for browser applications(web).So,anyone please suggest me how could i accomplish this task with winows application.
    Thanks,
    adi2010

    Hi ,
    The solution for the thread is
    <mx:HTML id="pdfHtml" location="test.html" width="100%" height="100%" />
    var pdfFile:File = File.applicationDirectory.resolvePath(pdfHtml.location);
        pdfFile = new File(pdfFile.nativePath);
        var fileURL:String = pdfFile.url;
        pdfHtml.location = fileURL;
    Thanks,
    adi2010.

  • Error during Document Check IN and Conversion to PDF from IBR

    Hi All
    I am getting the following error when i trying to check in a document of 21 Mb
    Refinery Logs :
    The post converted queue for agent 'idc' states that Content ID 'SPECAPI5' converted but the converted primary webviewable file was not found. Exception type is 'java.lang.Throwable'. [ Details ]
    Details :
    An error has occurred. The stack trace below shows more information.
    !csJobCannotBeReturnedConvertedFileMissingDetails,idc,SPECAPI5!syExceptionType,java.lang.Throwable
    java.lang.Throwable
         at intradoc.common.IdcLogWriter.doMessageAppend(Unknown Source)
         at intradoc.common.Log.addMessage(Unknown Source)
         at intradoc.common.Log.errorEx2(Unknown Source)
         at intradoc.common.Log.errorEx(Unknown Source)
         at intradoc.common.Log.error(Unknown Source)
         at docrefinery.server.RefineryService.pullConvertedWork(RefineryService.java:546)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:585)
         at intradoc.common.IdcMethodHolder.invokeMethod(Unknown Source)
         at intradoc.common.ClassHelperUtils.executeMethodEx(Unknown Source)
         at intradoc.common.ClassHelperUtils.executeMethod(Unknown Source)
         at intradoc.server.Service.doCodeEx(Unknown Source)
         at intradoc.server.Service.doCode(Unknown Source)
         at intradoc.server.ServiceRequestImplementor.doAction(Unknown Source)
         at intradoc.server.Service.doAction(Unknown Source)
         at intradoc.server.ServiceRequestImplementor.doActions(Unknown Source)
         at intradoc.server.Service.doActions(Unknown Source)
         at intradoc.server.ServiceRequestImplementor.executeActions(Unknown Source)
         at intradoc.server.Service.executeActions(Unknown Source)
         at intradoc.server.ServiceRequestImplementor.doRequest(Unknown Source)
         at intradoc.server.Service.doRequest(Unknown Source)
         at intradoc.server.ServiceManager.processCommand(Unknown Source)
         at intradoc.server.IdcServerThread.run(Unknown Source)
    Status : GENWWW

    This is the Error that i get when i click on "Get Conversion (HTML)" Link of the Document
    Content Server Request Failed
    Unable to get dynamic conversion. The file is too large to convert.
    [ Details ]
    intradoc.common.ServiceException: !csDynConvFileTooLarge at dynamicconverter.DynConverterHandler.setInputConversionInfo(Unknown Source) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at intradoc.common.IdcMethodHolder.invokeMethod(ClassHelperUtils.java:461) at intradoc.common.ClassHelperUtils.executeMethodReportStatus(ClassHelperUtils.java:142) at intradoc.server.ServiceHandler.executeAction(ServiceHandler.java:75) at intradoc.server.Service.doCodeEx(Service.java:488) at intradoc.server.Service.doCode(Service.java:470) at intradoc.server.ServiceRequestImplementor.doAction(ServiceRequestImplementor.java:1350) at intradoc.server.Service.doAction(Service.java:450) at intradoc.server.ServiceRequestImplementor.doActions(ServiceRequestImplementor.java:1191) at intradoc.server.Service.doActions(Service.java:445) at intradoc.server.ServiceRequestImplementor.executeSubServiceCode(ServiceRequestImplementor.java:1061) at intradoc.server.Service.executeSubServiceCode(Service.java:3453) at intradoc.server.ServiceRequestImplementor.executeServiceEx(ServiceRequestImplementor.java:939) at intradoc.server.Service.executeServiceEx(Service.java:3448) at intradoc.server.Service.executeService(Service.java:3432) at intradoc.server.Service.doSubService(Service.java:3421) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at intradoc.common.IdcMethodHolder.invokeMethod(ClassHelperUtils.java:461) at intradoc.common.ClassHelperUtils.executeMethodEx(ClassHelperUtils.java:128) at intradoc.common.ClassHelperUtils.executeMethod(ClassHelperUtils.java:113) at intradoc.server.Service.doCodeEx(Service.java:505) at intradoc.server.Service.doCode(Service.java:470) at intradoc.server.ServiceRequestImplementor.doAction(ServiceRequestImplementor.java:1350) at intradoc.server.Service.doAction(Service.java:450) at intradoc.server.ServiceRequestImplementor.doActions(ServiceRequestImplementor.java:1191) at intradoc.server.Service.doActions(Service.java:445) at intradoc.server.ServiceRequestImplementor.executeActions(ServiceRequestImplementor.java:1111) at intradoc.server.Service.executeActions(Service.java:431) at intradoc.server.ServiceRequestImplementor.doRequest(ServiceRequestImplementor.java:632) at intradoc.server.Service.doRequest(Service.java:1709) at intradoc.server.ServiceManager.processCommand(ServiceManager.java:357) at intradoc.server.IdcServerThread.run(IdcServerThread.java:195)

  • JBG Format conversion to pdf from IBR

    Hi All
    Does IBR convert JBG format files if yes who do i configure it ?
    Thanks
    Raj

    Hi All
    Does IBR convert JBG format files if yes who do i configure it ?
    Thanks
    Raj

  • Question re Create PDF from Word doc

    Hi
    I am trying to create a pdf from a Word document (Word 2007, Acrobat 8 Professional), and am having lots of trouble with images,fonts and document overhead. With the fonts, i generate the PDF by saying Create Pdf from the plugin in Word. I specify in the Preferences that fonts are not to be embedded. I then open the PDF and access PDF Optimiser -> Audit Space Usage, and it says that fonts take up like 20% of the document, however there are only like 10 lines of text in Arial (9pt), and 6 titles also in Arial (Bold). I dont understand why Font is taking up so much space considering that i have elected not to embed fonts (if i go to the Fonts section in the Optimiser, it shows both embedded and unembedded panes blank).
    With the images, i have 2 jpegs in the footer, that are compressed (JPEG -> Low). The other thing i am struggling with is the headers and footers, if i generate the PDF from the Word doc with Headers/Footers, then images take up over 15% of the document. Not sure if there is a way to add headers and footers within minimum impact of filesize? I have tried checking everything in the 3 categories of Dicard Objects, Discard User data and Clean Up. but the Document Overhead remains at 35%.
    What else can i do to get these filesizes reduced?I have been researching this for days and have not come across anything that has helped.I have tried to PDF print, i have changed the font to like Courier, ensured no thumbnails or bookmarks, ensured JPEGs are not embedded in the doc, tried Save As, Save As under a different filename - basically anthing you can find on the net i have found and tried, but still cant fix this!!!! please, if anyone knows acrobate 8 better than me / or knows what the problem is, please advise????
    Thanks very much.

    The colors and size in a graphic needs to be done in a graphics editor. What type of editor would depend on the use of vector graphics versus bitmap. Sometimes vector graphics are larger than bitmaps if you are using a lot of lines that would display better as just a splotch of color. Such are the variations between vector and bitmap graphics, but important if you are looking for size reduction. For a bitmap, I would do the sizing and color depth with IrfanView, but you should be able to do that with PhotoShop if you have it. Vector graphics can be adjusted in Illustrator. The size of vector graphics is not an issue since they are scalable, but the size of a bitmap is important since your are looking at individual pixels and that depends on size. The point is that if you can adjust the color depth and size for the desired pixel resolution, the bitmap is optimized for the conversion to PDF from WORD.
    As I mentioned, the smallest file size job options should minimize font storage in the PDF. Checking with the PDF Optimizer does not always give you all of the fonts. I am not sure why. It is better to check the font tab in the document properties to see what has been embedded. There is a preflight macro to embed fonts, you might check to see if there is one to delete fonts (I have not checked on that). Sometimes you can play with the reprint of a PDF, but that is not an option that is generally recommended, particularly if you have any tagging or such. Of course, tagging can really bloat a PDF, but is needed for a variety of reasons such as format for saving back to WORD (not a great workflow), accessability, and related issues. In another topic, there is some discussion of the purposes of tagging and bookmarks. However, the tags and bookmarks take space if that is really an issue for you. The latter are avoided if you use the print to the Adobe PDF printer and do not use PDF Maker in the PDF creation process. Again, there is a trade-off here in terms of size and functionality, particularly accessibility compliance.
    Not sure I am helping as I run on, but sort what might be useful for you.

  • Silent print a PDF from a web page using Flex. We are targeting Windows and Mac with Arcobat reader installed

    We are planning to Silent print a PDF from a web page using Flex. We are targeting Windows and Mac with Arcobat reader installed. I have tried using the AIR appliaction and it worked, But our requirement is NO INSTALL to the user machine for the silent printing. It is just from web page and silent printing to the default printer to the desktop/Laptop. Can anyone share your thoughts and experience with us. It will be very helpful..
    For AIR : I tried the thread Re: AIR and PDF showing/silent printing

    Hey CodeMonkey & Ross,
    Did you either of you ever find a solution? I'm stuck too, it seems I can get remote printing on all these PDFs to work but it just prints a blank page since I've been using Javascript in the browser, not Adobe's (they are Engineering drawings that I do not have permission to edit so I can't just insert code into them but I need to make work instructions). I've been scouring the internet for hours now, it seems that this thread is the only relevant/useful one at this point. No one else was trying to achieve this for similar reasons to mine.
    Thanks guys,
    Lox

  • Why is adobe requiring me to make a purchase in order for me to create a pdf from word? I paid for the service in April which included unlimited conversions for a year

    why is adobe requiring me to make a purchase in order for me to create a pdf from word? I paid for the service in April which included unlimited conversions for a year

    Make sure you're actually logged-in to your account.

  • Pdf pack will not create a pdf from a tiff file    conversion failure    Why

    pdf pack will not create a pdf from a tiff file    conversion failure    Why

    Hi David Turner,
    What is the exact error message which you are facing while converting the file from .tiff  format to PDF format.
    As per my knowledge, PDF Pack supports conversion from .tiff format to PDF Format -Different File formats that Adobe PDF Pack supports.
    Regards,
    Rahul Tyagi

  • I purchased the Adobe pdf Pack to combine 50 PDF files to one and when I select them from my folder it claims "the files are not in a format not supported for conversion to PDF".  They already are pdfs, what am I doing wrong?".

    I purchased the Adobe pdf Pack to combine 50 PDF files to one and when I select them from my folder it claims "the files are not in a format supported for conversion to PDF".  They already are pdfs, what am I doing wrong?

    Moved to Adobe PDF Pack (read only)

  • Read byteArray(binary) from backend and display as pdf in flex titleWindow

    i have requirement where the pdf come as byteArray from backend, which i need to read from flex app and diaplay as pdf in the flex titleWindow or any flex popup.
    any ideas on this....,

    Hello Sandra,
    Thanks for your reply, but eventhen it fails to load the pdf. Is ADS required to be installed for this?
    Can I just pass the pdf_fsize imported from  CONVERT_OTF which is of type i.
      CALL FUNCTION 'CONVERT_OTF'
        EXPORTING
          FORMAT                = 'PDF'
        IMPORTING
          BIN_FILESIZE          = PDF_FSIZE    
    bin_file              = pdfxstring
        TABLES
          OTF                   = L_JOB_OUTPUT_INFO-OTFDATA
          LINES                 = LT_PDF
        EXCEPTIONS
          ERR_MAX_LINEWIDTH     = 1
          ERR_FORMAT            = 2
          ERR_CONV_NOT_POSSIBLE = 3
          OTHERS                = 4.
      CALL METHOD G_HTML_CONTROL->LOAD_DATA(
         EXPORTING
           TYPE         = 'application' "'text' " 'application'
           SUBTYPE      = 'pdf' "'html'  "'pdf'
           size           = PDF_FSIZE
         IMPORTING
           ASSIGNED_URL         = lv_URL
         CHANGING
           DATA_TABLE           =  LT_DATA "i_html "LT_DATA
         EXCEPTIONS
           DP_INVALID_PARAMETER = 1
           DP_ERROR_GENERAL     = 2
           CNTL_ERROR           = 3
           OTHERS               = 4 ).
    Thanks,
    Jaya.

Maybe you are looking for

  • Pl find out the reason for VC Cycle error for vendor 105191

    I had checked entire cycle of  Valuation Class(MM42),  Tax Code(ME12), validity period, MC Code in the contract as per the proforma invoice 12738 for vendor 105191  -  VC Parties, found ok. Pl find out the reason for VC Cycle error for vendor 105191

  • How to configure Counter in Report

    Newbie question - How can I configure Counter to be displayed in BAM Report. I have added three business indicators one being a counter. I see that my other two indicators are recorded in the BAM Data Object I created, I also see that my Project Coun

  • Balance Sheet and Profit Loss Account for Statutory Reporting

    Hi, For a company which is based in Vietnam, it is required that Balance Sheet and Profit Loss Account is reported in the Local Language Vietnamese. Is it possible to make such setting using the Country Specific Chart of Accounts ? Regards

  • HT3275 never ends to complete the first backup

    After the initial setup time capsule never finished making the first backup. 40 Mb be wanting to complete the copy and hence does not pass.

  • Error message re: domain & on either end of email addresses HELP !

    when I take names & email addresses from my Address Book & klik on enter to list as recipient ... some - most - all show up on the "send" listing like this = wayne flaaten < [email protected]> then when I get ready to send the email... and hit "SEND"