Splitting one page
Splitting one page
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.
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.
-
- Posts: 352
- Joined: Tue Sep 27, 2011 11:47 am
Re: Splitting one page
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
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
Re: Splitting one page
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
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
Re: Splitting one page
Thanks for the tips....I'll go try it and report the result....
Re: Splitting one page
This works great! Thanks!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
Re: Splitting one page
Thank you for the return Ton!
Who is online
Users browsing this forum: No registered users and 1 guest