World: r3wp
[PDF-Maker] discuss Gabriele's pdf-maker
older newer | first last |
Anton 11-Sep-2006 [348x4] | As soon as you said that, I thought of a default threshold cell size which decides between splitting and moving to next page. And then this can be overridden by the user, who can move the threshold between 0% and 100%, 0% indicating always split, and 100% indicating always move. |
That's not a nice problem. :-( I think if the user has some control of the variables (eg. maybe threshold), then they can influence what happens there. | |
Perhaps certain cells can be set to "never split" ? | |
(or certain rows) | |
Gabriele 11-Sep-2006 [352] | that is possible using penalties. |
Anton 11-Sep-2006 [353] | I think that might be the simple answer, actually. It is only when the software makes a blunder with intelligent splitting that it becomes a problem. If the user can force a row to always remain together that would solve most of those problems. |
Gabriele 11-Sep-2006 [354x3] | a paragraph of two lines already has a big penalty for being split. so generally it is kept together. |
basically you're saying: either you allow vertical alignment, or cell splitting. | |
which is one possible solution. | |
Anton 11-Sep-2006 [357] | (Ok, so the algorithm looks for the lowest penalties first.) |
Gabriele 11-Sep-2006 [358] | the algorithm produces the layout with the least total demerits. |
Anton 11-Sep-2006 [359] | Yes, I think it will be the easiest and simplest solution. |
Gabriele 11-Sep-2006 [360] | (in some cases it doesn't, because it would require too much time, but the user decides this, by setting the tolerance) |
Anton 11-Sep-2006 [361] | (That's not to say people won't be looking for more complex interactions, but I think the simplest way solves most complaints the quickest.) |
Gabriele 11-Sep-2006 [362] | ok, i will think more about the problem (still hope to find some kind of nice solution), and see what others think too. |
Anton 11-Sep-2006 [363] | Cool, good luck. |
[unknown: 9] 11-Sep-2006 [364] | What do the current LaTeX to DPF programs do? |
Geomol 11-Sep-2006 [365] | Reichart, I'm still learning about TeX, but I'll guess, LaTeX to PDF take output from LaTeX (a TeX document) and convert it to the PDF format. To see output from LaTeX, you still need a TeX engine to view the document in the final form. Convert it to PDF, and you just need a PDF viewer. |
Gabriele 11-Sep-2006 [366x2] | About tables? TeX only handles very simple tables. Absolutely not enough to get QML tables there. |
(you can do almost everything with TeX by using tricks, but you basically need to layout the table manually. it is not able to do that automatically - something that we need to do instead.) | |
[unknown: 9] 11-Sep-2006 [368] | That was what I figured. |
Gabriele 15-Sep-2006 [369x2] | update: added preliminary table support. |
(the table dialect is still very basic, just for testing. table layout seems to work well, uses the total-fit algorithm and should create optimal layouts in most usual cases. there are boundary cases where it can fail, but i hope we won't need to worry about them. check test.pdf for an example of a table.) | |
Louis 16-Sep-2006 [371x2] | Somehow I lost the link to the PDF-Maker test site. Would someone please post it. |
For whatever it is worth, Gabriele, I use PDF-Maker regularly. It is core to some of my most important scripts. So, I very much appreciate your work. | |
[unknown: 9] 16-Sep-2006 [373] | Louis, what is your input lanaguge for PDFMaker? |
Louis 16-Sep-2006 [374] | Currently only English. But I'm needing to print Greek, Indonesian, and English mixed on the same page. Also, Hebrew, Indonesian, English on the same page. To be more specific, a line of Greek, then a line of Indonesian, then a line of English, then back to a line of Greek, and so on. |
Gabriele 16-Sep-2006 [375x3] | http://www.colellachiara.com/soft/PDFM2 |
update: added embedded tables (i.e. tables between paragraphs) | |
this also means that you can have a table inside a table cell - not tested yet, but maybe it works. ;) | |
Anton 16-Sep-2006 [378] | I like the cautious optimism :) Looking good. |
[unknown: 9] 16-Sep-2006 [379] | LOL, I meant as in HTML, MakeDoc, etc. |
Gabriele 16-Sep-2006 [380] | reichart, i'm pretty sure he's using the pdf maker dialect directly. |
[unknown: 9] 17-Sep-2006 [381] | Ah. What is it? I have not played with PDF Maker |
Gabriele 18-Sep-2006 [382x3] | it's much lower level than MD or QML. It's a REBOL dialect, not a ML. |
update: text colors, fixed table parsing bug | |
i have tested table inside table cell, it works fine. (see test.pdf) | |
Anton 18-Sep-2006 [385] | Cool. Getting better. |
Gabriele 18-Sep-2006 [386] | update: table options |
Gabriele 19-Sep-2006 [387x3] | update: graphic commands, cell decorations |
(cell decorations is a superset of table borders, cell background etc) | |
see test.pdf | |
Anton 20-Sep-2006 [390x2] | http://www.colellachiara.com/soft/PDFM2/test.pdf |
Funny looking table borders ! :) | |
Gabriele 20-Sep-2006 [392] | you can just use any graphics for cells. for example QML can produce boxes with rounded corners and shadows. |
eFishAnt 21-Sep-2006 [393x2] | a quick scan here ... I do not see anything for taking a .pdf and converting it to something like an image or some markup. Does anyone know of something that converts a .pdf to generic postscript (like for GSView) or to convert to native REBOL format? Thanks. |
A way to convert content, especially graphic from .pdf to something useful. | |
Alan 21-Sep-2006 [395] | photoshop will strip out graphics files if thats what you need |
eFishAnt 21-Sep-2006 [396x2] | so I can load a .pdf and make a high res bitmap? |
found http://www.pstoedit.net/pstoeditwhich can do vector graphics...maybe this will help...and some point would be cool to do these in REBOL. | |
older newer | first last |