$50USD reward for PDF Image Output

Discussion corner for Developers of Serendipity.
Post Reply
elvisanderson
Regular
Posts: 15
Joined: Wed Jan 25, 2006 5:14 pm

$50USD reward for PDF Image Output

Post by elvisanderson »

Hi All,

I'm looking for the Blog PDF Output plugin to include the images from the blog. I don't care if they have to remain in the same area on each page throughout the document. Only Jpeg's required. I'll pay $50usd through paypal. Any questions, please PM me. Will need PDF receipt at end of job (images optional :-).

Thanks,

Clayton
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: $50USD reward for PDF Image Output

Post by garvinhicking »

Even though we talked via mail about it, I still don't understand:

Do you want to

a.) Display the images that are embedded within each article to show up in the PDF

or

b.) Display a single image as the logo of your blog on the first (or on each) page of the PDF?

Option "a" is hard to solve and might require external commercial PDF server libraries. Option "b" is easy to solve, but IMHO not really helpful. ;)

Regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
elvisanderson
Regular
Posts: 15
Joined: Wed Jan 25, 2006 5:14 pm

Post by elvisanderson »

Hi Garvin,

I'm definitely looking for option A. I already have included a line in the header:

$this->Image('http://www.adventurecanada.com/acblog/images/aclogo.jpg', 150, 8, 50, '', '', 'http://www.adventurecanada.com');

Which puts our logo in the top corner of each page in the PDF... What I want to do is insert the individual images from each page.

I thought just calling a variable that includes the URL would work, but I have no idea how to do that :-)
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post by garvinhicking »

The technical problem for this is that an entry might span multiple pages, and might occur at the top or bottom of a PDF page. So you need to parse each and every page and get the X/Y coordinates, then parse the whole entry to see which images appear, and then call the PDF functions to insert those images, and then calculate how the X/Y coordinates need to be advanced.

That's a considerable overhead, because rendering HTML is a tough job. :-/

Having said that: I would love if a developer would volunteer for this. I'd throw in an extra 15$ if the image parsing is included and pays attention to where within an entry an image it placed. So that when an author includes an entry at the bottom of his entry, that's where the picutre would show up in the entry, not in the top of the entry...

Regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
elvisanderson
Regular
Posts: 15
Joined: Wed Jan 25, 2006 5:14 pm

Post by elvisanderson »

What if we wanted to be simpler specify the X/Y co-ordinates in advance for the image on each page, as long as you're OK with a template style look.
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post by garvinhicking »

I think that wouldn't work well, to force editors to not only insert an image with the media database, but to also specify X/Y coordinates in a seperate panel.

Plus, an editor also doesn't now the X/Y coordinate of his entry, because it might change depending on which other entries are shown previously in the PDF. Sometimes the article might be on top of the page, sometimes it would span 2 pages, sometime it would begin in the middle of a page...?

Regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
Post Reply