[Pharo-project] Artefact - a PDF framework
Hi, I work actually on a PDF framework for Pharo. MCHttpRepository location: 'http://www.squeaksource.com/artefact' user: '' password: '' My project is in progress and many things are not finalized (no documentation, not enough unit tests, etc.). But, you can produce PDF documents with metadata, multiple page formats in a same document, draw tables, write text and paragraphs, play with colors and grey levels. If you test it, thanks for your remarks and suggestions. Best regards Olivier ;-) www.auverlot.fr
Hi Olivier, On Wed, Apr 25, 2012 at 10:15 AM, Olivier Auverlot <olivier.auverlot@gmail.com> wrote:
If you test it, thanks for your remarks and suggestions.
such a framework makes a lot of sense. Could you please create a few unit tests or a small web page with examples so everyone can get a glimpse of the API rapidly? Some examples for the Common Lisp equivalent are at: www.fractalconcept.com/asp/asdataQuQhZ0XhCuWs Best, -- Damien Cassou http://damiencassou.seasidehosting.st "Lambdas are relegated to relative obscurity until Java makes them popular by not having them." James Iry
Hi Damien, this is on my road map ;-) Some practical examples are in the Artefact-Demos category. Olivier Le 25 avr. 2012 à 10:18, Damien Cassou a écrit :
Hi Olivier,
On Wed, Apr 25, 2012 at 10:15 AM, Olivier Auverlot <olivier.auverlot@gmail.com> wrote:
If you test it, thanks for your remarks and suggestions.
such a framework makes a lot of sense. Could you please create a few unit tests or a small web page with examples so everyone can get a glimpse of the API rapidly? Some examples for the Common Lisp equivalent are at: www.fractalconcept.com/asp/asdataQuQhZ0XhCuWs
Best,
-- Damien Cassou http://damiencassou.seasidehosting.st
"Lambdas are relegated to relative obscurity until Java makes them popular by not having them." James Iry
Hi Olivier - is your project related to Christian's? http://www.esug.org/wiki/pier/Conferences/2011/Schedule-And-Talks/Pdf-in-Sma... On 25 April 2012 09:30, Olivier Auverlot <olivier.auverlot@gmail.com> wrote:
Hi Damien,
this is on my road map ;-)
Some practical examples are in the Artefact-Demos category.
Olivier
Le 25 avr. 2012 à 10:18, Damien Cassou a écrit :
Hi Olivier,
On Wed, Apr 25, 2012 at 10:15 AM, Olivier Auverlot <olivier.auverlot@gmail.com> wrote:
If you test it, thanks for your remarks and suggestions.
such a framework makes a lot of sense. Could you please create a few unit tests or a small web page with examples so everyone can get a glimpse of the API rapidly? Some examples for the Common Lisp equivalent are at: www.fractalconcept.com/asp/asdataQuQhZ0XhCuWs
Best,
-- Damien Cassou http://damiencassou.seasidehosting.st
"Lambdas are relegated to relative obscurity until Java makes them popular by not having them." James Iry
Hi Francisco, No, it's another project. Best regards Olivier Le 25 avr. 2012 à 11:24, Francisco Garau a écrit :
Hi Olivier - is your project related to Christian's?
http://www.esug.org/wiki/pier/Conferences/2011/Schedule-And-Talks/Pdf-in-Sma...
On 25 April 2012 09:30, Olivier Auverlot <olivier.auverlot@gmail.com> wrote: Hi Damien,
this is on my road map ;-)
Some practical examples are in the Artefact-Demos category.
Olivier
Le 25 avr. 2012 à 10:18, Damien Cassou a écrit :
Hi Olivier,
On Wed, Apr 25, 2012 at 10:15 AM, Olivier Auverlot <olivier.auverlot@gmail.com> wrote:
If you test it, thanks for your remarks and suggestions.
such a framework makes a lot of sense. Could you please create a few unit tests or a small web page with examples so everyone can get a glimpse of the API rapidly? Some examples for the Common Lisp equivalent are at: www.fractalconcept.com/asp/asdataQuQhZ0XhCuWs
Best,
-- Damien Cassou http://damiencassou.seasidehosting.st
"Lambdas are relegated to relative obscurity until Java makes them popular by not having them." James Iry
Hi Olivier. Great have a PDF framework! I am a user of this from now :) I saw a little the code, it is very clear. And I send you some comments: * In PDFFormat>>setPortrait and >>setLandscape maybe #defaultSize should be used instead of #size to get size, because otherwise, two consecutive #setLandscape result in a portrait size. setPortrait "Set the page in portrait orientation" self portrait: true. self size: (self defaultSize x) @ (self defaultSize y). * In DFDemos>>datatableTest fix "pdfdoc setLandscape" as "pdfdoc format setLandscape". * Extract '/Users/olivier/Desktop/' from all methods of PDFDemos in a method, so I have to modify only one, Please! ;) Finally, thank you for share this work with us. Regards. El 25 de abril de 2012 06:42, Olivier Auverlot <olivier.auverlot@gmail.com>escribió:
Hi Francisco,
No, it's another project.
Best regards Olivier
Le 25 avr. 2012 à 11:24, Francisco Garau a écrit :
Hi Olivier - is your project related to Christian's?
http://www.esug.org/wiki/pier/Conferences/2011/Schedule-And-Talks/Pdf-in-Sma...
On 25 April 2012 09:30, Olivier Auverlot <olivier.auverlot@gmail.com>wrote:
Hi Damien,
this is on my road map ;-)
Some practical examples are in the Artefact-Demos category.
Olivier
Le 25 avr. 2012 à 10:18, Damien Cassou a écrit :
Hi Olivier,
On Wed, Apr 25, 2012 at 10:15 AM, Olivier Auverlot <olivier.auverlot@gmail.com> wrote:
If you test it, thanks for your remarks and suggestions.
such a framework makes a lot of sense. Could you please create a few unit tests or a small web page with examples so everyone can get a glimpse of the API rapidly? Some examples for the Common Lisp equivalent are at: www.fractalconcept.com/asp/asdataQuQhZ0XhCuWs
Best,
-- Damien Cassou http://damiencassou.seasidehosting.st
"Lambdas are relegated to relative obscurity until Java makes them popular by not having them." James Iry
and you can use "transposed" for more elegantly :)
* In PDFFormat>>setPortrait and >>setLandscape maybe #defaultSize should be used instead of #size to get size, because otherwise, two consecutive #setLandscape result in a portrait size.
setPortrait "Set the page in portrait orientation" self portrait: true. self size: (self defaultSize x) @ (self defaultSize y).
setLandscape "Set the page in landscape orientation" self portrait: false. self size: self defaultSize transposed Regards.
Hi Gastón, Thanks for your remarks. I need of feedback for the road map. Artefact is like a baby ;-) Best regards Olivier
and you can use "transposed" for more elegantly :)
* In PDFFormat>>setPortrait and >>setLandscape maybe #defaultSize should be used instead of #size to get size, because otherwise, two consecutive #setLandscape result in a portrait size.
setPortrait "Set the page in portrait orientation" self portrait: true. self size: (self defaultSize x) @ (self defaultSize y).
setLandscape "Set the page in landscape orientation" self portrait: false. self size: self defaultSize transposed
Regards.
We really want to generate report for Moose so we are really interested by this effort. Stef On Apr 25, 2012, at 10:18 AM, Damien Cassou wrote:
Hi Olivier,
On Wed, Apr 25, 2012 at 10:15 AM, Olivier Auverlot <olivier.auverlot@gmail.com> wrote:
If you test it, thanks for your remarks and suggestions.
such a framework makes a lot of sense. Could you please create a few unit tests or a small web page with examples so everyone can get a glimpse of the API rapidly? Some examples for the Common Lisp equivalent are at: www.fractalconcept.com/asp/asdataQuQhZ0XhCuWs
Best,
-- Damien Cassou http://damiencassou.seasidehosting.st
"Lambdas are relegated to relative obscurity until Java makes them popular by not having them." James Iry
For our web applications a PDF generator is a crucial part too. There were AFAIK several attempts to build such a framework in Smalltalk (SPDF, ...) but in the end none of these became feature-rich and/or powerful. I really like the new effort. Due to the past experience I am skeptical if such a framework really makes sense but I would love to be convinced from the opposite. Powerful PDF generators such as Apache FOP (based on standardised XSL:fo) face what a feature-complete framework would need to implement (area model with relative text flow, image processing, typography including font embedding, formatting, ...). Olivier, this would be my wish list BTW and very cool! ;) For those who cannot wait I propose to use Apache FOP (http://xmlgraphics.apache.org/fop) for PDF generation. Although built with Java (slow, requires a lot of ressources, etc.) it can be used as black box (servlet) fed using XML and XSL:fo data over a Unix socket. Most of our applications are using this solution at the moment as it offers a powerful solution for professional pdf documents. Ugly but works like a charm since years here... Cheers, Chris Am 25.04.12 11:23, schrieb Stéphane Ducasse:
We really want to generate report for Moose so we are really interested by this effort.
Stef
On Apr 25, 2012, at 10:18 AM, Damien Cassou wrote:
Hi Olivier,
On Wed, Apr 25, 2012 at 10:15 AM, Olivier Auverlot <olivier.auverlot@gmail.com> wrote:
If you test it, thanks for your remarks and suggestions.
such a framework makes a lot of sense. Could you please create a few unit tests or a small web page with examples so everyone can get a glimpse of the API rapidly? Some examples for the Common Lisp equivalent are at: www.fractalconcept.com/asp/asdataQuQhZ0XhCuWs
Best,
-- Damien Cassou http://damiencassou.seasidehosting.st
"Lambdas are relegated to relative obscurity until Java makes them popular by not having them." James Iry
I've adopted the poor man's solution: 1. Output my report in HTML/CSS. 2. Use wkhtmltopdf (http://code.google.com/p/wkhtmltopdf/) to convert it to PDF. The drawback is obviously the call to OSProcess but it gets the job done. On 25/04/12 06:06, Christoph Wysseier wrote:
For our web applications a PDF generator is a crucial part too. There were AFAIK several attempts to build such a framework in Smalltalk (SPDF, ...) but in the end none of these became feature-rich and/or powerful.
I really like the new effort. Due to the past experience I am skeptical if such a framework really makes sense but I would love to be convinced from the opposite. Powerful PDF generators such as Apache FOP (based on standardised XSL:fo) face what a feature-complete framework would need to implement (area model with relative text flow, image processing, typography including font embedding, formatting, ...).
Olivier, this would be my wish list BTW and very cool! ;)
For those who cannot wait I propose to use Apache FOP (http://xmlgraphics.apache.org/fop) for PDF generation. Although built with Java (slow, requires a lot of ressources, etc.) it can be used as black box (servlet) fed using XML and XSL:fo data over a Unix socket. Most of our applications are using this solution at the moment as it offers a powerful solution for professional pdf documents. Ugly but works like a charm since years here...
Cheers, Chris
Am 25.04.12 11:23, schrieb Stéphane Ducasse:
We really want to generate report for Moose so we are really interested by this effort.
Stef
On Apr 25, 2012, at 10:18 AM, Damien Cassou wrote:
Hi Olivier,
On Wed, Apr 25, 2012 at 10:15 AM, Olivier Auverlot <olivier.auverlot@gmail.com> wrote:
If you test it, thanks for your remarks and suggestions.
such a framework makes a lot of sense. Could you please create a few unit tests or a small web page with examples so everyone can get a glimpse of the API rapidly? Some examples for the Common Lisp equivalent are at: www.fractalconcept.com/asp/asdataQuQhZ0XhCuWs
Best,
-- Damien Cassou http://damiencassou.seasidehosting.st
"Lambdas are relegated to relative obscurity until Java makes them popular by not having them." James Iry
-- http://tulipemoutarde.be CA: +1 778 558 3225 BE: +32 65 709 131
Hi, if you'd like any help with fonts and images I can assist. Perviously I've implemented those things on top of SPDF. Regards, Gary ----- Original Message ----- From: Olivier Auverlot To: Pharo-project@lists.gforge.inria.fr Sent: Wednesday, April 25, 2012 9:15 AM Subject: [Pharo-project] Artefact - a PDF framework Hi, I work actually on a PDF framework for Pharo. MCHttpRepository location: 'http://www.squeaksource.com/artefact' user: '' password: '' My project is in progress and many things are not finalized (no documentation, not enough unit tests, etc.). But, you can produce PDF documents with metadata, multiple page formats in a same document, draw tables, write text and paragraphs, play with colors and grey levels. If you test it, thanks for your remarks and suggestions. Best regards Olivier ;-) www.auverlot.fr
Hi Gary,
if you'd like any help with fonts and images I can assist. Perviously I've implemented those things on top of SPDF.
yes. Thanks ;-) I will add you to the team (me and you in fact)
Regards, Gary
----- Original Message ----- *From:* Olivier Auverlot <mailto:olivier.auverlot@gmail.com> *To:* Pharo-project@lists.gforge.inria.fr <mailto:Pharo-project@lists.gforge.inria.fr> *Sent:* Wednesday, April 25, 2012 9:15 AM *Subject:* [Pharo-project] Artefact - a PDF framework
Hi,
I work actually on a PDF framework for Pharo.
MCHttpRepository location: 'http://www.squeaksource.com/artefact' <http://www.squeaksource.com/artefact%27> user: '' password: ''
My project is in progress and many things are not finalized (no documentation, not enough unit tests, etc.). But, you can produce PDF documents with metadata, multiple page formats in a same document, draw tables, write text and paragraphs, play with colors and grey levels.
If you test it, thanks for your remarks and suggestions.
Best regards Olivier ;-) www.auverlot.fr <http://www.auverlot.fr>
participants (8)
-
Christoph Wysseier -
Damien Cassou -
Francisco Garau -
Francois Stephany -
Gary Chambers -
Gastón Dall' Oglio -
Olivier Auverlot -
Stéphane Ducasse