Skip Menu |

This queue is for tickets about the PDFLib CPAN distribution.

Report information
The Basics
Id: 289
Status: resolved
Priority: 0/
Queue: PDFLib

People
Owner: Nobody in particular
Requestors: aaron [...] aaronland.net
Cc:
AdminCc:

Bug Information
Severity: Normal
Broken in: 0.09
Fixed in: (no value)



Subject: PDFLib::BoundingBox::print (wrap =0)
The $bb->print method does not respect the maximum width of the page when the $bb object is created with a wrap attribute set to "0". If the width of $line is longer than the page, the text is not wrapped and simply printed off the side of the page. PDFLib 0.09 Perl 5.6.1 FreeBSD 4.4 #STABLE
Date: Fri, 15 Feb 2002 16:57:55 +0000 (GMT)
From: Matt Sergeant <matt [...] sergeant.org>
To: Guest via RT <bug-PDFLib [...] rt.cpan.org>
Subject: Re: [cpan #289] PDFLib::BoundingBox::print (wrap =0)
On Fri, 15 Feb 2002, Guest via RT wrote: Show quoted text
> > > This message about PDFLib was sent to you by guest via rt.cpan.org > > <URL: https://rt.cpan.org/Ticket/Display.html?id=289 > > > The $bb->print method does not respect the maximum width of the page > when the $bb object is created with a wrap attribute set to "0". > > If the width of $line is longer than the page, the text is not wrapped > and simply printed off the side of the page.
Err, that's the point. If you wanted it to wrap you'd specify wrap => 1. Or have I missed your point? -- <!-- Matt --> <:->Get a smart net</:->
Date: Fri, 15 Feb 2002 12:05:51 -0500 (EST)
From: Aaron Straup Cope <asc [...] vineyard.net>
To: bug-PDFLib [...] rt.cpan.org
Cc: aaron [...] aaronland.net
Subject: Re: [cpan #289] PDFLib::BoundingBox::print (wrap =0)
On Fri, 15 Feb 2002 matt@sergeant.org wrote: Show quoted text
> > > On Fri, 15 Feb 2002, Guest via RT wrote: >
> > > > > > This message about PDFLib was sent to you by guest via rt.cpan.org > > > > <URL: https://rt.cpan.org/Ticket/Display.html?id=289 > > > > > The $bb->print method does not respect the maximum width of the page > > when the $bb object is created with a wrap attribute set to "0". > > > > If the width of $line is longer than the page, the text is not wrapped > > and simply printed off the side of the page.
> > Err, that's the point. If you wanted it to wrap you'd specify wrap => 1. > > Or have I missed your point?
Maybe I misread the the docs, but if I set "wrap" to 1 then newlines included in $text won't be honoured.
Date: Fri, 15 Feb 2002 17:24:10 +0000 (GMT)
From: Matt Sergeant <matt [...] sergeant.org>
To: Aaron Straup Cope via RT <bug-PDFLib [...] rt.cpan.org>
Cc: "aaron [...] aaronland.net" <aaron [...] aaronland.net>
Subject: Re: [cpan #289] PDFLib::BoundingBox::print (wrap =0)
On Fri, 15 Feb 2002, Aaron Straup Cope via RT wrote: Show quoted text
> > > On Fri, 15 Feb 2002 matt@sergeant.org wrote: >
> > > > > > On Fri, 15 Feb 2002, Guest via RT wrote: > >
> > > > > > > > > This message about PDFLib was sent to you by guest via rt.cpan.org > > > > > > <URL: https://rt.cpan.org/Ticket/Display.html?id=289 > > > > > > > The $bb->print method does not respect the maximum width of the page > > > when the $bb object is created with a wrap attribute set to "0". > > > > > > If the width of $line is longer than the page, the text is not wrapped > > > and simply printed off the side of the page.
> > > > Err, that's the point. If you wanted it to wrap you'd specify wrap => 1. > > > > Or have I missed your point?
> > Maybe I misread the the docs, but if I set "wrap" to 1 then newlines > included in $text won't be honoured.
Hmm, maybe I need a third option, wrap + honour newlines ;-) -- <!-- Matt --> <:->Get a smart net</:->
Closing bug, easily accomplished in perl with: map { $bb->print($_); $bb->print_line(""); } split(/\n/, $text); Matt.