Re: [fpc-pascal] Converting .doc and/or .html to .pdf

2011-01-28 Thread Marcos Douglas
On Fri, Jan 28, 2011 at 6:27 PM, Andreas Schneider  wrote:
> On Friday, January 28, 2011 15:52 Marcos Douglas wrote:
>>> You're right. The command line is more simple.
>>> Thanks for the tip, I will try this.
>
>> I have not found
>
> Since  you also mentioned that you need to access it from ASP, I guess
> that one might offer you the most flexibility:
> http://www.artofsolving.com/opensource/jodconverter
>
> ...  because you can run it as webservice. Or you can simply invoke it
> from commandline.

Yes, I think is easy to use. Thanks, I will see on next Monday, at work.


Marcos Douglas
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


Re: [fpc-pascal] Converting .doc and/or .html to .pdf

2011-01-28 Thread Andreas Schneider
On Friday, January 28, 2011 15:52 Marcos Douglas wrote:
>> You're right. The command line is more simple.
>> Thanks for the tip, I will try this.

> I have not found

Since  you also mentioned that you need to access it from ASP, I guess
that one might offer you the most flexibility:
http://www.artofsolving.com/opensource/jodconverter

...  because you can run it as webservice. Or you can simply invoke it
from commandline.

-- 
Best Regards,
Andreas

___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


Re: [fpc-pascal] Converting .doc and/or .html to .pdf

2011-01-28 Thread Marcos Douglas
On Fri, Jan 28, 2011 at 12:38 PM, Felipe Monteiro de Carvalho
 wrote:
> Another solution is that you could start a generic library for
> handling formatted text documents. It will certainly be harder, and
> take more time, but the end result will be much better and it won't
> require having OpenOffice installed (a rather huge thing to have as a
> dependency).
>
> We already have a spreadsheet library:
> http://wiki.lazarus.freepascal.org/FPSpreadsheet
>
> Something similar could be done for handling the class of formatted
> documents, like pdf, doc, html, etc.
>
> FPVectorial has support for PDF reading, but only from a vectorial
> drawing point of view, nevertheless it's code and documentation which
> explain the PDF format could be reused. I actually have documentation
> in portuguese about the PDF format.
> http://wiki.lazarus.freepascal.org/fpvectorial

Yes, that is a better solution for the future... unfortunately I have
not time so much to make this software. The plataform is Windows and
old ASP to make sites. I have to make a component to ASP call to make
this convert, HTML to PDF.

If exists a C lib, eg, facilitate my work.


Marcos Douglas
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


Re: [fpc-pascal] Converting .doc and/or .html to .pdf

2011-01-28 Thread Felipe Monteiro de Carvalho
Another solution is that you could start a generic library for
handling formatted text documents. It will certainly be harder, and
take more time, but the end result will be much better and it won't
require having OpenOffice installed (a rather huge thing to have as a
dependency).

We already have a spreadsheet library:
http://wiki.lazarus.freepascal.org/FPSpreadsheet

Something similar could be done for handling the class of formatted
documents, like pdf, doc, html, etc.

FPVectorial has support for PDF reading, but only from a vectorial
drawing point of view, nevertheless it's code and documentation which
explain the PDF format could be reused. I actually have documentation
in portuguese about the PDF format.
http://wiki.lazarus.freepascal.org/fpvectorial

-- 
Felipe Monteiro de Carvalho
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


Re: [fpc-pascal] Converting .doc and/or .html to .pdf

2011-01-28 Thread Marcos Douglas
On Sun, Jan 16, 2011 at 11:44 AM, Marcos Douglas  wrote:
> On Sat, Jan 15, 2011 at 7:39 PM, Andreas Schneider  wrote:
>> On Saturday, January 15, 2011 22:18 Marcos Douglas wrote:
>>> Hi,
>>> There are libs, in Pascal,  to convert .doc and/or .html files to .pdf?
>>
>> I   don't   think   so,   but  I  would  suggest  to  use  a  headless
>> OpenOffice.org/LibreOffice  for  the  conversion. Using the Pascal UNO
>> Bridge  you  may even be able to control it from a Pascal application,
>> but  for a simple conversion it's probably a lot easier to just invoke
>> it via commandline.
>
> You're right. The command line is more simple.
> Thanks for the tip, I will try this.

I have not found
I'm looking in http://api.openoffice.org/
Is it mandatory use UNO bindings?

I want do the same of this project http://html2pdf.fr/


Marcos Douglas
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


Re: [fpc-pascal] Converting .doc and/or .html to .pdf

2011-01-16 Thread Marcos Douglas
On Sat, Jan 15, 2011 at 7:39 PM, Andreas Schneider  wrote:
> On Saturday, January 15, 2011 22:18 Marcos Douglas wrote:
>> Hi,
>> There are libs, in Pascal,  to convert .doc and/or .html files to .pdf?
>
> I   don't   think   so,   but  I  would  suggest  to  use  a  headless
> OpenOffice.org/LibreOffice  for  the  conversion. Using the Pascal UNO
> Bridge  you  may even be able to control it from a Pascal application,
> but  for a simple conversion it's probably a lot easier to just invoke
> it via commandline.

You're right. The command line is more simple.
Thanks for the tip, I will try this.

Marcos Douglas
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


Re: [fpc-pascal] Converting .doc and/or .html to .pdf

2011-01-15 Thread Andreas Schneider
On Saturday, January 15, 2011 22:18 Marcos Douglas wrote:
> Hi,
> There are libs, in Pascal,  to convert .doc and/or .html files to .pdf?

I   don't   think   so,   but  I  would  suggest  to  use  a  headless
OpenOffice.org/LibreOffice  for  the  conversion. Using the Pascal UNO
Bridge  you  may even be able to control it from a Pascal application,
but  for a simple conversion it's probably a lot easier to just invoke
it via commandline.

-- 
Best Regards,
Andreas

___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


[fpc-pascal] Converting .doc and/or .html to .pdf

2011-01-15 Thread Marcos Douglas
Hi,
There are libs, in Pascal,  to convert .doc and/or .html files to .pdf?

Marcos Douglas
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal