Splitting one page

Discussions about PDF management.
Post Reply
phlexss
Posts: 3
Joined: Fri Sep 19, 2014 11:52 am

Splitting one page

Post by phlexss » Fri Sep 19, 2014 11:55 am

Can I use the PDF plugin to split one page into two pages?

I have a PDF which contains one page in landscape orientation and I want to create two new PDF files; one containing the left 50% of the page and one containing the right 50% of the page.

Can this be done and if so; how?

Thanks for any help provided!

Regards,
Ton Trommelen.

SamiKharma
Posts: 352
Joined: Tue Sep 27, 2011 11:47 am

Re: Splitting one page

Post by SamiKharma » Mon Sep 29, 2014 9:32 am

Hi,

Yes you can and it is very simple:
1. Open the PDF
2. Use RenderPageToGdPictureImage
3. Create two images of the dimensions and location you want using: https://www.gdpicture.com/guides/gdpicture/GdP ... eArea.html
4. Create two pdfs, for each, call
https://www.gdpicture.com/guides/gdpicture/GdP ... Image.html
with the drawImage parameter to true.
For each pdf, use one of the created images.

I hope this helps.
Best,
Sami

User avatar
Loïc
Site Admin
Posts: 5881
Joined: Tue Oct 17, 2006 10:48 pm
Location: France
Contact:

Re: Splitting one page

Post by Loïc » Mon Sep 29, 2014 5:57 pm

Hi,

Another solution, if you want to keep the initial vector content of the page "as is", is to clone the page and set a crop box on each page. see: https://www.gdpicture.com/guides/gdpicture/web ... geBox.html

Let me know if you need further details.

Best regards,

Loïc

phlexss
Posts: 3
Joined: Fri Sep 19, 2014 11:52 am

Re: Splitting one page

Post by phlexss » Thu Oct 09, 2014 10:21 am

Thanks for the tips....I'll go try it and report the result....

phlexss
Posts: 3
Joined: Fri Sep 19, 2014 11:52 am

Re: Splitting one page

Post by phlexss » Wed Oct 15, 2014 2:57 pm

Loïc wrote:Hi,

Another solution, if you want to keep the initial vector content of the page "as is", is to clone the page and set a crop box on each page. see: https://www.gdpicture.com/guides/gdpicture/web ... geBox.html

Let me know if you need further details.

Best regards,

Loïc
This works great! Thanks!

User avatar
Loïc
Site Admin
Posts: 5881
Joined: Tue Oct 17, 2006 10:48 pm
Location: France
Contact:

Re: Splitting one page

Post by Loïc » Thu Oct 16, 2014 5:09 pm

Thank you for the return Ton!

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest