Closed JorgeEMX closed 10 years ago
Ok - I'll take a look at it. Thanks.
I added details
Trying to clarify the issue here. The PDF you attached above - did you generate that with Pop? Or are you trying to import it into a new PDF using Pop? Because the PDF you attached opens correctly for me in Acrobat Reader v11.0.06. See this screenshot: http://www.popphp.org/img/acrobat11.jpg
Sorry, my bad. Is your second question. I need import the above pdf into a new pdf file (using Pop). That file imported, opens correctly in browser (with native chrome plugin) but not opens with acrobat reader (after save the file or save with Pop).
Oh ok, thanks for the clarification. I'll check it out using that scenario.
Ok, I believe I've been able to fix the issue here. Go ahead and download the lastest copy of Pop and test it out. Here's my test that was successful:
$pdf = new Pdf('new.pdf');
$pdf->import('Guia.pdf');
$pdf->setPage(1);
$pdf->setFillColor(new Rgb(0, 0, 0));
$pdf->addFont('Courier');
$pdf->addText(500, 300, 18, 'Hello World');
$pdf->setFillColor(new Rgb(128, 200, 50));
$pdf->setStrokeColor(new Rgb(0, 255, 0));
$pdf->setStrokeWidth(8);
$pdf->drawCircle(500, 100, 100);
$pdf->setFillColor(new Rgb(215, 101, 12));
$pdf->setStrokeColor(new Rgb(0, 0, 0));
$pdf->setStrokeWidth(2, 5, 5);
$pdf->drawRectangle(50, 150, 175, 50);
$pdf->setPage(2);
$pdf->setFillColor(new Rgb(0, 0, 0));
$pdf->addText(500, 300, 18, 'Hello World Again');
$pdf->output();
and the result can be viewed here: http://www.moc10dev.com/pdf/new_Guia.pdf
Thanks! works fine know :)
Hello,
I cant read pdf generated by Pop on acrobat reader (version 11.0.06), but this read correct on chrome native plugin.
This is original file: https://drive.google.com/file/d/0B8SzpfEqeyyxcFZObU9xQ3Z1MUU/edit?usp=sharing, I try import the pdf in a new file.
Do you can fix this? Thanks!