[Sv] - Pdfviewer print2pdf?

I encountered a situation like this:
After loading the pdf file into pdfviewercontrol, if I want to print them into a new pdf file or into multiple pdf files per page as a file, how do I set up the code? (edit: it's has frompage and endpage)
I don't use printdialog, I want after setup I can use code as:
pdfviewer.print2pdf
pdfviewer.print2Multipdf
But I'm not sure how to name file and where to save them!

5 Replies

US Uthandaraja Selva Sundara Kani Syncfusion Team June 5, 2020 12:06 PM UTC

Hi Khanh, 
 
Thanks for contacting Syncfusion support. 
 
Based on your update, we suspect that you may need to save each pages of PDF document into a single page PDF document. Please confirm us our observation and your requirement are same. So that, we could start work on this. 
 
Otherwise, please provide the elaborated details of your requirement. It will be helpful for us to analyze more on this and assist you a better solution. 
 
Regards, 
Uthandaraja S 



TG The GridLock June 7, 2020 10:09 AM UTC

Hi,
After using pdfviewer to view this pdf file, I want to print from page .. to page ..,
if not print pdf it will work, however if i want to print them as pdf what should i do? for example it has 25 pages, I want to print from pages 5 to 10, and name it [a5, a6, ..., a10] .pdf


US Uthandaraja Selva Sundara Kani Syncfusion Team June 8, 2020 11:13 AM UTC

Hi Khanh, 
 
Thanks for your update. 
 
On further analysis, we can achieve the requirement of “Print some pages of PDF document with specified file name” with the help of PdfViewerControl.PrintDocument property. We have created a sample for the same and it can be downloaded from below link, 
 
 
In the above example, we loaded the 7-page PDF document in the PdfViewerControl and printed the pages from 2 to 5 page. 
 
Please let us know if you need further assistance. 
 
Regards, 
Uthandaraja S 



TG The GridLock June 8, 2020 08:24 PM UTC

Hi Uthandaraja, 
Thanks for the sample file, it helped me a lot.


US Uthandaraja Selva Sundara Kani Syncfusion Team June 9, 2020 09:41 AM UTC

Hi Khanh, 

We are glad to hear that the sample we provided helps you and as always, we are happy to assist you. 

Regards, 
Uthandaraja S 


Loader.
Up arrow icon