Append a PDF

Hi

How would I go about appending a document to the end of the currently loaded PDF?

I see that PdfViewerControl.LoadedDocument has an Append method, but appending a PdfLoadedDocument using that method doesn't display the second document in the viewer. 


3 Replies

RB Rajavignesh BalaSankar Syncfusion Team January 18, 2022 04:07 PM UTC

Hi David,


Thank you for contacting Syncfusion support.


We can achieve your requirement by using the Append method of PdfLoadedDocument. After appending the document, save it as a stream and then load it using the load method of PdfViewerControl. We have also created a sample for your reference and attached below.


Please let us know whether you need further assistance on this.


Regards,

Raja Vignesh.


Attachment: WinformsPDFViewer_96744b12.zip


DF David Friend January 18, 2022 04:24 PM UTC

That works perfectly! thank you so much.



DD Divya Dhayalan Syncfusion Team January 19, 2022 05:50 AM UTC

Hi David, 
 
Most welcome, we are glad that the provided solution helpful to achieve your requirement. Please let us know if you need any further assistance on this. 
 
Regards, 
Divya 


Loader.
Up arrow icon