Delphi PDF generation [closed]

一曲冷凌霜 提交于 2019-11-28 04:46:48

We are using Gnostice and are very pleased with it. It allows us to print our ReportBuilder reports to PDF, HTML, XML, Excel, Gif, ...


Some minor issues we have come accross working with the component

  1. Somewhere deep in the bowels of the component, Application.Processmessages get's called. You have to make sure your code handles reëntrance.
  2. We had to set Preferences.UseImagesAsResources of the TgtDocSettings component to True to resolve AV's when printing to anything else but PDF.
  3. Probably due to the way we use the component but the first printed page was always Portrait. We had to add a call to gtRBExportInterface.Engine.Settings.Page.Orientation to set the orientation to landscape if needed.

Use our SynPDF unit. Among its features, you can use a true TCanvas to create the PDF, and embed True Type fonts subsets. It's one of the few libraries handling Arabic languages and such (via the UniScribe API). It's fully Unicode ready, and very fast.

And it's FREE and OpenSource! Works from Delphi 6 up to Delphi XE.

http://blog.synopse.info/?q=pdf

We use wPDF. We don't generate pdf-files directly thought - we generate different reports, and 'print' them to pdf as an alternative to printer.

PowerPDF is free and opensource (LGPL). its realy small but effective!

PowerPDF

Here are some (All Commercial) I came across when looking for something similar:

I found that the freely available ones LibHaru, PoDoFo weren't up to scratch for my requirements unfortunately.

I've been using wPDF with QuickReports / QRDesign. Basically by converting the report to a metafile then producing the pdf from that. It also claims to have Fast Report support.

There are 2 ways to create PDF reports using eDocEngine. Either you use a report builder component (like QuickReport, Rave etc) and then use the eDocEngine interface to save the contents as PDF.

The other way is to programmtically use TgtPDFDocument class and then settings it's properties and collections. This gives much finer control over features like watermarks, permissions, password security etc.

lkessler

IIPDFLib by llionsoft at: www.llion.net

Delphi library llPDFLib 3.6

llPDFLib is pure Object Pascal library to create PDF documents. This library doesn't use any DLL or external third-party software to generate PDF files. Library includes TPDFDocument component with properties and methods like Delphi's TPrinter but is designed to generate a PDF file.

Features:

  • Real Canvas.Handle (HDC)
  • Unicode support
  • Acroforms (buttons, radiobuttons, checkboxes, comboboxes, text input fields)
  • Watermarks
  • Thumbnail
  • JavaScript
  • vEncryption (40 and 128 bit)
  • Outlines (with support russian, turkish, baltic, east europe, greek, CJK languages)
  • Compression
  • Image compression(Jpeg, Flate, CCITT 3, CCITT 3 (2D), CCITT 4)
  • Hyperlink
  • Annotation(with support russian, turkish, baltic, east europe, greek, CJK languages)
  • Embedding True Type fonts (TTF and TTC)
  • Emulation of the Underline and StrikeOut font style
  • Present output into Stream for work with CGI/ISAPI applications
  • Filters for QReport,FastReport and Report Builder.
  • Set of the components for work with DBGrids
  • True Type font subset

It costs $299 US, but you get what you pay for.


(source: llion.net)

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!