1. Create pdf documents on the fly
- Posted by bizapps Jun 28, 2010
- 2163 views
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.
2. Re: Create pdf documents on the fly
- Posted by jimcbrown (admin) Jun 28, 2010
- 2188 views
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.
3. Re: Create pdf documents on the fly
- Posted by AndyDrummond Jul 01, 2010
- 2076 views
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.
4. Re: Create pdf documents on the fly
- Posted by bizapps Jul 01, 2010
- 1965 views
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.
5. Re: Create pdf documents on the fly
- Posted by DanM Jul 02, 2010
- 1918 views
That sounds great! Could you make a general app that demos/uses it, and upload it to the archive for us all?
Dan
6. Re: Create pdf documents on the fly
- Posted by AndyDrummond Jul 02, 2010
- 1952 views
Can I second that? I'd love to see how you generate PDFs on the fly ... a demo would be very instructive.
7. Re: Create pdf documents on the fly
- Posted by ablike Jul 10, 2013
- 1635 views
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.
8. Re: Create pdf documents on the fly
- Posted by gbonvehi Jul 10, 2013
- 1622 views
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 :)
9. Re: Create pdf documents on the fly
- Posted by ChrisB (moderator) Jul 10, 2013
- 1581 views
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
10. Re: Create pdf documents on the fly
- Posted by EUWX Jul 10, 2013
- 1601 views
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.
11. Re: Create pdf documents on the fly
- Posted by raseu Jul 13, 2013
- 1412 views
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.