kira0802 wrote:I think you forghot the pics.
Actually, I didn't forget them. I omitted them. Trying to get them in the PDF nicely is driving me up the wall at the moment. -_-;
The problem is, I'm using a straight text file of the content to generate the PDF with; it's not going from HTML to PDF or anything like that, but rather from a set of text files.
I don't have a way to indicate where the image thumbnail should go; to add in the images, somehow I'd have to get the script to set enough lines of text to not take up the entire page width so that the image could be placed in the designated area. I have not the slightest idea on how to determine on-the-fly how much text would have to move and how much horizontal/vertical space the image needs.
To put it simply, I'm in a state of "A-S-D-F&#^
ING F" about the images.
I do have good news though. I've switched PDF generation libraries, the newer library contains unicode support...with a drawback. Depending on the PDF reader, the user might have to install a specific font; for Adobe reader, I think it was "Japan1".
The PDF viewer in Google Chrome 14 dev branch however supports the font natively...with a bit of an ugly font, but eh, it's readable without those bloody rectangles everywhere.
Here's the latest run of the script: http://www.mediafire.com/?3cdffxbe4u29lhb
I'm gonna play around with the generation script a bit more, see if I can figure out how exactly to divide up the text files so that it can still be automated easily. It'll take some time though.
Oh, about the images...do you guys use a specific size or have a size constraint of any kind for thumbnail height/width?
It'd help me figure out how to tune the generator if I knew.