PHP Bugs  
php.net | support | documentation | report a bug | advanced search | search howto | statistics | login

go to bug id or search bugs for  

Bug #10334 Incorrect paramters for pdf_setdash
Submitted:15 Apr 2001 10:11am UTC Modified: 15 Jun 2001 6:44am UTC
From:graeme at inetix dot com dot au Assigned to:
Status:Closed Category:PDF related
Version:4.0 Latest CVS (15/04/2001) OS:Linux-i386
View/Vote Developer Edit Submission

Welcome! If you don't have a SVN account, you can't do anything here. You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
SVN Username: SVN Password:
Quick Fix:
Status: Assign to:
Category:
Summary:
From: graeme at inetix dot com dot au
New email:
Version: OS:
New/Additional Comment:

[15 Apr 2001 10:11am UTC] graeme at inetix dot com dot au
According to the docs for pdflib pdf_setdash should have the following
parameters: void PDF_setdash(PDF *p,float b,float w)

In the PHP sources white and black have been transposed to to 
pdf_setdash(int pdfdoc, double white, double black)

When using the function going from
pdf_setdash($pdf, 10, 5);
to
pdf_setdash($pdf, 20, 5);

rather then the length of the white dash portion increasing, the length
of the black increases instead.

The proto desc for the function just needs to be updated. Also filing a
documentation bug.
[15 Jun 2001 6:44am UTC] sniper@php.net
Proto fixed in CVS. Docs are ok.

RSS feed | show source 

PHP Copyright © 2001-2009 The PHP Group
All rights reserved.
Last updated: Sat Nov 21 10:30:49 2009 UTC