Recent

Author Topic: Producing a PDF  (Read 1856 times)

Grahame Grieve

  • Sr. Member
  • ****
  • Posts: 379
Producing a PDF
« on: August 07, 2023, 11:42:44 am »
I have content that I want to write into a PDF. It's pretty html-ish content, and I could make it all HTML if needed (some is definitely HTML). But I need to write it to a PDF in a web server process, or at least a multi-threaded headless zero-config process. And I want it to at least work on the 3 desktops (windows, linux, OSX).

I'm not sure that any of the obvious choices make me very happy. Is there a good option for me?

nummer8

  • Full Member
  • ***
  • Posts: 124

marcov

  • Administrator
  • Hero Member
  • *
  • Posts: 12847
  • FPC developer.
Re: Producing a PDF
« Reply #2 on: August 07, 2023, 12:33:32 pm »
FPC has a fcl-pdf pdf writing backend, but that is not html based afaik.

cdbc

  • Hero Member
  • *****
  • Posts: 2777
    • http://www.cdbc.dk
Re: Producing a PDF
« Reply #3 on: August 07, 2023, 02:19:57 pm »
Hi
I put these in my uses clause:
Code: Pascal  [Select][+][-]
  1. ...,fpTTF,fpparsettf,fpPDF;
Ctrl + click on fpPDF and you'll land on the declaration...
In the neighbour directory, there's an example app you can study.
Regards Benny
If it ain't broke, don't fix it ;)
PCLinuxOS(rolling release) 64bit -> KDE6/QT6 -> FPC Release -> Lazarus Release &  FPC Main -> Lazarus Main

 

TinyPortal © 2005-2018