Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 2012-08

Merging of PDF files

15 messages · 11 people · –

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

zeljko
to Graeme Geldenhuys
Graeme Geldenhuys wrote 5 lines
On 1 August 2012 11:13, zeljko wrote: > Anyone knows is there any api which can do merging of multiple pdf files > ? Have you tried Google yet? Enter the term: merging pdf files

Yes, there are various apps which can do that, but I've asked about some api/component which can be included into application.

zeljko
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20120801/dfdbdcb7/attachment.html>

Reply by email

Michael Schnell
to zeljko
zeljko wrote 6 lines
Yes, there are various apps which can do that, but I've asked about some api/component which can be included into application.

I once tried some of them. Most simply don't work (being printers to PDF files) and some installed nasty addware stuff. I gave up at that time.

Maybe you could try to install FinePrint (which I know works fine, but supposedly Windows-only), have it collect the print output of printed PDF files and have FinePrint print to a PDF printer.

-Michael

Reply by email

Reinier Olislagers
to Michael Schnell
Michael Schnell wrote 9 lines
On 08/01/2012 02:54 PM, zeljko wrote: > > > Yes, there are various apps which can do that, but I've asked about > some api/component which can be included into application. > > I once tried some of them. Most simply don't work (being printers to PDF files) and some installed nasty addware stuff. I gave up at that time.

One tool I use is GiosPDFMerge, which is open source and written in .Net but has no accessible API as far as I know.

Perhaps you could try to call pdftk using TProcess? It's open source and multi platform (at least Windows and Linux).

Regards,
Reinier

Reply by email

zeljko
to Reinier Olislagers
Reinier Olislagers wrote 13 lines
On 1-8-2012 16:10, Michael Schnell wrote: > On 08/01/2012 02:54 PM, zeljko wrote: >> Yes, there are various apps which can do that, but I've asked about >> some api/component which can be included into application. > > I once tried some of them. Most simply don't work (being printers to PDF > files) and some installed nasty addware stuff. I gave up at that time. One tool I use is GiosPDFMerge, which is open source and written in .Net but has no accessible API as far as I know. Perhaps you could try to call pdftk using TProcess? It's open source and multi platform (at least Windows and Linux).

Thanks, I've already found pdftk as best solution atm. PowerPDF cannot do that ?

zeljko
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20120801/99d84c90/attachment.html>

Reply by email

Graeme Geldenhuys
to zeljko: Yes, there are various apps which can do that, but I've asked about some api/component…

Hi,

zeljko wrote
Yes, there are various apps which can do that, but I've asked about some api/component which can be included into application.

Maybe some of them could be called via TProcess (eg: a console tool) with some parameters?

Regards, - Graeme - _______________________________________________ fpGUI - a cross-platform Free Pascal GUI toolkit http://fpgui.sourceforge.net

Reply by email

João Marcelo Vaz
to Graeme Geldenhuys: Maybe some of them could be called via TProcess (eg: a console tool) with some parameters?
Show quoted text 9 lines
On 1 August 2012 13:54, zeljko wrote: > > Yes, there are various apps which can do that, but I've asked about some > api/component which can be included into application. Maybe some of them could be called via TProcess (eg: a console tool) with some parameters?

You may use Ghostscript as a console tool.

http://www.linuxjournal.com/content/tech-tip-using-ghostscript-convert-and-combine-files

Reply by email

Mark Morgan Lloyd
to Reinier Olislagers: One tool I use is GiosPDFMerge, which is open source and written in .Net but has no…
Reinier Olislagers wrote
Perhaps you could try to call pdftk using TProcess? It's open source and multi platform (at least Windows and Linux).

I thought pdftk was a thin wrapper around a library... "pdftk uses a slightly modified iText Java library (http://itextpdf.sourceforge.net/) to read and write PDF. The author compiled this Java library using GCJ (http://gcc.gnu.org) so it could be linked with a front end written in C++. The pdftk home page is http://www.accesspdf.com/pdftk/."

There'd probably be a problem calling the backend library, if it uses Java or C++ OO techniques, from FPC- I think somebody in the list commented on this a few days ago. I wonder whether it would be possible to modify the pdftk program to be a library with a single entry point, callable as a Pascal function?

