pdf-maker example
[1/11] from: rebol665::ifrance::com at: 2-Nov-2002 12:43
Hi Rebollers,
I am using Grabielle's pdf-maker with great satisfaction. However I am at a
stage where I have some functions to write in order to ease the work ...
unless someone has already done something ?
Ciao
Patrick
__________________________________________________________________
Haut Débit: Modem offert soit 150,92 euros remboursés sur le Pack eXtense de Wanadoo
!
Profitez du Haut Débit à partir de 30 euros/mois : http://www.ifrance.com/_reloc/w
[2/11] from: g:santilli:tiscalinet:it at: 2-Nov-2002 13:50
Hi Patrick,
On Saturday, November 2, 2002, 12:43:02 PM, you wrote:
p> I am using Grabielle's pdf-maker with great satisfaction. However I am at a
p> stage where I have some functions to write in order to ease the work ...
p> unless someone has already done something ?
I'm not sure I understand what you mean... What do you need
exactly?
Regards,
Gabriele.
--
Gabriele Santilli <[g--santilli--tiscalinet--it]> -- REBOL Programmer
Amigan -- AGI L'Aquila -- REB: http://web.tiscali.it/rebol/index.r
[3/11] from: rebol665:ifrance at: 2-Nov-2002 17:01
Hi Gabrielle,
First, there was no criticism of pdf-maker in my mind and the existing
documentation is quite good. My actual goal is pretty simple : generate two
box with text inside. It is almost done with some 'reduce and
'"compose/deep. What is bothering me is also the pdf coordinate. I am used
to think about a page layout with the vertical axe starting at 0,0 in the
upper left corner not the bottom right corner.
So I had the idea of making some new functions working with "my"
coordinates, avoiding the need to 'reduce or 'compose blocks. And as I am a
lazy boy, I was just wondering that it was possible that somebody had
already made some of these functions.
Ciao
Pat
----- Original Message -----
From: "Gabriele Santilli" <[g--santilli--tiscalinet--it]>
To: "pat665" <[rebol-list--rebol--com]>
Sent: Saturday, November 02, 2002 1:50 PM
Subject: [REBOL] Re: pdf-maker example
> Hi Patrick,
>
> On Saturday, November 2, 2002, 12:43:02 PM, you wrote:
>
> p> I am using Grabielle's pdf-maker with great satisfaction. However I am
at a
> p> stage where I have some functions to write in order to ease the work
...
> p> unless someone has already done something ?
> I'm not sure I understand what you mean... What do you need
<<quoted lines omitted: 10>>
> __________________________________________________________________
> Haut Débit: Modem offert soit 150,92 euros remboursés sur le Pack eXtense
de Wanadoo !
> Profitez du Haut Débit à partir de 30 euros/mois :
http://www.ifrance.com/_reloc/w
__________________________________________________________________
Haut Débit: Modem offert soit 150,92 euros remboursés sur le Pack eXtense de Wanadoo
!
Profitez du Haut Débit à partir de 30 euros/mois : http://www.ifrance.com/_reloc/w
[4/11] from: g:santilli:tiscalinet:it at: 2-Nov-2002 18:26
Hi Patrick,
On Saturday, November 2, 2002, 5:01:34 PM, you wrote:
p> box with text inside. It is almost done with some 'reduce and
p> '"compose/deep.
By the way, I hope, some day, to release a new version of the PDF
Maker with a brand new dialect (probably 99% compatible with the
old one, at least) that removes the need of composing. It should
also add error reporting etc.
p> What is bothering me is also the pdf coordinate. I am used
p> to think about a page layout with the vertical axe starting at 0,0 in the
p> upper left corner not the bottom right corner.
You could apply a translation to get the origin on the top left
corner, and a scaling of -1 on the y axis; unfortunately, this
would affect text rendering...
Regards,
Gabriele.
--
Gabriele Santilli <[g--santilli--tiscalinet--it]> -- REBOL Programmer
Amigan -- AGI L'Aquila -- REB: http://web.tiscali.it/rebol/index.r
[5/11] from: rebol665:ifrance at: 2-Nov-2002 21:09
Hi Gabrielle,
If you are up to publish a new version, may I suggest you to implement a 'do
in layout-pdf, like the do in the view layout. I have just finished a little
thing with pdf-maker and a 'do would have made my code simpler.
Ciao
Pat
----- Original Message -----
From: "Gabriele Santilli" <[g--santilli--tiscalinet--it]>
To: "pat665" <[rebol-list--rebol--com]>
Sent: Saturday, November 02, 2002 6:26 PM
Subject: [REBOL] Re: pdf-maker example
> Hi Patrick,
> On Saturday, November 2, 2002, 5:01:34 PM, you wrote:
<<quoted lines omitted: 6>>
> p> What is bothering me is also the pdf coordinate. I am used
> p> to think about a page layout with the vertical axe starting at 0,0 in
the
> p> upper left corner not the bottom right corner.
> You could apply a translation to get the origin on the top left
<<quoted lines omitted: 11>>
> __________________________________________________________________
> Haut Débit: Modem offert soit 150,92 euros remboursés sur le Pack eXtense
de Wanadoo !
> Profitez du Haut Débit à partir de 30 euros/mois :
http://www.ifrance.com/_reloc/w
__________________________________________________________________
Haut Débit: Modem offert soit 150,92 euros remboursés sur le Pack eXtense de Wanadoo
!
Profitez du Haut Débit à partir de 30 euros/mois : http://www.ifrance.com/_reloc/w
[6/11] from: g:santilli:tiscalinet:it at: 3-Nov-2002 16:18
Hi Patrick,
On Saturday, November 2, 2002, 9:09:57 PM, you wrote:
p> If you are up to publish a new version, may I suggest you to implement a 'do
p> in layout-pdf, like the do in the view layout. I have just finished a little
p> thing with pdf-maker and a 'do would have made my code simpler.
I think I'll add all of REBOL's iterative functions. I.e. you will
be able to write:
foreach [x1 y1 x2 y2] my-block [
line x1 y1 x2 y2
]
etc. I have to think more about them, to see what is useful and
what is not, but I will definitely add them.
Regards,
Gabriele.
--
Gabriele Santilli <[g--santilli--tiscalinet--it]> -- REBOL Programmer
Amigan -- AGI L'Aquila -- REB: http://web.tiscali.it/rebol/index.r
[7/11] from: jan:skibinski:sympatico:ca at: 3-Nov-2002 11:28
Hi Gabriele,
Have you considered combining your pdf-maker
with Gavin's xml-parser/xml-object? A good idea
what the two could do together can be found in
the iText Java PDF library
http://www.lowagie.com/iText/
One does not need to have Java installed to browse
through the excellent documentation above. All one needs
is the Acrobat reader. Of particular interest is chapter 7
and especially the piece about tagmaps, which allow
mapping of custom business tags into document-oriented tags
of the iText library. Very little effort is required to make
tagmap.xml and just few lines of java driver will drive
the tagmap and a business xml file to produce quite
decently looking PDF books. And RTF and HTML
output at the same time if one wishes to - although they
will not look as good as PDF unless one would
adjust the tagmap file to better match the RTF stuff.
The tagmap approach is not as generic as XSLT,
but consider this: you can bypass XSLT and FOP,
so instead of using three different engines you can
just stick with one. A rebol engine!
Several years ago I wrote a package "fun-pdf"
with scripts written in Ocaml, Haskell and Q
to interface to C PDF library "pdflib". Among other
things the scripts provided convenience functions
for extracting and processing pieces of external text and
image files. In hindsite, I would have done much better
if I provided a support for XML instead.
Just a food for thought,
Jan
Gabriele Santilli wrote:
[8/11] from: g:santilli:tiscalinet:it at: 3-Nov-2002 18:12
Hi Jan,
On Sunday, November 3, 2002, 5:28:23 PM, you wrote:
JS> Have you considered combining your pdf-maker
JS> with Gavin's xml-parser/xml-object? A good idea
JS> what the two could do together can be found in
JS> the iText Java PDF library
JS> http://www.lowagie.com/iText/
I don't think I have the free time to do so, currently... I hope
to have the next version of the PDF Maker much better documented
so that it will be easier for other people to do things like that.
Regards,
Gabriele.
--
Gabriele Santilli <[g--santilli--tiscalinet--it]> -- REBOL Programmer
Amigan -- AGI L'Aquila -- REB: http://web.tiscali.it/rebol/index.r
[9/11] from: bry:itnisk at: 4-Nov-2002 10:25
Jan wrote:
JS> Have you considered combining your pdf-maker
JS> with Gavin's xml-parser/xml-object?
If he went ahead and did that he might as well go ahead and turn it into
a full-fledged xsl-fo processor, buy an encap license or two and sell it
for the big bucks. :)
[10/11] from: g:santilli:tiscalinet:it at: 4-Nov-2002 11:33
Hi Bryan,
On Monday, November 4, 2002, 10:25:09 AM, you wrote:
b> If he went ahead and did that he might as well go ahead and turn it into
b> a full-fledged xsl-fo processor, buy an encap license or two and sell it
b> for the big bucks. :)
That sounds like a good idea, indeed... ;-)
Regards,
Gabriele.
--
Gabriele Santilli <[g--santilli--tiscalinet--it]> -- REBOL Programmer
Amigan -- AGI L'Aquila -- REB: http://web.tiscali.it/rebol/index.r
[11/11] from: bry:itnisk at: 4-Nov-2002 15:28
>That sounds like a good idea, indeed... ;-)
Well I'm pretty well acquainted with xsl-fo and the different processors
out there, especially weaknesses that you could maybe take advantage of,
so if you decide to do something like that you can contact me for info,
etc.
Notes
- Quoted lines have been omitted from some messages.
View the message alone to see the lines that have been omitted