on 11-08-2007 1:28 PM
Hi all,
I have a litle problem in the generation of a PDF file that become in a base64 file, from R3, later, i'm proces it and get the URL to finally show incide in a IFRAME in the propertie "SOURCE".
That work successfully but only for PDF's that contain only 1 page. Now for other files with more than 1 page, the IFRAME not solve the archive, que keep a loop to never end, obviously because not found the second page.
Some idea's ???, some that was the same problem???
Thaks in advance.
Jorge.
Hi, me again, i'm using this routine, where URL_PDF is the base 64, that works good, but for many pages not display the data:
String pdfString = wdContext.currentContextElement().getURL_PDF();
byte[] pdfBytes=null;
try {
pdfBytes = new sun.misc.BASE64Decoder().decodeBuffer(pdfString);
IWDCachedWebResource pdfResource = WDWebResource.getWebResource (pdfBytes,WDWebResourceType.PDF);
wdContext.currentContextElement().setURLResource(pdfResource.getURL());
} catch (Exception e) {
// TODO: handle exception
}
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Chaitanya,
The URL that is generated, besides i'm displaying in a textEdit to look the URL. This text i'm make a copy / paste in other page, and neither show the same loop. Now using a Link to URL show the same problem.
By the way, i'm send the same routine to a friend and he's make a deploy to other WAS and was generated correctly the PDF, but in my was not work.
Thanks in advance.
Jorge
User | Count |
---|---|
86 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.