Generate PDF files

I have a need to generate PDF files within a web application. It would probably be generated from a thread not associated to a particular session, and sent via email to some user(s).

I would prefer to not use a plugin, if possible.

Any ideas out there?

Depends on how much functionality you need in the writing of the PDF
There are some pure Xojo classes etc that let thou write PDF’s
There’s been a few discussions
https://forum.xojo.com/6205-pdf-class
https://forum.xojo.com/3507-printing-reports
https://forum.xojo.com/6384-bkeeney-shorts
https://forum.xojo.com/3567-xojo-web-pdf/0#p25914

I would suggest DynaPDF Plugin. Currently on sale.

If you need font embedding, reference same image on multiple pages or need table based layout, you probably look for our plugin.

Ehm,
Actually, please, don’t judge me, but for writing a PDF file all you need a notepad in Windows and anything else same simple on any other system. Adobe has full specification available for download, it’s easy enough to understand.

Because PDF — nothing more than scripting language and PDF as a file is just human readable script being interpreted by a software client. I’ll tell you more: you will a lot for your needs while just read a few chapters of specification.

And the only reason I’m not planning to buy mentioned DynaPDF, because I do not need all PDF-language to perform, what I need.

I know, I’m a very newbie in programming, but guys, sometimes it IS much more painless to write something on your own…

  • You will learn a lot for your needs )))

And sometimes, reinventing the wheel is a futile exercise…

))))
Yes, you are right, actually I just wanted to tell that if you need only a couple of PDF procedures, you do not need a full implementation.

And it is just as I see the world: since the childhood I’m not satisfied with talking bear, I need to know how does it talk?

))))
And sorry, I am a very-very-very newbie, I just don’t see things as professionals do, yet.
))

[quote=54983:@Denis Volin]))))
Yes, you are right, actually I just wanted to tell that if you need only a couple of PDF procedures, you do not need a full implementation. [/quote]

Look at https://forum.xojo.com/6205-pdf-class where Dave S was exactly doing that. Maybe now his PDF class is complete and it will be what you need.

PS : In case you did not know, Teddy bears talk because they have been created by Santa in his North Pole factory :wink:

Oh, yes, you’re right! But again, then how does that North Pole factory work?

And I assume we stop talking about Teddy bears and other stuff in here, unless it is tied up to the PDF )))

And I’ve overseen the mentioned forum topic for the pdf class, and I need to thank you and @Norman Palardy for the links to it; because it has much more to think about, while implementing it on my own, yes, still keep that idea. But really thank you, I mean it.

[quote=54709:@Jorge Duran-Ballen]I have a need to generate PDF files within a web application. It would probably be generated from a thread not associated to a particular session, and sent via email to some user(s).

I would prefer to not use a plugin, if possible.

Any ideas out there?[/quote]
I’d certainly check out whats installable on whatever system your using as there are some decent command line tools to do this
OS X has textutil which can convert documents from one format to another
And it has cupsfilter which, by default, generates PDF’s from a range of input formats

Hi, if you are famailar with vb programming codes, I can offer you these sample pdf creating methods within .net framework, you can directly call these apis to program a pdf generating project.

Private Sub New(pageNum As Integer)
End Sub

[quote=54709:@Jorge Duran-Ballen]I have a need to generate PDF files within a web application. It would probably be generated from a thread not associated to a particular session, and sent via email to some user(s).
I would prefer to not use a plugin, if possible.
Any ideas out there?[/quote]

Your Web application will be executed in a Linux environment. Most of the solutions discussed above are inadequate :confused:

See http://terokarvinen.com/2011/print-pdf-from-command-line-cups-pdf-lpr-p-pdf for a relevant possible solution.