Skip to main content
Known Participant
Jul 30, 2022 7:45 AM UTC
Question

Adobe.PDFServicesSDK

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 is closed to new replies. Start a new post to keep the conversation going.

    6 replies

    Raymond Camden
    Community Manager
    Community Manager
    Aug 2, 2022 3:47 PM UTC

    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.

    Translate
    Known Participant
    Aug 4, 2022 2:09 PM UTC

    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

    Translate
    Raymond Camden
    Community Manager
    Community Manager
    Aug 4, 2022 4:22 PM UTC

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

    Translate
    Known Participant
    Jul 30, 2022 7:49 AM UTC

    I'm Using .NET Core . Urgent Support requires

    Translate