function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
learnSFlearnSF 

how to split pdf document in Apex code

Hi,

 

I have pdf attchment with 6 pages.

 

I need to write code in apex which only last 4 pages from pdf and sent email with that new attachment and remove first two pages.

 

Can someone tell me how we can split pdf pages from attachment and create new attachment?

 

Thanks

Ankit AroraAnkit Arora

When you read a PDF it will come as Blob type and you can not split it. So you can not do this.

 

 

Thanks

Ankit Arora

Blog | Facebook | Blog Page