Skip to Content
0
Former Member
Dec 04, 2008 at 10:30 PM

Change Default File Name Adobe Interactive Form

1063 Views

Hello Team,

I am working with a Interactive Form Development in CE 7.1, but ís necessary change the default pdf file name from unknown.pdf to other name. I have found some forums where mention some code, methods and classes, but I´m not sure how it work and how I could implement it in CE the following code that i mention in this forum is not working.

For example in the view java code/ wddoinit of my webdynpro DC I have implemented the following code, where the PDFSource is an atribute of binary type that I added to the context view and add in the pdfsource view properties.

IWDAttributeInfo attInfo = wdContext.currentContextElement().node().getNodeInfo).getAttribute("PdfSource");

ISimpleTypeModifiable type = attInfo.getModifiableSimpleType();

IWDModifiableBinaryType binaryType = (IWDModifiableBinaryType) type;

binaryType.setFileName("Test.pdf"); // Set file name

binaryType.setMimeType(WDWebResourceType.PDF);

I hope you could help me.

Thank you very much.