Print Page | Close Window

PHP PDF Page Cropping

Printed From: Foxit's Planet PDF Forum
Category: Lets Talk PDF
Forum Name: General
Forum Description: This is for experienced PDF users. Here you can talk about any topics not set aside for Developers, Prepress and PDF Forms.
Printed Date: 07 Dec 2019 at 5:52pm
Software Version: Web Wiz Forums 11.10 -

Topic: PHP PDF Page Cropping
Posted By: karthikeyan.mscse
Subject: PHP PDF Page Cropping
Date Posted: 30 Jan 2012 at 7:35am

 Is it possible to crop each pdf page using PHP coding? If possible means how to do?

 Anyone give the suggestion for issue......?

 Karthikeyan Murugan

Posted By: Rowan
Date Posted: 30 Jan 2012 at 9:00am

There are some tools for PHP which let you generate PDF files such as - FPDF and - TCPDF but it doesn't look like there's anything for free that lets you crop PDF files using PHP.

If you need the solution to be free then your best bet might be to use something like ImageMagick to convert the PDF to an image, crop it, and then convert it back to a PDF. It's definitely not an ideal solution, since the PDF will become an image-based PDF without any interactive elements or text objects, but that might be your only option.

Print Page | Close Window

Forum Software by Web Wiz Forums® version 11.10 -
Copyright ©2001-2017 Web Wiz Ltd. -