Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    Capturing generated PDF on the Server

    I'd like to capture on the server side the PDF requested from the client, to later be attached to an email.

    Right now I have a method on the client that is generating PDF of my content:

    Code:
    		DSRequest requestProperties = new DSRequest();
    		requestProperties.setExportFilename("flightplan");
    		requestProperties.setExportDisplay(ExportDisplay.DOWNLOAD);
    		requestProperties.setContentType("application/pdf");
    		requestProperties.setDownloadResult(true);
    		RPCManager.exportContent(content, requestProperties);
    Instead of downloading to the client, I'd like the generated PDF made available on the server in memory (preferable), or on the server filesystem.

    Is this possible? If so, how would I go about this? I've tried calling requestProperties.setExportToFilesystem(true) with no luck.

    I'm currently using: SmartClient Version: SC_SNAPSHOT-2012-03-20_v8.2p/Enterprise Deployment (built 2012-03-20)

    Thanks!
    Chris

    #2
    The server-side docs for PDFExport go through this scenario in detail.

    Comment


      #3
      Thank you, that appears to be what I was looking for, just couldn't find it.

      Chris

      Comment

      Working...
      X