World: r3wp
[PDF-Maker] discuss Gabriele's pdf-maker
older newer | first last |
Gabriele 4-Mar-2007 [498x4] | to support unicode you have to create a multibyte encoding for the fonts, and the spec does not give any detail on how this works. |
openoffice, for example, creates n 256-character fonts instead. | |
that is, if you are using "Times", and you use more than 256 different characters, openoffice creates a pdf with two fonts, "Times1" and "Times2", each with at most 256 characters. | |
so i will either need to figure out how to create a font encoding description that works for utf-16 (but i guess it would require a huge table, and so would make the documents big), or i'll need to use the same technique as OO | |
DaveC 31-May-2007 [502] | I've just downloaded pdf-maker.r and I'd really appreciate some help to get going quickly. I've rotated a page +90 to get into landscape, but the texbox still renders the text in the same way as portrait. Do I have to rotate each textbox too? I also downloaded pdf-tables.r too. Does a table handle a page break itself? Talking of page breaks, in a long table which spans many pages, I'd like to render the column headings on each new page. Is there a variable I can track or an event I can listen for that lets me know that the text is about to flow to the next page. Thanks a lot. |
Gabriele 31-May-2007 [503x2] | you may want to change the page size instead of rotating it. |
also, since you refer to pdf-tables, i assume you dowloaded version 1 | |
DaveC 31-May-2007 [505x2] | hang on... |
Version 1.5.0 | |
Gabriele 31-May-2007 [507x2] | pdf-tables lets you provide a function to create the pages, and you can still modify the output. so, you can create the headings separate from the table itself. |
really? of pdf-maker? | |
DaveC 31-May-2007 [509x2] | Yes, pdf-tables, date 24-Jul-2003 |
in the header | |
Gabriele 31-May-2007 [511] | ah, 1.5.0 of pdf-tables. you should have 1.24.0 of pdf-maker |
DaveC 31-May-2007 [512x2] | sorry, checking... |
pdf-maker: 1.27.1 3-Aug-2006 | |
Gabriele 31-May-2007 [514] | ah, right, that's the one with a few bugs fixed. |
DaveC 31-May-2007 [515] | :-) |
Gabriele 31-May-2007 [516] | should be the latest 1.x version so you're fine. |
DaveC 31-May-2007 [517] | ok. |
Gabriele 31-May-2007 [518x4] | 5th argument to render-pages is a function that is called to make the scheleton of each page. |
also, since the result is a block of pages, you can modify the result and add anything after the layout process. | |
btw, version 2 is at http://www.colellachiara.com/soft/PDFM2/pdf-maker.html | |
still looking for someone volunteering to write the user docs... :) | |
DaveC 31-May-2007 [522x3] | I can see that in the code. I'm just getting a feel for the basics at the moment. Ok, version 2 I'll get that. |
Let me see how I get on. I'd be happy to volunteer to write the user docs - I'm a bit under pressure at work right now, but I would really like to contribute something back to you. | |
Can't see a link on that page to download the code. | |
Gabriele 31-May-2007 [525x2] | note, v2 is quite different from v1. it hasn't been tested as extensively as v1 either (v1 is being used on a daily basis in many applications). |
http://www.colellachiara.com/soft/PDFM2/ | |
DaveC 31-May-2007 [527] | Got it thanks. Maybe I should stick the V1 for now then. |
Gabriele 31-May-2007 [528] | unless you need the advanced features in v2, yes. |
DaveC 31-May-2007 [529x2] | Umm. If I use this; page size 297 211 textbox ["This is a test"] the texbox does not render. If I comment out page size, it does. |
The page does flip to landscape though. | |
Gabriele 31-May-2007 [531x2] | textbox default size is not dynamic, but static, so if you set a different page size you'll want to set a custom textbox size too |
basically the above will render This is a test out of the visible area. | |
DaveC 31-May-2007 [533] | Thanks, that makes sense to me now. I'll have a bit more time tomorrow to think things through a bit more. |
Joe 2-Jun-2007 [534] | Gabriele, it would be nice to have a smaller PDF doc for v2, like you had for v1. Any chance ? |
Gabriele 2-Jun-2007 [535] | i don't have the time to write it at this moment... also, i'm sure someone other than me would have a more user-centric perspective. ie some of the stuff in v2 that seems trivial for me might not be so for other users. |
DaveC 7-Jun-2007 [536x3] | Busy converting HTML template reports into PDF using PDF-Maker. Getting the hang of it now. The function which calculates the textbox height is providing most of the work. I'm calculating page space as text boxes are generated. As I think in point size, I've transposed mm2pt to give me a pt2mm function. |
Haven't had change to look at V2 yet. | |
change = chance. | |
btiffin 25-Jun-2007 [539] | Before I look into it, I thought I'd just ask. We (the graphic desgner actually) got sent a logo graphic inside a PDF (and that is all that's in the PDF). Is there an easy way of extracting the image? I'm not a huge fan of selecting and cut'n'paste as it may lose sizing etc... More curious than worried. |
Graham 25-Jun-2007 [540x2] | text editor |
:) | |
btiffin 25-Jun-2007 [542] | It's a binary, but I've extracted it. Thanks for the hint. |
Chris 25-Jun-2007 [543x2] | Depends -- do you want to retain vector artwork? If not, you could rasterise it in Photoshop, GIMP, Seashore or other bitmap editors. |
Ah, you got it... | |
btiffin 25-Jun-2007 [545] | Well, I hacked it...and have no clue if what I did would work the next time :) |
Graham 25-Jun-2007 [546x2] | postscript and pdf are similar formats and store images as either binary or as text. |
unless it's one of those compressed pdf formats | |
older newer | first last |