RE: Page poperties?????

Ben <[email protected]>
Newsgroups gmane.comp.lang.perl.modules.pdfapi2
Message-ID <25026399.1189008104452.JavaMail.root@elwamui-muscovy.atl.sa.earthlink.net>
crap I knew that, I am getting ahead of myself , thanks for the explaination it helps.

I do have one more question,
i have a images that is 72dpi, 150x100
everytime I use the image_png method to place the image it comes out blurry, and I am trying to figure out why.

help me out I am trying to understand this, what unit of measure does PDF use
and if different than pixels doe the image_png convert said pixels to native pdf measure?

cause I am not coming up with a reason why its blurry

I am using it like so:
sub setImage{
my $photo_file=$pdf->image_png($_[0] ,-lossless => 1);
my $photo = $page->gfx;

## add photo to pdf include cordinates and size - image($photo, x, y, width, hieght);
$photo->image($photo_file, $_[1], $_[2], $_[3], $_[4]);

}

pdf object is declared at top of the script

thanks

-----Original Message-----

From: Mark Fowle

Sent: Sep 5, 2007 11:24 AM

To: [email protected]

Subject: RE: [perl-text-pdf-modules] Page poperties?????

As stated your question does not make much
sense.

If you created the PDF you kind of know
the height.

As you can write content at any arbitrary
location on the page the idea of coming to the end does not mean much.

If you are trying to write out a large
block of text that may go over the end of a page you need to figure out how to deal
with that, given your circumstances.

If you write out individual lines less
that a page width long then just track the Y value of the page position and
something along the lines of if CurrentY < 0 + bottomMargin new page

If you are writing out blocks of text you
need to do something similar but on a block level (I don’t use this
method) if CurrentY – block height < 0 + bottomMargin new page

And or If I’ve totally misunderstood
you the positioning (x,y) starts at the bottom left so a y of 0 is the bottom
of the page.

----------

From: [email protected]
[mailto:[email protected]] On Behalf Of Ben

Sent: Wednesday, September 05,
2007 11:03 AM

To:
[email protected]

Subject: [perl-text-pdf-modules]
Page poperties?????

I am
trying to find a way to get the height of the page, so I know when it end
and I can create a new page dynamically.

anyone done something like this or know how to?

__._,_.___

Messages in this topic (0)

Reply (via web post) |
Start a new topic

Messages

| Polls
| Members

To unsubscribe from this group, send an email to:

perl-text-pdf-modules-unsubscribe-Km8ibD4bFueDmjp1MlKEbA@public.gmane.org

http://groups.yahoo.com/;_ylc=X3oDMTJkYTE5YWZrBF9TAzk3NDc2NTkwBGdycElkAzIwMTczODIEZ3Jwc3BJZAMxNzA1MDA3NzA5BHNlYwNmdHIEc2xrA2dmcARzdGltZQMxMTg5MDA4MzIy

Change settings via the Web (Yahoo! ID required)

Change settings via email: Switch delivery to Daily Digest | Switch format to Traditional

Visit Your Group |
Yahoo! Groups Terms of Use |
Unsubscribe

Recent Activity

-

1

New Members

Visit Your Group

Search Ads

Get new customers.

List your web site

in Yahoo! Search.

Y! Messenger

Quick file sharing

Send up to 1GB of

files in an IM.

Fitness Zone

on Yahoo! Groups

Find Groups all

about healthy living.

.

__,_._,___
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.