ID: 32905
Updated by: [EMAIL PROTECTED]
Reported By: sergej dot kurakin at delfi dot lt
-Status: Analyzed
+Status: Assigned
Bug Type: ClibPDF related
Operating System: WinXP SP1 / Win2K SP4
PHP Version: 4.3.11
Assigned To: steinm
Previous Comments:
------------------------------------------------------------------------
[2005-06-06 10:26:59] [EMAIL PROTECTED]
This bug seems to be pdf viewer depended. It can be reproduced on:
Windows in Adobe Acrobat Reader 5 and 6, Foxit PDF Reader
I cannot be reproduced on:
Windows in Adobe Acrobat Reader 7
MAC OS X in Adobe Acrobat Reader 6 and 7
Linux
------------------------------------------------------------------------
[2005-05-19 08:47:59] sergej dot kurakin at delfi dot lt
I'v send a code and pdf, generated on my sistem.
------------------------------------------------------------------------
[2005-05-18 20:17:05] [EMAIL PROTECTED]
I couldn't reproduce this bug on a linux system. Would it be possible
for the initial poster to send me the pdf file.
------------------------------------------------------------------------
[2005-05-18 18:31:53] [EMAIL PROTECTED]
Assigned to the maintainer.
------------------------------------------------------------------------
[2005-05-01 17:25:12] sergej dot kurakin at delfi dot lt
Description:
------------
Some modified code from manual, create 2 pages in PDF file
Reproduce code:
---------------
<?php
$cpdf = cpdf_open(0);
cpdf_page_init($cpdf, 1, 0, 595, 842, 1.0);
$b = cpdf_add_outline($cpdf, 0, 0, 0, 1, "Page 1");
cpdf_begin_text($cpdf);
cpdf_set_font($cpdf, "Times-Roman", 30, "WinAnsiEncoding");
cpdf_set_text_rendering($cpdf, 1);
cpdf_text($cpdf, "Times Roman outlined", 50, 50);
cpdf_end_text($cpdf);
cpdf_moveto($cpdf, 50, 50);
cpdf_lineto($cpdf, 740, 330);
cpdf_stroke($cpdf);
cpdf_finalize_page($cpdf, 1);
cpdf_page_init($cpdf, 2, 0, 595, 842, 1.0);
cpdf_add_outline($cpdf, $b, 0, 0, 2, "Page 2");
cpdf_begin_text($cpdf);
cpdf_set_font($cpdf, "Times-Roman", 30, "WinAnsiEncoding");
cpdf_set_text_rendering($cpdf, 1);
cpdf_text($cpdf, "Times Roman outlined", 50, 50);
cpdf_end_text($cpdf);
cpdf_moveto($cpdf, 50, 50);
cpdf_lineto($cpdf, 740, 330);
cpdf_stroke($cpdf);
cpdf_finalize_page($cpdf, 2);
cpdf_finalize($cpdf);
Header("Content-type: application/pdf");
cpdf_output_buffer($cpdf);
cpdf_close($cpdf);
?>
Expected result:
----------------
2 Pages + 2 Bookmarks, Bookmark "Page 1" refers to first page, "Page 2"
to second page.
Actual result:
--------------
2 Pages + 2 Bookmarks, Bookmark "Page 1" refers to second page, "Page
2" to second (or not) page.
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=32905&edit=1