PDF Component

Hi,
I have a component that is intended appear in one state and display various PDFs. I have it working when it is called the first time, however when it is called subsequently it does not load the PDF.
I have been using the Tour de Flex approach of using a mx:HTML to show the PDF, but changed to adding elements to a spark container:
private var pdfHTMLLoader:HTMLLoader = new HTMLLoader();
private var pdfUIC:UIComponent;
                              private function loadPDF():void {
  // Check to see if Adobe Reader 8.1 or higher is installed
  // Possible values:
  //         HTMLPDFCapability.STATUS_OK
  //         HHTMLPDFCapability.ERROR_INSTALLED_READER_NOT_FOUND
  //         HTMLPDFCapability.ERROR_INSTALLED_READER_TOO_OLD
  //         HTMLPDFCapability.ERROR_PREFERRED_READER_TOO_OLD
                                        if(HTMLLoader.pdfCapability == HTMLPDFCapability.STATUS_OK) 
  // Use FlexGlobals variable for PDF name
                                                  var pdfRequest:URLRequest = new URLRequest(FlexGlobals.topLevelApplication.currentPDF);
                                                  pdfHTMLLoader = new HTMLLoader();
                                                  pdfHTMLLoader.width = pdfWin.width;
                                                  pdfHTMLLoader.height = pdfWin.height;
                                                  pdfHTMLLoader.load(pdfRequest);
                                                  pdfUIC = new UIComponent();
                                                  pdfUIC.addChild(pdfHTMLLoader);
                                                  pdfUIC.name = "PDFView";
                                                  pdfWin.addElement(pdfUIC); // Add the element to the pdfWin spark container
                                        } else {
                                                  Alert.show("PDF cannot be displayed. Error code:" + HTMLLoader.pdfCapability);
  // Called if window is resized
                              private function reloadPDF():void {
                                        pdfHTMLLoader.width = pdfWin.width;
                                        pdfHTMLLoader.height = pdfWin.height;
                                        pdfHTMLLoader.reload();
                              protected function backButton_clickHandler(event:MouseEvent):void
                                        pdfWin.removeAllElements();
                                        flash.system.System.gc();
                                        var eventObject:Event = new Event("hidePDF");
                                        dispatchEvent(eventObject);
I think that the problem may be in either removing the elements or in how I am adding the HTMLLoader to the UI Component and then adding the element to the spark container.
Thanks,
Niall

Square Eye wrote:
> Hello
>
> I'd like to feed data from a MS SQL database to an ASP
web page, and then also
> have the ability to download it as a (dynamically
created) PDF. This seems to
> need a component on the server which my web host won't
install.
>
> I was wondering if I could get an account on another web
host, create the PDFs
> there and link to them from the pages on the first host.
BUT I can't seem to
> feed data from the database on Host 1 to a page on Host
2.
>
> Any brainwaves would be very gratefully received!
>
> Square
>
You could have a page on host1 that collects the data and
outputs it as
XML, then on host2 it uses the XML to create the PDF.
Steve

Similar Messages

  • Render PDF component - PDF and Acrobat version

    We are using the Render PDF component in Workbench to generate a PDF. We require the PDF to be compatible with Acrobat version 6 and higher. When we set the PDF version in the Render PDF input properties, or set a value less than 7.0.5 for Acrobat version, the PDF does not get generated. Is the Render PDF component not capable of generating PDF compatible with Acrobat versions lesser than 7.0.5?
    Thanks.

    The target version in Form Properties->Defaults is set to Acrobat or Adobe Reader 6.0.2 or later.

  • Dynamic PDF component on external server

    Hello
    I'd like to feed data from a MS SQL database to an ASP web
    page, and then also have the ability to download it as a
    (dynamically created) PDF. This seems to need a component on the
    server which my web host won't install.
    I was wondering if I could get an account on another web
    host, create the PDFs there and link to them from the pages on the
    first host. BUT I can't seem to feed data from the database on Host
    1 to a page on Host 2.
    Any brainwaves would be very gratefully received!
    Square

    Square Eye wrote:
    > Hello
    >
    > I'd like to feed data from a MS SQL database to an ASP
    web page, and then also
    > have the ability to download it as a (dynamically
    created) PDF. This seems to
    > need a component on the server which my web host won't
    install.
    >
    > I was wondering if I could get an account on another web
    host, create the PDFs
    > there and link to them from the pages on the first host.
    BUT I can't seem to
    > feed data from the database on Host 1 to a page on Host
    2.
    >
    > Any brainwaves would be very gratefully received!
    >
    > Square
    >
    You could have a page on host1 that collects the data and
    outputs it as
    XML, then on host2 it uses the XML to create the PDF.
    Steve

  • VBA Merge PDFs - Error when first and second PDF are the same

    Using http://khkonsulting.com/2009/03/adobe-acrobat-and-vba-an-introduction/ as a guide, I am able to successfully merge multiple pdf's together into one document using VBA (Access mdb), except when the PDF being merged to has the same name as the next PDF.
    Here's my scenario.  An Access table is updated with a list of reports that need to be printed.  All of these reports are PDF's.  I loop thru this table and merge the PDF's according to an identifier, then print the group.  There are times
    when there are multiple copies of the same report for an identifier.  If the PDF being merged to has the same name of the PDF being merged, an error occurs.  How can I handle this situation?
    Sample data:  This identifier (ESO and Pulling) needs to merge these PDF's (Aaa.PDF) together which happen to have the same name.  Aaa.PDF is trying to merge Aaa.PDF and this throws an error.
    Aaa.PDF ESO  Pulling
    Aaa.PDF ESO  Pulling
    This identifier merges fine despite having the same PDF twice.  But the first PDF is not named the same.  Xxx.PDF is the first PDF and merges the next two into it.  The last two
    are named the same.
    Xxx.PDF  916  Pulling
    Bbb.PDF  916  Pulling
    Bbb.PDF  916  Pulling
    Code:
    pdfDoc1.Open (filesToMerge(1))
    numPages = pdfDoc1.GetNumPages()
    Set pdfDoc2 = CreateObject("AcroExch.PDDoc")
    Dim i As Integer
    For i = 2 To intNbr - 1
    pdfDoc2.Open (filesToMerge(i))
    If pdfDoc1.InsertPages(numPages - 1, pdfDoc2, 0, pdfDoc2.GetNumPages(), True) = False Then
    MsgBox "Cannot insert pages"
    End If
    pdfDoc2.Close
    Next i
    If pdfDoc1.Save(PDSaveFull, "C:\....\ReportPacket__" & Trim(CStr(intReportCount)) & "__" & ... & ".pdf") = False Then
    MsgBox "Cannot save the modified document"
    End If
    pdfDoc1.Close
    The pdfDoc1.InsertPages command fails, displays "Cannot insert pages", then displays "Method 'Close' of object 'CAccroPDDoc' failed.
    Thanks for any help or advice.

    Hi
    As far as I know, Access didn't provide such method. But I think you are able to achieve this goal through some 3rd party PDF component
    Hope this will help you.
    Best Regards
    Lan
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Button on SWF to export it in PDF

    Hello All,
    We have created XCelsisus dashboard and have published the SWF of this dashboard to InfoView in BO.
    The Users want that they should be able to execute the SWF and at the same time, they should be able to download a PDF version of this SWF file dynamically. In simple words, they want a button on this dashboard which would enable the users to download the SWF in the form of PDF.
    Is this possible ? if yes, then how? If no, then can we have any workaround for the same.
    Rgds,
    Sree

    If this is not supported directly in the SWF file, perhaps you can use a third-party pdf asp.net componenet like this:  http://asppdf.net/
    The link or button calling the pdf component would sit outside of the swf html code, but within the same page..  If it can be viewed as a url, this component will mak a pdf out of it.
    This assumes you are distributing dashboard as a url, not within infoview.
    Hope it works for you..
    --Mark

  • Downloaded Reader 10.1.3, PDFs won't open in Firefox

    Hello,
    I just downloaded Adobe Reader 10.1.3 - installation was successful. Now, when I try to open PDFs in Firefox, instead of opening up in the browser like they've done before, I'm just getting a blank page.  Before I installed the new reader, PDFs opened just fine...
    Adobe Reader 10.1.3
    Firefox 14.0.1 (up-to-date)
    Mac OS 10.6.8
    Thanks!

    Reader doesn't install a pdf component for Firefox on the Mac. You will need to use a different Firefox extension.

  • Using Access/VBA to tell if a PDF has a valid e-signature in it?

    I'm using VBA in Access 2010.  Is there a way to find out if a PDF document has a valid e-signature in it?
    I'd also like to be able to do the same thing in Outlook 2010, but Access is the main thing...
    ajw

    Hi
    >> Is there a way to find out if a PDF document has a valid e-signature in it?
    I'd also like to be able to do the same thing in Outlook 2010, but Access is the main thing...
    As far as I know, Access and Outlook did not provide such method. But I think you are able to achieve this goal through some 3<sup>rd</sup> party PDF component.
    Hope this will help you
    Best Regards
    Lan
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Support for PDF

    which models of black berry phones natively support PDF or can be use to read pdf documents. Can Curve 8520 be used to read pdf documents? I has just been introduced to blackberry phones. I need some guidabce please.
    Thank you

    Hi and Welcome to the Community!
    If you have BIS email, and the PDF document remains an attachment to the email message, then ALL BBs can render that PDF (the BIS service actually renders it on the BB). If the PDF is not an email attachment, then an additional app is needed to render it. Prior to BB OS 7, only the Standard Edition of the Documents To Go apps were included, which excluded the PDF component. With OS7, the Premium Edition is now included, which then includes the PDF To Go app, which can render PDFs that are detached from email messages.
    For your 8520, I don't know exactly the highest OS level that has been released, but I am pretty sure it's not OS7...which means obtaining (often purchasing) a PDF 3rd party app is necessary in order to render PDFs that are not email attachments.
    Good luck!
    Occam's Razor nearly always applies when troubleshooting technology issues!
    If anyone has been helpful to you, please show your appreciation by clicking the button inside of their post. Please click here and read, along with the threads to which it links, for helpful information to guide you as you proceed. I always recommend that you treat your BlackBerry like any other computing device, including using a regular backup schedule...click here for an article with instructions.
    Join our BBM Channels
    BSCF General Channel
    PIN: C0001B7B4   Display/Scan Bar Code
    Knowledge Base Updates
    PIN: C0005A9AA   Display/Scan Bar Code

  • How can I remove PDF password?

    Hi guys, recently I've got a really annoying problem at work. Some of my PDFs can not be copyed, edited or printed. I know that's because they're secured but how can I remove the password? Any idea to work out the problem?

    Hello,
    As there is no any C# solution ,I would like to psot some sample codes to achieve this.
    using Spire.Pdf;
    using Spire.Pdf.Security;
    namespace modify_PDF_passwords
    class Program
    static void Main(string[] args)
    //load a encrypted file and decrypt it
    String encryptedPdf = @"..\Encrypt.pdf";
    PdfDocument doc = new PdfDocument(encryptedPdf, "e-iceblue");
    //reset PDF passwords and set user password permission
    doc.Security.OwnerPassword = "Spire.PDF";
    doc.Security.UserPassword = "pdfcomponent";
    doc.Security.Permissions = PdfPermissionsFlags.Print | PdfPermissionsFlags.FillFields;
    //Save pdf file.
    doc.SaveToFile("Encryption.pdf");
    doc.Close();
    //Launching the Pdf file.
    System.Diagnostics.Process.Start("Encryption.pdf");
    Anyway ,it is a PDF component based solution,which works pretty fine for me.
    You can also read more from
    this article
    REGARDS
    Today is a gift. That's why it's called the Present!

  • How to implement Search content of the PDF In Windows Store apps

    Hi,
    I Have Rendered PDF in Windows Store apps .I am not able to Search the Content of the PDF .Please Suggest me best Solution 
    Thanks
    m venkatasuresh

    You'll need to either interpret  the PDF file yourself or find a 3rd party PDF component.
    The in-box PDF renderer produces a non-searchable image rather than text (I suppose you could
    OCR the rendered image, but that's a pretty ugly solution)

  • Adding Extra Page to a PDF doc generated from XSL & FOP

    Hi, I am using XSLTC and FOP for tranforming XML to PDF.Using the JAXP 1.3 API to do this.
    I am getting the xml through a web-service and using stylesheets and FOP to convert it to PDF.However my problem is that i want to add a extra page at the end of every PDF that i am creating.
    This extra page at the end of every PDF is a kind of info-page whose content might change.
    Can i possible create a xml doc and a corresponding xsl stylsheet to create this page and somehow merge it with my original PDF Document.I am keen on keeping the generation of this page(i.e XML and corresponding stylesheet) to be seperate
    Can anyone please suggest a way of doing this?

    HI ...though i have resolved this issue i am facing another problem and any insight from all you people would be good help.
    Basically the scenario is standard ...Webservice --- which could possibly return multiple XML strings which are required to be rendered into PDFs.
    These Strings are received in a JSP along with other values like as follows.
    eg :
    Name : XYZ0 Age : 57 Profile : PDFLink0[/u
    Name : XYZ1 Age : 45 Profile : [u]PDFLink1[/u
    On Clicking the links a PDF is supposed to be rendered.
    Presently i have a Servlet which calls my PDF component and renderes a PDF based on primarily XML String and other params etc....
    The Issue is all these PDF links in my JSP page are Hrefs and am wondering how could i pass my XML String nd other params to my Servlet.
    One option could be as a Query String but i dont want to take that approach .I would rather prefer a Single Object(Created and populated in the JSP itself) and passed to the Servlet.
    Could anyone give any inputs....as to possible ways this could be done.
    Thanks

  • Can't open PDF attachments on 8830

    I recently have had a problem opening PDF's on my BES 8830.  PDF's used to work quite well, but not anymore.
    When I retrieve the document, all that is displayed is a giant question mark on a white background.
    Any thoughts?  I have realoded the software 4.2.2.196 several times, with no luck.
    Any ideas?

    skipberg wrote:
    Longtime BB user (Verizon) had my 8830 **bleep** out. Verizon store said Operation System was shot and loaded v4.5.0.138 and then no attachments would open. Back to store - where they loaded Documents to Go. Now I have to download the file, read it and then delete (royal pain!) But - still no PDF files. Even if I download them - the message says "This attachment type cannot be viewed on your device" More and more - I'm getting PDFs and I would really like to fix this. I'm due for a new phone and like the BB - but don't like the touchscreen models. Any suggestions? Thanks for any help -
    Hi and Welcome to the Forums!
    DTG standard has no PDF component. Their Premium edition does, I believe. Nevertheless, the BIS Attachment Service should be rendering PDFs for you as long as they remain an attachment...if that's not working, then try these steps:
    1) Register HRT
    Homescreen > Options > Advanced Options > Host Routing Table > BBKey (it does not matter which line is current) > Register Now
    2) Resend Service Books
    KB02830 Send the service books for the BlackBerry Internet Service
    3) Batt Pull Reboot
    Anytime random strange behavior or sluggishness creeps in, the first thing to do is a battery pop reboot. With power ON, remove the back cover and pull out the battery. Wait about a minute then replace the battery and cover. Power up and wait patiently through the long reboot -- ~5 minutes. See if things have returned to good operation. Like all computing devices, BB's suffer from memory leaks and such...with a hard reboot being the best cure.
    Hopefully that will get things going again for you!
    Occam's Razor nearly always applies when troubleshooting technology issues!
    If anyone has been helpful to you, please show your appreciation by clicking the button inside of their post. Please click here and read, along with the threads to which it links, for helpful information to guide you as you proceed. I always recommend that you treat your BlackBerry like any other computing device, including using a regular backup schedule...click here for an article with instructions.
    Join our BBM Channels
    BSCF General Channel
    PIN: C0001B7B4   Display/Scan Bar Code
    Knowledge Base Updates
    PIN: C0005A9AA   Display/Scan Bar Code

  • Access USB from web application

    USB flash drive should take to me a web site.
    Documents in the website should sync with USB flash drive (Read Write to USB from web site)
    USB Flash drive should be in VIEW mode (no write permission)
    Authentication to USB Flash drive

    Hello,
     The application on the client could then use a WCF service to communicate with a server.
      More information please refer to links below:
      SerialPort Class
      http://msdn.microsoft.com/en-us/library/System.IO.Ports.SerialPort.aspx
     if the reply help you mark it as your answer.
     Free Managed .NET Excel, Word, PDF Component(Create,
    Modify, Convert & Print)

  • Access XMP Metadata outside of Acrobat

    Is it possible to access the PDF metadata without using the full version of Acrobat?

    An XML packet created with XMP tool kit, which conforms to XMP, can be added to the document level by attaching to the Catalog dictionary. It is also possible to add object level metadata to PDF component represented as a dictionary or stream. In either case, a reserved key Metadata associated with the dictionaries indirectly references the XMP metadata streams.<br /><br />However, in reality, writing XML packet into PDF without using Acrobat APIs, is complicated and requires a good understanding of PDF. The client must handle it cautiously:<br /> <br />·     construct an XMP conformant XML packet as the document metadata, which is in a writable XML Packet with enough padding provided for the in-place edits and expansion;<br />·     synchronize the information in the metadata stream with that in the document information dictionary;<br />·     write the XML packet to the right place in PDF; <br />·     interpret the multiple versions of XML packet correctly.<br /><br />As recommended in the XMP framework specification, applications should allocate 50% of the XML data size as padding, with a minimum of 4 KB. The purpose is to enable in-place edits and expansion of the embedded XML if the value of the end attribute is set as w in the packet trailer, <?xpacket end='w'?>.<br /><br />In addition, applications that create PDF 1.4 documents (such as Acrobat 5.0) should include the metadata for a document in the document information dictionary as well as in the documents metadata stream. Applications that support PDF 1.4 should check for the existence of a metadata stream and synchronize the information in it with that in the document information dictionary (see Implementation Note 104 on p. 804 of  PDF Reference: Third Edition, version 1.4).<br /><br />Moreover, in Acrobat 5.0 (PDF1.4), the document level metadata is constructed automatically from the document information dictionary. However, due to the incremental update mechanism of PDF, it is possible to end up with more than one copy of XML packet in PDF. Whenever the PDF is saved, a new copy of XMP metadata stream will be appended to the cross-reference section, although there may be only one or two properties are changed (i.e., ModDate and MetadataDate). <br /><br />The following PDF sample illustrates the complications. When the PDF was first created, the metadata stream is defined in the object 19 associating with the /Metadata key in the /Catalog dictionary. The value of <xap:MetadataDate> property is 2002-02-11T13:43:24-08:00. When the PDF was saved later, a new XMP metadata packet was appended to the cross-reference section, which associated with the updated entry (/Metadata 21 0 R) in the catalog dictionary. The value of <xap:MetadataDate> property is 2002-02-11T13:46:52-08:00.<br />   <br />%PDF-1.4<br /><br />7 0 obj<br /><< <br />/Type /Catalog <br />/Pages 3 0 R <br />/Metadata 19 0 R <br />/PageLabels 2 0 R <br />>> <br />endobj<br /><br />19 0 obj<br /><< /Type /Metadata /Subtype /XML /Length 1338 >> <br />stream<br /><br /><xap:MetadataDate>2002-02-11T13:43:24-08:00</xap:MetadataDate><br /><br />endstream<br />endobj<br /><br />startxref<br /><br />7 0 obj<br /><< <br />/Type /Catalog <br />/Pages 3 0 R <br />/Metadata 21 0 R <br />/PageLabels 2 0 R <br />>> <br />endobj<br /><br />21 0 obj<br /><< /Type /Metadata /Subtype /XML /Length 1338 >> <br />stream<br /><br /><xap:MetadataDate>2002-02-11T13:46:52-08:00</xap:MetadataDate><br /><br />endstream<br />endobj<br /><br />xref<br /><br />%%EOF<br /><br />Because of the above complications, Adobe can only support use of the PDF Library and Acrobat SDK plug-in for adding new XMP packets into PDF.

  • How to use ANTLR 4 in visual studio 2010 .

    I need to generate parse tree for a C language program in c#.NET.I am using ANTLR4 for this.There are many java tutorials available for ANTLR4 but I want for C#  .

    Hello,
        Check this,
         http://programming-pages.com/2013/12/14/antlr-4-with-c-and-visual-studio-2012/
     if the reply help you mark it as your answer.
     Free Managed .NET Excel, Word, PDF Component(Create,
    Modify, Convert & Print)

Maybe you are looking for

  • Error while updating a page

    Hello champs, i have done Create page now i am doing an update page.. In the pageRequest() of the update page i am invoking a method update() in the same App. module...while doing so im facing an error " No method with signature - No method with sign

  • Adobe Media Encoder CC Crashing on Startup (W8)

    Can somebody help with this issue as it's causing me a heap of problems. On startup, adobe media encoder crashes, it has been working fine for me for the past few weeks. I've updated all software via the creative cloud but I still get the issue. If t

  • Start up disk is full!

    I've looked up videos how to solve the "startup disk" pop-up, but it doesn't really help. My mac doesn't have another hard drive attached to it, I'm guessing the "Untitled" is a second hard drive my mac has in addition to the Macintosh one. My comput

  • Changing HD on macbook

    Three questions: 1. I am thinking of upgrading my 60gig HD that my MacBook came with to 80 possibly even 120 Gig. I think it allows the user to change the HD without voiding the warranty, am I right? 2. How do I switch HD without loosing my data. In

  • Re-use of LTE Sim Card

    Hello, I first want to start off by apologizing if this has been asked before.  I've paged through several discussions and haven't found my answer yet. I know that in the past, the ability to do a hardware swap and "re-use" a SIM did not exist.  If y