Skip to main content
Known Participant
July 30, 2022
Question

Adobe.PDFServicesSDK

  • July 30, 2022
  • 2 replies
  • 911 views

Hi, I'm Using Adobe PDFServicesSDK to export PDF from HTML. I'm able to Save the file in the desired location which is perfect as expected . But I'm not able to download the File due to only limited properties result.SaveAs option available.Could some one help me to download while button click?.

https://github.com/adobe/PDFServices.NET.SDK.Samples

    This topic has been closed for replies.

    2 replies

    Raymond Camden
    Community Manager
    Community Manager
    August 2, 2022

    I'm not quite sure I understand your question. Our SDKs are server-side solutions. It sounds like you want to download the result to a user. You can build a web front-end to our services and send results to end users, but that's outside the scope of the help we can provide here.

    Known Participant
    August 4, 2022

    Thank You able to download the file. Is there any options to Save the file to memory stream rather generating the file inside output folder?

    FileRef result = htmlToPDFOperation.Execute(executionContext);

    result.SaveAs(Directory.GetCurrentDirectory() + "/output/createPdfFromDynamicHtmlOutput.pdf");

    to

    I just want to save  like this

    FileRef result = htmlToPDFOperation.Execute(executionContext);

    result.SaveAs(Stream outputstream);

     

    I'm pretty much new to the streams  answers would be appreciated

    Raymond Camden
    Community Manager
    Community Manager
    August 4, 2022

    Yes, all the SDKs support that. Which SDK are you using? (FYI currently out of office so may be slow to respond.)

    Known Participant
    July 30, 2022

    I'm Using .NET Core . Urgent Support requires