File Format pdfDocument.Save method not saving to a file only stream

Hi I'm working a WASM Blazor Project, this is a previous sample send by you (Syncfusion).

Previous Thread:  176395

Reference Link I'm following:  https://help.syncfusion.com/file-formats/pdf/open-and-save-pdf-file-in-c-sharp-vb-net#saving-a-pdf-document-into-the-same-file-or-stream

Steps:

- I loaded an existing PDF using PdfLoadedDocument loadedDocument = new PdfLoadedDocument(stream); from a Stream.

- Then create some fields

- Then following the instructions from the reference link to save as file system and I can't loadedDocument.Save(); only allows stream

-Then trying to save as a new Stream following the instructions from the reference link and when I try to save from stream to a file I got an error that file is corrupted


1 Reply

GK Gowthamraj Kumar Syncfusion Team August 23, 2022 01:12 PM UTC

Hi Luis,


We have checked the reported issue with provided details on our end, but the document is saved and opened properly. We have attached the modified WASM sample for your reference, please try the below sample on your end and let us know the result.
Sample: https://www.syncfusion.com/downloads/support/directtrac/general/ze/SERVER_Sample-205049434

Note: The output document will be saved in Data folder from wwwroot folder.


Please refer to the below link for more information,

Steps: https://help.syncfusion.com/file-formats/pdf/create-pdf-document-in-blazor#steps-to-create-pdf-document-in-blazor-client-side-application

Forms: https://help.syncfusion.com/file-formats/pdf/working-with-forms

If still you are facing an issue, we request you to share the complete code snippet, modified sample, error or exception details to check the issue on our end. So that it will helpful for us.

Regards,

Gowthamraj K


Loader.
Up arrow icon