cancel
Showing results for 
Search instead for 
Did you mean: 

How can I save filled Adobe Form?

Former Member
0 Kudos

Hallo experts,

I use Adobe Forms in my Webdypro application.

In Form setPDFSourse set dynamically (read from SAP as byte[]) , I do not know the Context.

How can I save filled Adobe Form, because I must show the Form by next Step in anothe window?

Thank you very much!

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

Yes, differently PDF is not displayed

Former Member
0 Kudos

This sounds to me like a client-side problem whith adobe reader plugin in your browser. What is your reader version?

You can try the following to check if there is any content in the byte[]:


String s = wdContext.currentContextElement().getPdfData().length + "";
byte[] test = s.getBytes();
final IWDCachedWebResource resource =
			WDWebResource.getWebResource(
				test,
				WDWebResourceType.TXT);

try {
	final IWDWindow window =
	wdComponentAPI.getWindowManager().createExternalWindow(
		resource.getAbsoluteURL(),
		"Window title",
		false);
	window.open();
} catch (Exception e) {
	wdComponentAPI.getMessageManager().reportException(
	new WDNonFatalException(e),
	false);
}

Former Member
0 Kudos

Hallo Sebastian,

However, I have like this. Attribute fillPdf (type binary) is in my component controller´s context.

I save data with

wdContext.currentContextElement().setFillPdf(wdContext.currentContextElement().getPdfSource());

I write to show

final IWDCachedWebResource resource = WDWebRe-source.getWebResource(wdContext.currentContextElement().getFillPdf(), WDWebResourceType.PDF);

try {

final IWDWindow window = wdComponentAPI.getWindowManager().createExternalWindow(

resource.getAbsoluteURL(), "Window title", false);

window.open();

} catch(Exception e) {

wdComponentAPI.getMessageManager().reportException(new WDNonFatalException(e), false);

}

Unfortunatelly, PDFForm is empty.

Former Member
0 Kudos

have you set the interactive form UI property "mode" to "usePdf"?

Former Member
0 Kudos

Raissa,

create a context attribute of type "binary" in your component controller´s context. Then create a mapping of this attribute to your two views. Assign the property pdfSource of the interactive form UI element to this context attribute in both views.

Hope that helps.

Regards

Sebastian