Mark Morgan Lloyd markMLl .AT. telemetry.co .DOT. uk [Opinions above are the author's, not those of his employers or colleagues]

Reply by email

Santiago A.
to Mark Morgan Lloyd

El mi?, 01-08-2012 a las 17:49 +0000, Mark Morgan Lloyd escribi?:

Show quoted text 11 lines
Reinier Olislagers wrote: > Perhaps you could try to call pdftk using TProcess? It's open source and > multi platform (at least Windows and Linux). I thought pdftk was a thin wrapper around a library... "pdftk uses a slightly modified iText Java library (http://itextpdf.sourceforge.net/) to read and write PDF. The author compiled this Java library using GCJ (http://gcc.gnu.org) so it could be linked with a front end written in C++. The pdftk home page is http://www.accesspdf.com/pdftk/."

Yes, pdftk a frontend of iText. iText is the swiss knife of PDF manipulation. Most tools related to PDF, including many PDF printers and .NET libraries use iText. It is the killer library of PDF tools.

But be careful, the license doesn't allow to use it in commercial products (that includes pdftk) http://itextpdf.com/terms-of-use/index.php. I wanted to use it and it is about 2500 eur developer license plus royalties for every copy deployed.

Nevertheless, old versions of iTextpdf (before 2010) allow something like LGPL: http://stackoverflow.com/questions/4321207/what-is-latest-version-of-itext-that-is-not-agpl http://itext-general.2136553.n4.nabble.com/Silent-license-change-td2156060.html

Santiago

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20120808/adcb69d5/attachment.html>

Reply by email

Santiago A.
to Michael Schneider

El mi?, 08-08-2012 a las 21:48 +0200, Michael Schneider escribi?:

Am Wednesday 08 August 2012 21:40:17 schrieb Santiago A.: > http://itextpdf.com/terms-of-use/index.php. hmmm seems plain GNU
From this page:

Buying such a license is mandatory as soon as you develop commercial activities distributing the iText software inside your product or deploying it on a network without disclosing the source code of your own applications under the AGPL license. These activities include: offering paid services to customers as an ASP, serving PDFs on the fly in the cloud or in a web application, shipping iText with a closed source product.

In fact, I contacted with them via email and I was told that we needed to buy a license if we were going to deploy the DLL with a product. (That was too expensive for us to build a product that was just for a single client).

The list of third part materials includes iText, but in the their description of the license of iText they says that is GPL, so perhaps they are using a pre-2010 version. In such case you can include pdftk for commercial use without buying a license.

Regards
Santiago A.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20120809/89f5104a/attachment-0001.html>

Reply by email

alex kovacic
to Andrew Brunner
Andrew Brunner wrote 18 lines
I found this https://github.com/mozilla/pdf.js Anyone have any other experiences rendering PDF rendering via JS? I'm needing to implement a pdf reader too. Andrew Brunner Aurawin LLC http://aurawin.com 512.574.6298 -- _______________________________________________ Lazarus mailing list http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

this might help:

Poppler is a PDF rendering library based on the xpdf-3.0 <http://www.foolabs.com/xpdf/> code base.

http://poppler.freedesktop.org/
http://freedesktop.org/wiki/Software/poppler

Alex Kovacic (PTH, HPTC,BSc, MSc, MHGSA) FISH Lab SEALS, POWH Randwick, NSW, 2031 tel:93829168 --------------------------------------------------------------------------------------------- Illawarra Shoalhaven Local Health District, South East Sydney Local Health District and Sydney Children's Hospital Network (Randwick Campus) Confidentiality Notice This email, and the files transmitted with it, are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you are not the intended recipient, you are not permitted to distribute or use this email or any of its attachments in any way. We also request that you advise the sender of the incorrect addressing. This email message has been virus-scanned. Although no computer viruses were detected, Illawarra Shoalhaven Local Health District, South East Sydney Local Health District and Sydney Children's Hospital Network (Randwick Campus) accept no liability for any consequential damage resulting from email containing any computer viruses. -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20120809/b120dfe5/attachment-0001.html>

Reply by email