Creating PDF in OAF page using DocumentHelper class

I an trying to display a PDF from within an OAF page.
I am generating the XML using a database function and getting the XML in the controller class as a clob object which I then converted into an ascii stream. I tested the stream, and I am getting the XML output as expected. Sample below>
<ORG_NAME>
<EMPLOYEE_ID>
<FIRST_NAME>Ogre</FIRST_NAME>
<LAST_NAME>Swamp</LAST_NAME>
<EMAIL_ID>[email protected]</EMAIL_ID>
<SALARY>10</SALARY>
<MANAGER_ID>0</MANAGER_ID>
<MANAGER_NAME>I work for no one</MANAGER_NAME>
<EMP_ADDRESS>My Swamp</EMP_ADDRESS>
<EMP_CITY_STATE>Kingdom from far away</EMP_CITY_STATE>
</EMPLOYEE_ID>
</ORG_NAME>
I am using the following code in the controller class to generate the PDF as suggested in the XML Pub Guide Chapter 12.
String redirectURL = DocumentHelper.getOutputURL(pageContext,"PER", "NEW_EMP", bi, "PDF", null, "en", "00");
OAHTMLWebBean outRegion = (OAHTMLWebBean)createWebBean(pageContext, HTML_WEB_BEAN, null, "IFRAME");
outRegion.setHTMLAttributeValue("src",redirectURL);
outRegion.setHTMLAttributeValue("width", "100%");
outRegion.setHTMLAttributeValue("height", "500");
outRegion.setHTMLAttributeValue("title ","NEW_EMP");
outRegion.setHTMLAttributeValue("name ","NEW_EMP");
pageContext.getPageLayoutBean().addIndexedChild(outRegion);
But, I am getting the following error on the PAF page.
404 Not Found
OracleJSP: java.io.FileNotFoundException: C:\JDeveloper\jdevhome\jdev\myhtml\OA_HTML\xdo_doc_display.jsp (The system cannot find the file specified)
When I checked the redirectURL that is generated by the DocumentHelper class, this is what I found.
redirectURL: /OA_HTML/xdo_doc_display.jsp?dbcName=localhost_vis&fileName=NEW_EMP-1348275838_out.pdf&mFileLength=1873&p_output=C:\JDeveloper\jdevhome\jdev\myhtml\OA_HTML\fwk/t/NEW_EMP-1348275838_out.pdf&outputType=PDF
I noticed that the first part of the url string is in windows path format, while the second part in unix format. I had copied the DocumentHelper.class from a unix file system (where the oracle ebs is installed in my org) and placed it in my windows based machine. Caould this be the cause of the problem.
Note: I am pointing my JDeveloper to the Oracle EBS installed locally on my windows machine (but did not find the DocumentHelper.class in the local $JAVA_TOP, so I copied it from my org's Unix based Oracle EBS installation).
If you think this has to do with me copying the DocumentHelper.class from a unix env and using it in a windows env, can someone point me to where I can find the DocumentHelper.class file for use in Windows env. since I donot find it under my windows based oracle ens installation (Oracle EBS 11.5.10)
Thank you for your time. Appreciate your help.
Edited by: user8005428 on Feb 16, 2010 1:26 PM

I an trying to display a PDF from within an OAF page.
I am generating the XML using a database function and getting the XML in the controller class as a clob object which I then converted into an ascii stream. I tested the stream, and I am getting the XML output as expected. Sample below>
<ORG_NAME>
<EMPLOYEE_ID>
<FIRST_NAME>Ogre</FIRST_NAME>
<LAST_NAME>Swamp</LAST_NAME>
<EMAIL_ID>[email protected]</EMAIL_ID>
<SALARY>10</SALARY>
<MANAGER_ID>0</MANAGER_ID>
<MANAGER_NAME>I work for no one</MANAGER_NAME>
<EMP_ADDRESS>My Swamp</EMP_ADDRESS>
<EMP_CITY_STATE>Kingdom from far away</EMP_CITY_STATE>
</EMPLOYEE_ID>
</ORG_NAME>
I am using the following code in the controller class to generate the PDF as suggested in the XML Pub Guide Chapter 12.
String redirectURL = DocumentHelper.getOutputURL(pageContext,"PER", "NEW_EMP", bi, "PDF", null, "en", "00");
OAHTMLWebBean outRegion = (OAHTMLWebBean)createWebBean(pageContext, HTML_WEB_BEAN, null, "IFRAME");
outRegion.setHTMLAttributeValue("src",redirectURL);
outRegion.setHTMLAttributeValue("width", "100%");
outRegion.setHTMLAttributeValue("height", "500");
outRegion.setHTMLAttributeValue("title ","NEW_EMP");
outRegion.setHTMLAttributeValue("name ","NEW_EMP");
pageContext.getPageLayoutBean().addIndexedChild(outRegion);
But, I am getting the following error on the PAF page.
404 Not Found
OracleJSP: java.io.FileNotFoundException: C:\JDeveloper\jdevhome\jdev\myhtml\OA_HTML\xdo_doc_display.jsp (The system cannot find the file specified)
When I checked the redirectURL that is generated by the DocumentHelper class, this is what I found.
redirectURL: /OA_HTML/xdo_doc_display.jsp?dbcName=localhost_vis&fileName=NEW_EMP-1348275838_out.pdf&mFileLength=1873&p_output=C:\JDeveloper\jdevhome\jdev\myhtml\OA_HTML\fwk/t/NEW_EMP-1348275838_out.pdf&outputType=PDF
I noticed that the first part of the url string is in windows path format, while the second part in unix format. I had copied the DocumentHelper.class from a unix file system (where the oracle ebs is installed in my org) and placed it in my windows based machine. Caould this be the cause of the problem.
Note: I am pointing my JDeveloper to the Oracle EBS installed locally on my windows machine (but did not find the DocumentHelper.class in the local $JAVA_TOP, so I copied it from my org's Unix based Oracle EBS installation).
If you think this has to do with me copying the DocumentHelper.class from a unix env and using it in a windows env, can someone point me to where I can find the DocumentHelper.class file for use in Windows env. since I donot find it under my windows based oracle ens installation (Oracle EBS 11.5.10)
Thank you for your time. Appreciate your help.
Edited by: user8005428 on Feb 16, 2010 1:26 PM

Similar Messages

  • Create PDF from Web page using Acrobat X - Page Order

    I have a structured web site that is in fact Program Help The web pages are structured as follows:
    index.html - Main Topic Index page with links to all topic subject index pages
    topic/index.html - Topic Subject Index Page with links to all subject pages
    topic/subject.html - Subject page
    .....etc
    Using Acrobat 5 "Create PDF from Web Page" created a perfect logical PDF  page structure in the page order of of the web site. In Acrobat 5 page 1  was the Main Topic Index Page, page 2 was the 1st Topic Subject Index  Page, page 3 was the 1st Subject Page, then the 2nd subject of the 1st  Topic, etc. until the Topic Subjects were exhausted after which the 2nd  Topic Subject Index Page and so it went on. As a result the bookmark  structure was sensible. The page order was as follows:
    Main Topic Contents
    Topic 1 Contents
    Subject 1 of Topic 1
    Subject 2 of Topic 1
    Topic N Contents
    Subject 1 of Topic N
    Subject 2 of Topic N
    Acrobat X (just purchased) produces a differently structured PDF from the same HTML pages. The order is:
    Main Topic Contents
    Topic 1 Contents
    Topic 2 Contents
    Topic N Contents
    Main Topic Contents (a second time)
    Subject 1 of Topic 1
    Subject 2 of Topic 1
    Subject N of Topic 1
    Subject 1 of Topic 2
    Subject 2 of Topic 2
    Subject N of Topic N
    Question: Is there any way I can get back with Acrobat X the same page order I got with Acrobat 5?
    Any help appreciated. The website is www.caliach.com/caliach/vision/help/index.html
    Chris

    Acrobat is using the underlying mark up of the rendered HTML page.
    This may or may not provide an adequate input to Acrobat when it is noodling out how and what to tag.
    I suspect you may find that, to obtain an adequately tagged PDF, you may have to capture the web page content with the create bookmarks and create tags options off.
    Once you have the PDF make working copies.
    Try letting Acrobat tag this already created PDF to see what happens.
    You may have to manually tag the PDF.
    n.b., The default read order for western language can be altered by user selections in the accesibility setup or by selection in the PDF page(s) Page Properties.
    Be well...

  • Create PDF from Web page using Acrobat 9 Pro

    I am trying to create a PDF file from a web page.  The alt tags for images is not being recognized, and the reading order bounces all over the page (not the order of the web page).  For example, the 1st text item on the page is #7 in the reading order, and the #1 item is an image half way down the page.  All the documentation I can find says Acrobat will read top to bottom, left to right, but it's not.  Any idea how to fix it?

    Acrobat is using the underlying mark up of the rendered HTML page.
    This may or may not provide an adequate input to Acrobat when it is noodling out how and what to tag.
    I suspect you may find that, to obtain an adequately tagged PDF, you may have to capture the web page content with the create bookmarks and create tags options off.
    Once you have the PDF make working copies.
    Try letting Acrobat tag this already created PDF to see what happens.
    You may have to manually tag the PDF.
    n.b., The default read order for western language can be altered by user selections in the accesibility setup or by selection in the PDF page(s) Page Properties.
    Be well...

  • Create PDF from Web Page Using URL List

    Hello
    I have a list of 100+ URLs which I would like to convert into PDF's
    I currently need to open each web page and hit the convert button
    Is there a way to automate the process. (For example can I import the list of URL's into Acrobat) and have Acrobat convert all the urls into PDF
    Thank you

    JohnnyNobody wrote:
    S.D.A.
    Your response did not show up, could you please repeat
    Thanks
    Sure, (e-mail responses aren't working good I'm afraid).
    What I said; was that I don't know of a 'pont 'n click' way of doing this, It can be done programmtically.
    Might not be what you want to hear though.

  • I have created PDF from hardcopy by using my scanner. After I run OCR option for my PDF by using Acrobat Pro 9. But "Text-to-speech" functionality of the PDF says that an error message comes up that says the page is empty when I turns on the read out loud

    I have created PDF from hardcopy by using my scanner. After I run OCR option for my PDF by using Acrobat Pro 9. But "Text-to-speech" functionality of the PDF says that an error message comes up that says the page is empty when I turns on the read out loud option in Acrobat. Kindly help me to sortout this problems?

    So I tried generating the same PDFs on two other computers that have Acrobat 9 Pro.  Results were reproduced.  The verdict is:
    - complex PDF files (that is, containing cross-references, tables of contents, and bookmarks) generated by Acrobat 9.x Pro are roughly 2-5x larger than the identical file generated with Acrobat 8.x Pro.
    - different PDF conversion settings make a negligable difference (less than 10% rather than 70-80%).
    - using the "Reduce File Size" or "Optimize PDF" option cuts the file size roughly in half, almost always resulting in a "image downsampling mask" warning message, which requires acknowledgement (that is a problem for batch processing or automation).
    - adding an Acrobat watermark to the file cuts the file size roughly in half.
    - just using Save As to another filename has no effect on file size.
    - generating the PDF in Acrobat 9 with links but no PDF bookmarks still results in the inflated file size.
    - generating the PDF in Acrobat 9 without any links or bookmarks results in approximately the same file size as the Acrobat 8 PDF with full links and bookmarks.
    It appears that Acrobat 9's manner of adding links is what's bloating  the files, and in my case it's probably not related to images or image resolution/print quality.  It's a shame, because Acrobat 9 seems to have made some  improvements to the Review Tracker interface, and a few other bells and  whistles which I haven't really gotten around to exporing yet.  But  unless I find a way to keep my links and the PDF file sizes comparable to what I was  getting with Acrobat 8 Pro, it looks like I'm going to stay with Acrobat 8.

  • Is it possible to launch a form from an OAF page using OAF Personalization

    In R11, the Customer Standard form ARXCUDCI was customized to call a custom block from the Address screen. In R12 the customer standard form has become an OAF page. We have decided to create a custom form for the custom block using Oracle Developer. However we need a mechanism to call this custom form from the Customer Standard OAF page.
    My query is if it is possible to call a custom form from an OAF page using OAF personalization only (i.e. without directly customizing the code of the OAF page)
    Thanks
    Sanjay

    Dear Apurba,
    I have made some progress.
    I have open the Customers OAF Page, queried a customer, selected a site and opened it.
    Then chose Personalize "Account Site Address"
    There I added a Button on the Header Address level
    ID=XXTVL_LASSY_BUTTON
    Populated the Additional Text and Prompt properties.
    Also set Destination URI=form:SYSADMIN:SYSTEM_ADMINISTRATOR:STANDARD:FND_FNDMNMNU.
    The button is now showing in the address page, and when I click on it it opens the seeded Menu form.
    I now have to create the custom form and set Destination URI to the Custom Form.
    I am also aware how to add parameters to Destination URI.
    But could you let me know how to read the value from a OAF page form field and reference it in Destination URI.
    I need the value of PARTY_SITE_ID of the Address OAF page.
    Alternatively, the Site Number is displayed on the OAF page. If I can read it that will also do. I can use the Site Number in the custom form rather than PARTY_SITE_ID
    Thanks
    Sanjay

  • How to include non web pages to the "Create PDF from Web Page" feature?

    In Acrobat Pro (v. 10), when I use the "Create PDF from Web Page" feature, it works great for html pages, but it skips non-html links (doc, pdf, ppt, xls, etc). I need Acrobat Pro to convert those files and put them in the order as well. I don't see an option for this in settings. Is there ANY way I can do this? This is for an archiving purpose and I have 10,000 plus files to convert. Please help.

    This is a question i'm trying to answer too. My issue is that I have a PDF file which itself contains links to both DOC and PDF files. The end result is that I need one consolidated PDF containing all the linked files (in order).
    I can run the "create from web page" on this PDF file, and it'll download them, but not convert them. It just adds them as "jumbled" text to the end of the document. I need it to download, convert, and then append them.
    So, as isunshine3 asked above, any way to have Adobe convert the files that it finds linked when running the "create from web page"?
    THanks
    Matt

  • File, create PDF, from web page, entire site...questions

    I am new to adobe, is this the proper forum for Adobe Acrobat 9 Pro for macintosh?  I think yes...
    Created a PDF from:  File, create PDF, from web page, entire site.
    Is there a way to print this without the background color?  If you printed from a browser, you could choose not to print the back ground color.  I know exactly the color.
    Is there a way to make this PDF look like the web, with no page breakes?  I have tried various things, but the page breaks are always displayed.
    Is there a way to create bookmarks on somthing other than the title tag in the web site?  The title tag is an SEO 1 sentence summary of the page, which makes for very long book mark names.
    Thanks for your help.
    bob
    www.answerstat.net

    I don't use v9, but what I would do is click the FILE--PRINT option, print to PDF, and enter to print one page (default is first page)

  • "Create PDF from Web Page" Yields Authorization Failure

    Acrobat 9 Pro Extended running on Windows XP Service Pack 3:
    When using "Create PDF from Web Page," certain linked pages result in an "Authorization Failure" error message. Is there any way to instruct Acrobat to disregard pages that are not downloadable and continue creating the PDF?

    I am having the same issue AND none of my pages or files require a UserID or Password. My issue appears to be something with the domain because a and b work just fine and produce a PDF file while item c does not work and produces the error msg.
    http://www.dot.wi.gov/projects/neregion/151/index.htm works just fine and produces a PDF file.
    http://www.dot.state.wi.us/projects/neregion/151/index.htm works just fine and produces a PDF file.
    http://www.wisconsindot.gov/projects/neregion/151/index.htm produces an error msg. ‘Nothing done’.Error info. - Authorization Failure    http://www.wisconsindot.gov/projects/neregion/151/index.htm
    [email protected]

  • Create PDF From Web Page - Authenticated SharePoint Sites generate "Authorization Failure" error

    We have several authenticated sharepoint sites on our intranet, and we are trying to create a PDF of a site (x levels down) using the Acrobat create PDF from web page feature.  When you try to create a PDF from a non-sharepoint, authenticated website, a login prompt appears asking for login credentials.  However, when you try to use the same feature on an authenticated sharepoint site, you do not get prompted for credentials and instead get an Authorization Failure error.  the popup says "Error: Nothing Done".  We have successfully PDF'd anonymous sharepoint sites on the WWW.  Has anyone successfully PDF'd an authenticated SharePoint site? 
    Thanks in advance,
    -Richard.

    I am having the same issue AND none of my pages or files require a UserID or Password. My issue appears to be something with the domain because a and b work just fine and produce a PDF file while item c does not work and produces the error msg.
    http://www.dot.wi.gov/projects/neregion/151/index.htm works just fine and produces a PDF file.
    http://www.dot.state.wi.us/projects/neregion/151/index.htm works just fine and produces a PDF file.
    http://www.wisconsindot.gov/projects/neregion/151/index.htm produces an error msg. ‘Nothing done’.Error info. - Authorization Failure    http://www.wisconsindot.gov/projects/neregion/151/index.htm
    [email protected]

  • Create PDF from web page w/password

    Would like to created a PDF using the 'Create PDF from WEB Page' function. The initial page of the site requires a login which we have but we seem to be unable to use Acrobat to archive the site because it requires a login. Is there a way to login and create a pdf of the site?

    I tested this in Acrobat X and the exact same issue occurs
    http://www.quantumdynamix.net/clients/image-map-test/ImageMapTest-AcrobatX.pdf
    This has to be considered a legatimate bug, especially since IMAGE MAPS is listes as one of the supported HTML features via the help files

  • Create PDF From Web Page Does Not Create Image Maps Properly

    I have a website that contains image maps. When I "Create PDF From Web Page", these image maps are not rendered properly. From what I can tell, this is a BUG within Acrobat, and I'm hoping that people can confirm this for me.
    I created a test page at http://www.quantumdynamix.net/clients/image-map-test/. I placed the images maps my manually coding the coordinate information, so the maps are PRECISELY placed exactly over the squares. Each image map navigates to an anchor corrisponding to the number on the red square.
    When I created the PDF using the "Create PDF From Web Page" feature, the image maps are rendered improperly. This file can be viewed at http://www.quantumdynamix.net/clients/image-map-test/ImageMapTest.pdf. To view the outlines of the image maps, please select "Tools" -> "Advanced Editing" -> "Link Tool". You can see the outlines are substantially incorrect.
    Please confirm that other can replicate this problem. Any solution to this issue would be very helpful!

    I tested this in Acrobat X and the exact same issue occurs
    http://www.quantumdynamix.net/clients/image-map-test/ImageMapTest-AcrobatX.pdf
    This has to be considered a legatimate bug, especially since IMAGE MAPS is listes as one of the supported HTML features via the help files

  • Create PDF from Web Page

    I have Acrobat 9 Pro under Wins XP. I am using the "Create PDF from Web Page" feature. I would like to capture only one page out of 36. The capture setting is at its minimum (one level) and the "entire site" box is unchecked. Does Acrobat have the ability to do this? If so, what is the setting.
    Any help is appreciated.
    Jean

    I don't use v9, but what I would do is click the FILE--PRINT option, print to PDF, and enter to print one page (default is first page)

  • Create an entire web page using cffile

    I would like to create an entire web page using cffile..
    it seems that the output attribute is where you put the
    content like:
    output="this is a test."
    Q: so how do you add the full .htm content inside ....
    output=""
    ... where there will be lots of other double quotes?
    (if it involves 'escaping' characters - then I'll need some
    help with that.)
    Also : is it possible that the content could be some data
    combined with an cfinclude - i get errors when i try this...

    Well, I dont think I fully understand your intentions or
    goals are. However, from what I gather so far, you could output the
    data into pdf files. But like I said I dont understand what your
    trying to achieve. As far as the errors with <..etc, if they are
    included and you are trying to produce results those characters
    very well could cause problems when you are trying to do something
    that they were not intended to do.

  • Adobe v9 on W7 and office 2007. cannot create PDF from MS word using Adobe. But can from Excel, PPT

    Adobe v9 on W7 and office 2007. cannot create PDF from MS word using Adobe. But can from Excel, PPT and other MS office apps. Reinslalled Adobe, updated Office, and Adobe no help! Also I can create a pdf from the MS Word and it is using the Adobe 9. So one would think that's good. No it isn't when you need to combine different files to one big PDF document. Any suggetions? Thank you

    Yes, I’m saying that I can in WORD use “Save As ADOBE pdf” but cannot in ADOBE create a pdf file from a WORD (.doc or .docx) document. While I can from other MS Office apps like Excel and PowerPoint.
    I understand I can use “work around” and save doc in WORD as pdf then compile all files needed (xml, ppt, pdf) in the ADOBE v9. to one big pdf document. But that is not the point of this post.  
    Jarda @ PC+NET Solutions
    Mobile 613-532-7023
    Office  613-385-1268
    <http://www.pcplusnet.net/> www.pcplusnet.net

Maybe you are looking for

  • Where are my photos in Lightroom after I have edited and saved them in Photoshop?

    I'm using LR and Photoshop CC. When I export a photo from LR to edit in Photoshop and then save it in PS and close the file why doesn't the saved file appear next to the original file? I know it's in Lightroom somewhere, but I always have to close LR

  • Vendors: One-time Vendor

    Master Data u2013 Vendors: One-time Vendor Plz. suggest how To control creation of One-time Vendor by creating authorisation groups and assigning to limited users ids. How to cofigure it..... Rgds, Navin

  • VBSEC Table not updating while parking a doc

    Hi all, I am working on a program wherein I am using a FM which is a copy of the std FM PRELIMINARY_POSTING_FB01. When I am calling the FM ZPRELIMINARY_POSTING_FB01 I am passing the following tables to it t_bkpf, t_bseg,t_bsec,t_bset and t_bsez. Tabl

  • Can't Verify a SOAP message

    I have a problem in verifying a SOAP message that I have created my self, after signing the message and then convert it to string, I try to verify it, but it returns false each time, but when I use the Document after siging it without converting it t

  • Limit SSID Broadcasts with WCS or WLC

    Is it possible to limit which SSID's particular AP's broadcast? I've tried using AP Groups, but that only segments the VLAN broadcast domain. The AP still broadcasts all SSID's. I have 2 APs in a jury waiting room - I only want to broadcast their SSI