Jump to content

Crop portion of pdf


figo2476

Recommended Posts

Hi:

 

I use fpdf, fpdi, etc to crop portion of pdf.

 

$box = '/CropBox';

$tplIdx = $pdf->importPage(1, $box);

$size = $pdf->useTemplate($tplIdx, -70, -15, 100, 100);

 

The output: Shift left and top by 70 & 15, then set the visible portion to 100x100. That is not I want. Is there any hint for correct implementation?

 

pdflib is good, but it is commercial.

Link to comment
https://forums.phpfreaks.com/topic/94138-crop-portion-of-pdf/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.