PEAR is discontinued

This is a static archive preserving historical releases and metadata. No new packages or updates will be published. For updates to existing packages, or to publish new packages, please use Composer and Packagist.

Home » File Formats » File_PDF » Bug #8680

Error File_PDF with I18Nv2

Details

Submitted2006-09-12 15:08 UTC
Frombuckaroo_29 at yahoo dot de
StatusDuplicate
PackageFile_PDF
PHP Version5.1.4
OSWindows 2000
Roadmaps(Not assigned)

Comments

[2006-09-12 15:08 UTC] buckaroo_29 at yahoo dot de

Description:
------------
Hi there,

don't know it's really a bug, but creating a PDF-Page (-Object) after a call to I18Nv2::createLocale() (Version 0.11.4 beta), will result in a 'Read-Error 110' in Adobe Reader 7.05.

If I change the order of calling createLocale, Adobe opens the outputted file correctly.

SeeYa & LLAP

Banzai

Test script:
---------------
<?php
require_once( "PEAR.php" );
require_once( "I18Nv2.php");
require_once( "I18Nv2/Locale.php");
require_once( "File/PDF.php" );

$i18nv2 = & I18Nv2::createLocale( "de" );

$pdf = & File_PDF::factory( array( "orientation" => "P", "unit" => "mm", "format" => "A4" ) ); //, "PDF_File" );
$pdf->open();
$pdf->setLeftMargin( 25 );
$pdf->setRightMargin( 15 );
$pdf->setTopMargin( 20 );
$pdf->addPage();
$pdf->setFont( "Arial", "B", "20" );
$pdf->setDrawColor( "rgb", 0.1, 0.2, 0.3 );
$pdf->setTextColor( "rgb", 0.9, 0.8, 0.7 );
$pdf->cell( 120, 20, "Überschrift", "TB", 0, "C" );
$pdf->output("Test.pdf");
?>

Expected result:
----------------
A created PDF-File in Adobe Reader

Actual result:
--------------
Read Error No. 110 in Adobe Reader 7.05

[2006-10-06 11:28 UTC] buckaroo_29 at yahoo dot de

OK, i've try with setLocale( "en" ) and it's works!
Think there is a Bug in File_PDF while formatting special items with locales in "de" (like floats?!?)!

Maybe this can help...

[2006-12-02 05:46 UTC] chagenbu at php dot net

Duplicate of the Horde bug - I'm just closing this to avoid it being open in two places.