Error when displaying a pdf file in an iFrame

Hi,
I would like to display a pdf file in my Java Web Dynpro application. I am using an iFrame element.
The code I used is:
// test if the file exists
if( path != null)
     path = "D:\\Echanges\\Facture\\" + path + ".pdf";
if (isFile(path)) // test if the file exist
     wdContext.currentContextElement().setPath(path); // we set the path of the file for the iFrame url
else
     wdContext.currentContextElement().setPath("D:\\Echanges\\errorDocAccess.htm"); // here we set the path of an error file to display in the iFrame
In the context, path is declared as a String variable and mapped to an iFrame. What happen when I lauch the program is the followig error:
com.sap.tc.webdynpro.services.exceptions.InvalidUrlRuntimeException: Invalid URL=D:/Echanges/errorDocAccess.htm
I have checked the path of the error file and it is valid. How do I get to display my file ? The path is on the same server as the portal.
Thanks a lot for your help.
Thibault Schalck

Not solved

Similar Messages

  • ALEWEB_DOWNLOAD occurs an error when displaying a pdf file

    Hi,
    We are using EP 6.0 SP2 Patch 5 and ITS 6.20 SP23. We are trying to
    create the pdf form of a delivery over ITS with function ALEWEB_DOWNLOAD.
    ITS configured on an R3 system version 4.6C. When we use Acrobat Reader
    version 6.0 it seems to be ok. But if we use Acrobat Reader version 7.0
    or higher the pdf file isn't displayed in the browser.
    Please help.

    Not solved

  • Error when opening a pdf file in chinese

    Hello,
    I have created a specific PO form by copying the standard one BBP_PO in SRM.
    After generating a pdf file with my specific form, I get the error "There was a problem reading this document (15)" when I try to open it.
    I can see some characters, and then everything disappears. I have both english and chinese characters.
    The chinese language is installed.
    If I use the standard form, I don't get the error !
    In the form, I use some standard text, which are created in english and chinese.
    Thanks for your help.
    Marc

    Just so you know, my default PDF can opener remains set to Preview, though I will use Acrobat Reader when and if it serves my need.
    The upside of the Show scroll bars set to always is intuitive with applications. The downside is that any web content that has the CSS overflow:scroll configured will permanently have scrollbars attached to that content. At least, that is the behavior with Safari on Mavericks. Since I do web work too, I have left my scrollbar setting to when scrolling.
    I believe the OP issues about resizing PDFs has to do with the default nature of Preview to open PDFs in continuous, rather than single page mode. In the former state, one must always fuss with resizing the Preview window, and in the latter, Preview does what it should do — a single, tightly cropped PDF page. Setting the Single Page preference setting in one document does not make this behavior permanent for subsequent documents.
    I made two changes to Preview that open any PDF in Single Page mode, and tightly cropped to that page:
    Preview PreferencesPDF: Define 100% scale as: Size on screen equals size on printout
    Defaults write
    Change to ~/Library/Containers/com.apple.Preview/Data/Library/Preferences
    defaults write com.apple.Preview kPVPDFDefaultPageViewModeOption 1
    Continuous view mode is (0) zero
    PDF documents will now default to Single Page mode

  • Why do I get a BER decoding error when certifying a pdf file?

    I am trying to sign a PDF file with adobe acrobat pro 10.0.0. For signing I want to choose my email certificate which I use for signing and encrypting my mails. But as soon as I choose this certificate to sign a PDF, I get the following error message. I did not try other certificates, as these are mostly administrator certificates, the BlueX certificate for the smart card and the lancrypt certificate. The certificate chain seems to be ok. All the certificates are stored in the Windows certificate store.
    The text of the error message is something like this (as I have the German version of the program and therefor don’t know the exact words):
    Creation of this signature could not be completed.
    Certificate parsing error:
    Encountered while BER decoding:
    This error message comes up several times and then in the end the window with the digital IDs pops up. Each time I have a look at the certificate details, I get the same error message.
    Help would be appreciated.
    lizz4321

    Hi lizz4321,
    A digital ID is made up of three components; a private key, a corresponding public key, and some identifying information. The keys themselves are pretty straight forward, they are just big blobs of numbers used to encrypt and decrypt data. It's the identifying information that gets a bit tricky. On first look, the identifying information looks like plain text. You'll see your name and the issuer's name, a serial number, some dates for when the validity starts and ends. All pretty straight forward.
    However, all of this information is actually formatted using something called ASN.1 (it stands for Abstract Syntax Notation) and then encoded using BER (Basic Encoding Rules). When someone creates a digital ID they can put just about anything in there. Per specifications (RFC 5280 if you wanted to look it up) some items are required, and others are optional. Each piece of information that goes into the public-key certificate (the PKC is basically the digital ID without the private key) is contained in an extension. These extensions are identified using an OID (Object ID) and conform to a specification which may either be public or confidential.
    There are two possibilities in the case you are seeing. Either, some of the information that Acrobat knows about was formatted or encoded incorrectly, or, there is an optional entry that Acrobat doesn't understand how to decode. My guess is it's the latter possibility. There is a rule that states if an extension is marked as critical, and the application using the public-key certificate (in this case the application would be Acrobat), doesn't understand the extension, then the application is supposed to reject the certificate. It could be the former case (badly formatted data), but without seeing the certificate all I can do is guess.
    Steve

  • Field error when generated to pdf file

    hi all,
    please help.
    I have an oracle report generated which will show numeric figures out. eg. 500.00
    when this report generated to pdf file, the numeric figures field becomes 4835.50.
    Does anyone comes across this issue? i checked with my software vendor and they said this is an oracle bug when generating oracle report 6i to pdf file.
    Is this true?
    Please advise. Appreciate anyone help here.
    Best Regards.

    Hi,
    check with this file.
    'uifont.ali ' file in "$ORACLE_HOME/guicommon6/tk60/admin " folder.
    try with this.
    --Basava.S                                                                                                                                                                                                                                                                       

  • When displaying a pdf file, the scrollbar in ffx4 never moves

    whenever i open a pdf file in ffx 4, the scrollbar on the side never moves when i scroll down the file. the scrollbar only moves when the cursor is positioned in the scrollbar area and it just jumps to where it must be in the file. however, the scrollbar never works when scrolling. the problem has been persisting since at least ffx4b9 and it really is a surprise that mozilla just can't fix it! tried reinstalling ffx, reinstalling plugin, reinstalling adobe reader, you name it, but it just never works!!!

    Not solved

  • Errors when opening any PDF file

    Can't find a bytecode file to load.
    InitializeFormsTrackerJS is not defined
    1:App:Init
    ReferenceError: InitializeFormsTrackerJS is not defined
    1:App:Init
    From the Javascript console I get the above whenever I open any PDF file from Acrobat XI Pro.
    I'm at version 11.0.7.
    Where is the source of this problem ?
    A search for InitializeFormsTrackerJS shows no hits in the Javascript folder.

    The folder is Acrobat\Javascripts
    Repair your Acrobat installation.

  • Ad2kregp.dll error when printing to PDF file

    Greetings,
    I use Acrobat 7.0 to print reports from a home grown SQL Server application to PDF on a Dell laptop with WinXP. When I'm logged on in the office everything works fine. When I try it from home via VPN I get the follwoing error message:
    Access violation at address 70001CC7 in module 'AD2KReGP.DLL'. Read of address 00000000.
    I searched both the knowledge base and forums and have found no matches to my situation. Any help is greatly appreciated.
    Thanks,
    Brian McCulloch

    One of my users was getting the same error message when trying to print to a pdf from freq12. This problem is an adobe problem though. What I did to fix the problem was I got a copy of the 'AD2KReGP.DLL' from a computer that adobe was working fine on and replaced the bad one with it. The location of the file to be replaced is: C:\WINDOWS\system32\spool\drivers\w32x86\3
    After replacing the bad file with the file from another computer it worked great. Hopefully this helps.
    Ben Hall

  • Error when opening a pdf file

    I have QTP 10.0 and Adobe reader 9.3 installed on my machine. The machine I am using is a VMware device.
    I have downloaded and installed the PDF Test Toolkit and the Adobe SDK.
    For QTP I have the ActiveX, Web and Adobe add ins loaded.
    I do not have Acrobat loaded. 
    For my first script all I wanted to do was open an existing PDF. I used the code displayed below.
    Option Explicit
    Dim gApp
    Dim gPDDoc
    '###  Create objects required for the test
    Set gApp = CreateObject("AcroExch.App")
    Set gPDDoc = CreateObject("AcroExch.PDDoc")
    '###  Open a PDF Document
    gPDDoc.Open ("C:\TestData\PerfOnVMware")
    '###  Kill all created objects
    Set gPDDoc = Nothing
    Set gApp = Nothing
    For both Set statements (in italics) I am getting the following message
    "ActiveX Component Can't Create Object "AcroExch.App"
    Also, as to the instructions. I read the instructions to mean that you need the Adobe Reader OR Adobe Acrobat. However in some of the research I have been doing on other boards many of the solutions indicate that Acrobat is required. Can some one take a moment and clarify what I will need installed on each machine in order to create and execute scripts.
    Any thoughts would be helpful
    Thanks
    Mike

    Please see the document 'Interapplication Communication API Reference' in the Acrobat SDK. Reader doesn't support the AcroExch methods. You can use the DDE methods. For more quesitions, please visit the SDK forum:
    http://forums.adobe.com/community/acrobat/acrobat_sdk
    You should still be able to record and playback UI events in Reader.
    Thanks - John Briere
    Engineering Manager, Acrobat Production Engineering

  • RE: [Adobe Reader] when i open pdf file it open all the pages but some pages give error massage (there was error processing a page,there was a problem reading this document 110) but if i open this page which give me error with google chrome it's work ? i

    HelloThank's for your helpsI hope this document is helpfulBest Regards,
    Date: Sun, 22 Jun 2014 17:10:17 -0700
    From: [email protected]
    To: [email protected]
    Subject:  when i open pdf file it open all the pages but some pages give error massage (there was error processing a page,there was a problem reading this document 110) but if i open this page which give me error with google chrome it's work ? if you can help me th
        when i open pdf file it open all the pages but some pages give error massage (there was error processing a page,there was a problem reading this document 110) but if i open this page which give me error with google chrome it's work ? if you can help m
        created by Anoop9178 in Adobe Reader - View the full discussion
    Hi,
    Would it be possible for you to share the document?
    Regards,
    Anoop
         Please note that the Adobe Forums do not accept email attachments. If you want to embed a screen image in your message please visit the thread in the forum to embed the image at https://forums.adobe.com/message/6485431#6485431
         Replies to this message go to everyone subscribed to this thread, not directly to the person who posted the message. To post a reply, either reply to this email or visit the message page:
         To unsubscribe from this thread, please visit the message page at . In the Actions box on the right, click the Stop Email Notifications link.
         Start a new discussion in Adobe Reader by email or at Adobe Community
      For more information about maintaining your forum email notifications please go to http://forums.adobe.com/thread/416458?tstart=0.

    thank's for reply and your help
    i did the step's that you told me but  i still have the same problem
                                     i have the latest v.11.0.7
    i
    i disable the protected mode

  • When i open pdf file it open all the pages but some pages give error massage (there was error processing a page,there was a problem reading this document 110) but if i open this page which give me error with google chrome it's work ? if you can help me th

    when i open pdf file it open all the pages but some pages give error massage (there was error processing a page,there was a problem reading this document 110) but if i open this page which give me error with google chrome it's work ?
    if you can help me thank's
    [email address removed by host]

    thank's for reply and your help
    i did the step's that you told me but  i still have the same problem
                                     i have the latest v.11.0.7
    i
    i disable the protected mode

  • What does the "conversion error" I get when converting a pdf file to Microsoft word?

    What is the "conversion error" I get when converfting a pdf file to aMicrosoft word?

    Adobe reader with export to PDF
    Sent from my iPhone 5
    Marty Kennedy

  • Adobe XI Pro trial verison, when compared two pdf files it gives error  "Expected a Name Object"..Can some one say how to fix this?

    Installed Adobe XI Pro trial verison, when compared two pdf files it gives error  "Expected a Name Object"..Can some one say how to fix this?

    Installed Adobe XI Pro trial verison, when compared two pdf files it gives error  "Expected a Name Object"..Can some one say how to fix this?

  • I receive an error message when submitting a pdf file for conversion to a Word document "... an unex

    I receive an error message when submitting a pdf file for conversion to a Word document "... an unexpected error has occurred..."   - is there a way to overcome this error?

    I received your Scan.pdf sent to [email protected] and had no problem to convert it via Export PDF service. Could you try again?
    Jyh-Jiun Liou

  • When adding a PDF file to a New Message in Mail it does not show up as an icon link, the entire document appears. How can you attach a PDF without the entire document displaying itself?

    After scanning a document, I save the file in a PDF format. When attaching the PDF file to a New message it appears on the entire page instead of a PDF icon link that the recipient can click on to open. Why can't I get the PDF file to appear in a icon format? Thank you.

    Control mouse click the document and select View as icon.

Maybe you are looking for