Lazarus
Home
Help
TinyPortal
Search
Login
Register
Lazarus
»
Forum
»
Programming
»
General
»
Convert Plain text to pdf
Free Pascal
Website
Downloads
Wiki
Documentation
Bugtracker
Mailing List
Lazarus
Website
Downloads (Laz+FPC)
Packages (OPM)
FAQ
Wiki
Documentation (RTL/FCL/LCL)
Bugtracker
CCR Bugs
GIT
Mailing List
Other languages
Foundation
Website
Useful Wiki Links
Project Roadmap
Getting the Source
Screenshots
How to use the forum
Forum Rules
About donations (wiki)
Bookstore
Computer Math and Games in Pascal
(preview)
Lazarus Handbook
Search
Advanced search
Recent
FPC 3.2.4-rc1 available
by
marcov
[
Today
at 03:51:34 pm]
Elite Arcade
by
Guva
[
Today
at 03:41:28 pm]
Building units fails afte...
by
NormanDunbar
[
Today
at 03:36:38 pm]
FPC Unleashed (inline var...
by
440bx
[
Today
at 02:59:09 pm]
I hope FreePascal can sup...
by
marcov
[
Today
at 02:56:37 pm]
Little bit...
by
Thaddy
[
Today
at 02:19:01 pm]
[SOLVED] Cannot build Uni...
by
Thausand
[
Today
at 02:18:34 pm]
default pin settings, atm...
by
ccrause
[
Today
at 11:45:37 am]
TChart how setup nicestep...
by
eldonfsr
[
Today
at 05:18:14 am]
AI assisted translation o...
by
schuler
[
Today
at 03:07:59 am]
Can I get the position an...
by
wp
[
Today
at 12:23:04 am]
Translate .lfm file in a ...
by
wp
[
Today
at 12:07:11 am]
Playing video without to ...
by
n7800
[April 17, 2026, 11:51:39 pm]
Delimited text - how find...
by
n7800
[April 17, 2026, 11:28:25 pm]
overloading issues fpc3.2...
by
Martin_fr
[April 17, 2026, 10:21:07 pm]
Ann: Deinline: a de-inlin...
by
LeP
[April 17, 2026, 09:58:08 pm]
Seeking advice on setting...
by
schuler
[April 17, 2026, 03:36:28 pm]
Ann: DeCoperators
by
DomingoGP
[April 17, 2026, 03:23:39 pm]
Error: Compilation raised...
by
marcov
[April 17, 2026, 02:44:06 pm]
TLazSerial : serial port ...
by
CM630
[April 17, 2026, 09:50:34 am]
[Solved] Help needed comp...
by
landolfi
[April 17, 2026, 02:45:10 am]
DataPort or Synpase stat...
by
eldonfsr
[April 16, 2026, 11:32:18 pm]
[FPC 3.2.4, Windows] PTC ...
by
Fred vS
[April 16, 2026, 08:26:24 pm]
IDE: Property editor does...
by
dsiders
[April 16, 2026, 07:04:22 pm]
What is wrong with this c...
by
OH1KH
[April 16, 2026, 04:32:48 pm]
« previous
next »
Print
Pages: [
1
]
Author
Topic: Convert Plain text to pdf (Read 3192 times)
DreamVB
Full Member
Posts: 100
Convert Plain text to pdf
«
on:
July 10, 2022, 10:35:40 pm »
Hi can someone help me I am looking for a way to convert text to PDF I am thinking of making a opensource program that takes a bunch of text files and makes one PDF file or a RTF file. I know how to do the RTF part but I want to add support for PDF to would this be possible in Lazarus to do? any help or directions will be great full thanks.
Logged
Dream Believe Achieve
jamie
Hero Member
Posts: 7662
Re: Convert Plain text to pdf
«
Reply #1 on:
July 10, 2022, 10:47:33 pm »
https://www.freepascal.org/~michael/articles/lazpdf/lazpdf.pdf
Logged
The only true wisdom is knowing you know nothing
RayoGlauco
Full Member
Posts: 227
Beers: 1567
Re: Convert Plain text to pdf
«
Reply #2 on:
July 11, 2022, 12:18:34 am »
Any link to a
lazpdf.lpk
download?
I don't find it in the Blaise Pascal site.
Logged
To err is human, but to really mess things up, you need a computer.
Thausand
Hero Member
Posts: 503
Re: Convert Plain text to pdf
«
Reply #3 on:
July 11, 2022, 12:26:37 am »
Is then not part of Free Pascal (or is other package) ? see
https://www.freepascal.org/daily/packages/fcl-pdf/fppdf/index.html
Logged
VTwin
Hero Member
Posts: 1227
Former Turbo Pascal 3 user
Re: Convert Plain text to pdf
«
Reply #4 on:
July 11, 2022, 03:34:35 pm »
I have used fppdf. It is part of FCL.
Logged
“Talk is cheap. Show me the code.” -Linus Torvalds
Free Pascal Compiler 3.2.2
macOS 15.3.2: Lazarus 3.8 (64 bit Cocoa M1)
Ubuntu 18.04.3: Lazarus 3.8 (64 bit on VBox)
Windows 7 Pro SP1: Lazarus 3.8 (64 bit on VBox)
VTwin
Hero Member
Posts: 1227
Former Turbo Pascal 3 user
Re: Convert Plain text to pdf
«
Reply #5 on:
July 11, 2022, 03:48:46 pm »
Here is a small test project.
Logged
“Talk is cheap. Show me the code.” -Linus Torvalds
Free Pascal Compiler 3.2.2
macOS 15.3.2: Lazarus 3.8 (64 bit Cocoa M1)
Ubuntu 18.04.3: Lazarus 3.8 (64 bit on VBox)
Windows 7 Pro SP1: Lazarus 3.8 (64 bit on VBox)
RayoGlauco
Full Member
Posts: 227
Beers: 1567
Re: Convert Plain text to pdf
«
Reply #6 on:
July 12, 2022, 12:04:32 am »
Thanks, VTwin. I tested your project. It works ok out of the box. No install needed.
Logged
To err is human, but to really mess things up, you need a computer.
Kepsz
New Member
Posts: 37
Re: Convert Plain text to pdf
«
Reply #7 on:
February 19, 2026, 02:01:19 pm »
Quote from: VTwin on July 11, 2022, 03:48:46 pm
Here is a small test project.
Thank you!
I leave the link for the usable fonts here because it took me quite a while to figure out the name of a monospace font (Courier) that works with this code.
https://www.fpdf.org/en/doc/setfont.htm
Logged
cdbc
Hero Member
Posts: 2727
Re: Convert Plain text to pdf
«
Reply #8 on:
February 19, 2026, 02:21:11 pm »
Hi
It's an
Adobe
format, so......
Regards Benny
NOTE:
The built-in fonts are __not__ happy with unicode codepoints / characters, e.g.: Ñëß© æøå ÆØÅ ÜÖÄ üöä and ofc. many asian and other exotic languages...!
«
Last Edit: February 19, 2026, 02:27:02 pm by cdbc
»
Logged
If it ain't broke, don't fix it
PCLinuxOS(rolling release) 64bit -> KDE6/QT6 -> FPC Release -> Lazarus Release & FPC Main -> Lazarus Main
Print
Pages: [
1
]
« previous
next »
Lazarus
»
Forum
»
Programming
»
General
»
Convert Plain text to pdf
TinyPortal
© 2005-2018