cancel
Showing results for 
Search instead for 
Did you mean: 

problem un PDF generation

Former Member
0 Kudos

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.

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

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

}

Former Member
0 Kudos

Hi Jorge

1) Can you able to open that file normally?

2) Try to open the same file using LinkToURLUIElement

3) There might be some buffer problem

Best Regards

Chaitanya.A

Former Member
0 Kudos

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

Former Member
0 Kudos

The problem was solved upgrading Support Package from 12 to 14.

Cheers...