Skip to Content
0
Former Member
Jul 30, 2007 at 01:32 AM

PDF -> WebDynpro 4.6C

23 Views

Hi,

I have an issue where I need to display a PDF generated in a 4.6C system in a WebDynpro Java application. The problem I'm having is the CONVERT_OTF function doesn't export the bin_file parameter in this version so all I have to work with is the lines table.

The code I'm using to output the pdf in the WebDynpro app is:

IWDWebResource webResource = WDWebResource.getWebResource(
		wdContext.currentOutputElement().getPdf_String(),
		WDWebResourceType.PDF);
try {
	url = webResource.getURL();
} catch (WDURLException ex) {
}

This needs me to convert my pdf from the lines table format into a byte array.

I've tried doing this in ABAP using the CONCATENATE command and this results in a corrupted pdf file. I think the issue there is that the CONCATENATE is working in CHARACTER MODE as the BYTE MODE addition is not available until 4.7

I've also tried merging the contents on the java side by converting the output of the lines table into byte[] and combining them together, with similar results.

I can't imagine it is not possible to do this in 4.6C.

Any help would be greatly appreciated.

Thanks

Ian