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?.
Copy link to clipboard
Copied
I'm Using .NET Core . Urgent Support requires
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.
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
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.)
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 ?
Copy link to clipboard
Copied
I'm Using .NET SDK