Skip to Content
author's profile photo Former Member
Former Member

PDF FileName

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

Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • author's profile photo Former Member
    Former Member
    Posted on Jun 14, 2008 at 09:24 AM

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

    Use this code

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member

      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.

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.