Recent

Author Topic: PDF generator  (Read 2472 times)

stem

  • Jr. Member
  • **
  • Posts: 88
PDF generator
« on: February 28, 2020, 03:40:55 pm »
Hi,

I want to create pdf files in my multi-platform Lazarus project. I've found three solutions:


What would be your preferred choice? The pdf files will contain mainly text.

Thank you.

stem

lucamar

  • Hero Member
  • *****
  • Posts: 4219
Re: PDF generator
« Reply #1 on: February 28, 2020, 04:53:55 pm »
What would be your preferred choice? The pdf files will contain mainly text.

For relatively simple, straightforward, "mostly text" PDFs I'de use fcl-pdf: it's relatively simple, doesn't have external dependencies, has most (if not all) of the needed features, and is already included in Lazarus/FPC.

That said, note that I've never used any of them for serious work; I tend to rely on a system-wide PDF "printer" instead.
Turbo Pascal 3 CP/M - Amstrad PCW 8256 (512 KB !!!) :P
Lazarus/FPC 2.0.8/3.0.4 & 2.0.12/3.2.0 - 32/64 bits on:
(K|L|X)Ubuntu 12..18, Windows XP, 7, 10 and various DOSes.

madref

  • Hero Member
  • *****
  • Posts: 949
  • ..... A day not Laughed is a day wasted !!
    • Nursing With Humour
Re: PDF generator
« Reply #2 on: February 28, 2020, 06:36:30 pm »
PowerPDF is easy to use with LazReport.
Instead of opening the report you just export it with PowerPDF.
You treat a disease, you win, you lose.
You treat a person and I guarantee you, you win, no matter the outcome.

Lazarus 3.99 (rev main_3_99-649-ge13451a5ab) FPC 3.3.1 x86_64-darwin-cocoa
Mac OS X Monterey

af0815

  • Hero Member
  • *****
  • Posts: 1289
Re: PDF generator
« Reply #3 on: February 28, 2020, 07:02:46 pm »
fcl-pdf. This is maintained by the fpc team.
regards
Andreas

GAN

  • Sr. Member
  • ****
  • Posts: 370
Re: PDF generator
« Reply #4 on: February 28, 2020, 07:12:53 pm »
I use PowerPDF with LazReport. It's easy if you know how to use LazReport.
Lazarus 2.0.8 FPC 3.0.4 Linux Mint Mate 19.3
Zeos 7̶.̶2̶.̶6̶ 7.1.3a-stable - Sqlite 3.32.3 - LazReport

useroflazarus

  • New Member
  • *
  • Posts: 23

stem

  • Jr. Member
  • **
  • Posts: 88
Re: PDF generator
« Reply #6 on: February 28, 2020, 10:09:17 pm »
Is it possible to have a "print preview" of the generated pages with fcl-pdf?

stem

 

TinyPortal © 2005-2018