• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

Adobe.PDFServicesSDK

Community Beginner ,
Jul 30, 2022 Jul 30, 2022

Copy link to clipboard

Copied

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

Views

647

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Jul 30, 2022 Jul 30, 2022

Copy link to clipboard

Copied

I'm Using .NET Core . Urgent Support requires

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Adobe Employee ,
Aug 02, 2022 Aug 02, 2022

Copy link to clipboard

Copied

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.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Aug 04, 2022 Aug 04, 2022

Copy link to clipboard

Copied

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

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Adobe Employee ,
Aug 04, 2022 Aug 04, 2022

Copy link to clipboard

Copied

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

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Aug 04, 2022 Aug 04, 2022

Copy link to clipboard

Copied

I'm able to download with the help of memory stream as well.

FileRef result = htmlToPDFOperation.Execute(executionContext);

The above line is taking almost 15 to 20 seconds to generate a pdf file. Could you please help me to  download the file as quick as possible without taking 20 secs ?

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Aug 04, 2022 Aug 04, 2022

Copy link to clipboard

Copied

LATEST

I'm Using .NET SDK

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources