1. Create pdf documents on the fly

Hi

Does anyone know the best way to create pdf documents on the fly from euphoria?

I've tried searching pdf but nothing comes up.

Would really appreciate anybody's help.

new topic     » topic index » view message » categorize

2. Re: Create pdf documents on the fly

bizapps said...

Hi

Does anyone know the best way to create pdf documents on the fly from euphoria?

I've tried searching pdf but nothing comes up.

Would really appreciate anybody's help.

Yes but you won't like it.

Get http://html2fpdf.sourceforge.net and then write out an HTML file from Euphoria and then run html2fpdf on it.

Or, write out the HTML and put it online via a web server, then convert it to PDF using http://www.htm2pdf.co.uk/

Or, install a PDF printer and then print your document to that PDF creator.

These methods all avoid the difficult task of handling the PDF file format directly from inside of Euphoria. Managing this functionality using only Euphoria code is possible, and certainly no harder than doing it in C or PHP, but afaik no one has tackled this problem yet.

new topic     » goto parent     » topic index » view message » categorize

3. Re: Create pdf documents on the fly

If I am right in that you want to generate PDF files from a program output, then you can print directly to a PDF file using a program like this:

http://freepdf-xp.en.softonic.com/

It's not one I have used but I have used one called PDFCreator. It is probably this one on SourceForge:

http://sourceforge.net/projects/pdfcreator/

I find my PDFCreator perfect for generating PDF files directly. I'm just quite sure where it came from, though I have the install file.

new topic     » goto parent     » topic index » view message » categorize

4. Re: Create pdf documents on the fly

Thanks for all your advice guys, but there's nothing there I really like.

Years ago I used to use Report Manager with Visual Basic. Report Manager uses an ocx for displaying reports and converting to pdf and other formats. When I went back and had a look at it again it actually has exported functions in the ocx as well as the activex server.

I've created myself a little wrapper and it works great from euphoria.

So not only can I write pdfs on the fly but I can prepare reports and populate them on the fly as well.

new topic     » goto parent     » topic index » view message » categorize

5. Re: Create pdf documents on the fly

That sounds great! Could you make a general app that demos/uses it, and upload it to the archive for us all? smile

Dan

new topic     » goto parent     » topic index » view message » categorize

6. Re: Create pdf documents on the fly

Can I second that? I'd love to see how you generate PDFs on the fly ... a demo would be very instructive.

new topic     » goto parent     » topic index » view message » categorize

7. Re: Create pdf documents on the fly

here is some demo of creating pdf documents by using a add-on. you may create new single-page or multipage PDF document programmatically. after creating, you can have an online pdf viewer to process all you pdf documents.

new topic     » goto parent     » topic index » view message » categorize

8. Re: Create pdf documents on the fly

I've created a very basic (only wrapped a few routines) wrapper of libharu (a pdf generator library)

You can download it here: https://bitbucket.org/gbonvehi/libharu4eu

It only wraps a minimal set of functions in order to make the demo run. I'll try to expand it in the future but I don't have too much time right now, just wanted to demostrate it could be done in Euphoria.

If anyone wants to expand it, send me the changes and i'll integrate them.

Cheers,
Guillermo

Edit: I've just realized this thread was from 2010, well, hope anyone still needs to create PDFs :)

new topic     » goto parent     » topic index » view message » categorize

9. Re: Create pdf documents on the fly

Hi

This is in the archive

www.rapideuphoria.com/txt2pdf.zip

It takes minimal work to convert it to an include file, and probably little work to extend its capabilities.

Chris

new topic     » goto parent     » topic index » view message » categorize

10. Re: Create pdf documents on the fly

Other people are using a free C library to convert from Text to PDF.
It will not extract text from PDF and can't be used for editing PDF documents.

http://libharu.org/

new topic     » goto parent     » topic index » view message » categorize

11. Re: Create pdf documents on the fly

Just uploaded a cross-platform library wrapper wkhtmltopdf
(headless webkit browser) to rapideuphoria archive.

Allows for generation of pdf files/books from remote urls
and local HTML pages.

Supports javascript embedded in HTML pages and provides live
links in generated pdf files.

Should appear on archive main page in next few hours.

new topic     » goto parent     » topic index » view message » categorize

Search



Quick Links

User menu

Not signed in.

Misc Menu