cancel
Showing results for 
Search instead for 
Did you mean: 

PDF FileName

Former Member
0 Kudos

Hello,

I want to change the default filename of a generated PDF.

The PDF is generated by a SAP R3 standard program, which I don't want to change.

Depending the case, the PDF is printed, send via email using SCOT or archive link.

I would like to know if in the PDF template using a Script (Java or FormCalc) it's possible to set the filename and different properties such as Author, Title subject... of the PDF.

Thanks.

Matthieu

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

IWDCachedWebResource pdfResource = WDWebResource.getPublicCachedWebResource(pdfContent,WDWebResourceType.PDF,WDScopeType.CLIENTSESSION_SCOPE,wdThis.wdGetAPI().getComponent().getDeployableObjectPart(),"test");

Use this code

Former Member
0 Kudos

Hi Gurprit,

I've probably missed something.

I imagine that this should be run on client only when form ready.

But when I look into the report, there is an error here:

IWDCachedWebResource pdfResource (missing ";" at the place of the space ' '.)

So where and when do you execute this script?

Thanks.

Matthieu.