crop portion of pdf

Discussion in 'PHP' started by figo2476, Mar 2, 2008.

  1. #1
    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.
     
    figo2476, Mar 2, 2008 IP