cancel
Showing results for 
Search instead for 
Did you mean: 

save required pdf pages into a single pdf file

vinodchinthakin
Level 9
Hi All,

I have a scenario where PDF file has more than 2 pages. I need to save pdf with first two pages and delete remaining pages.
I am using(Utility PDF VBO) Split Pdf range action to split first two pdf pages into two pdf files then using merge pdf action to merge those two splitted files into a single pdf file. Its working fine.!

Do we have any single action or code to get required number of pages of pdf file in an output pdf file?
OR Do we have any single action or code to delete all pages by providing the starting index page number?

------------------------------
vinod chinthakindi
------------------------------
13 REPLIES 13

Good day, Vinod.

You can utilize the PDF Management VBO, which offers a Split Index argument that can be passed to Split File.

Look at this. I assume this is exactly what you need to split a PDF in one go, always starting with the first two pages.

15368.png

------------------------------
If I was of assistance, please vote for it to be the "Best Answer".

Thanks & Regards,
Tejaskumar Darji
Sr. Consultant-Technical Lead
------------------------------

Hi @Tejaskumar_Darji.

I assume this action creates two output files.  But I need a single output file having first two pages of input pdf ​

------------------------------
vinod chinthakindi
------------------------------

Hi Vinod,

I've added a new action in the VBO which will generate only a single PDF by updating the code stage.

Please check and let me know how it goes and if it serves your purpose.

------------------------------
If I was of assistance, please vote for it to be the "Best Answer".

Thanks & Regards,
Tejaskumar Darji
Sr. Consultant-Technical Lead
------------------------------

Attached is the ZIP.

------------------------------
If I was of assistance, please vote for it to be the "Best Answer".

Thanks & Regards,
Tejaskumar Darji
Sr. Consultant-Technical Lead
------------------------------

Hello @vinod chinthakindi

Did this solution work for you?

Let us know the update.


------------------------------
If I was of assistance, please vote for it to be the "Best Answer".

Thanks & Regards,
Tejaskumar Darji
Sr. Consultant-Technical Lead
------------------------------

Hi @Tejaskumar_Darji
sorry for late update. There is an issue at my Org. They have removed access to copy ddl's for developers. So I am not able to test above VBO due to missing pdfsharp.dll. It will take some time to get those access. Then I can able to provide an update about your solution!

------------------------------
vinod chinthakindi
------------------------------

Hi @Tejaskumar_Darji,

Your solution worked for me. Thanks a lot.!
Do we have any solution for Deleting a single Page or Range of Pages from PDF?​

------------------------------
vinod chinthakindi
------------------------------

Hi Vinod,

I've added a new action to Delete a Single PDF page.

Please check out.

------------------------------
If I was of assistance, please vote for it to be the "Best Answer".

Thanks & Regards,
Tejaskumar Darji
Sr. Consultant-Technical Lead
------------------------------

Attached the ZIP

------------------------------
If I was of assistance, please vote for it to be the "Best Answer".

Thanks & Regards,
Tejaskumar Darji
Sr. Consultant-Technical Lead
------------------------------