PRN2PDF

You can share your experience with HMG. Share with some screenshots/project details so that others will also be benefited.

Moderator: Rathinagiri

Post Reply
User avatar
Pablo César
Posts: 4059
Joined: Wed Sep 08, 2010 1:18 pm
Location: Curitiba - Brasil

PRN2PDF

Post by Pablo César »

When we have old systems in Clipper, was very common to create a printing or text files (PRN or TXT). I remember I had used a third party program to convert to PDF files.

Following example would be usefull for that propose which accepts in command line (Prompt at DOS command) or just execute without any parameter.

I shall make some another improvements with some more options. This is working with Epson and HP internal printer commands (ESC command).

I hope to contribute to assist in learning and you enjoy this example. :D
EpsonPDF.rar
(60.79 KiB) Downloaded 629 times
I intend to improve in line command options to add more parameters just to allow with:

1. No_Load PDF
2. Set nMargin
3. Set nTop
4. Set LandScape/Portrait
5. Force Epson or HP ESC commands

P.S. I have forgotten to thank to Fernando from PCToledo forum whos has contributed and I adapted and made some more implementations to our community. Thanks Fernando, thanks amigo Toledo for this opportunity.
HMGing a better world
"Matter tells space how to curve, space tells matter how to move."
Albert Einstein
User avatar
bpd2000
Posts: 1207
Joined: Sat Sep 10, 2011 4:07 am
Location: India

Re: PRN2PDF

Post by bpd2000 »

Nece Utility
Thank you Pablo for sharing
BPD
Convert Dream into Reality through HMG
User avatar
tonton2
Posts: 444
Joined: Sat Jun 29, 2013 1:26 pm
Location: Algerie
Contact:

Re: PRN2PDF

Post by tonton2 »

:o c'est vraiment du bon travail Merci
L'Algerie vous salut
Y.TABET
User avatar
quartz565
Posts: 667
Joined: Mon Oct 01, 2012 12:37 pm
Location: Thessaloniki, Greece
Contact:

Re: PRN2PDF

Post by quartz565 »

Thank you Pablo!
Best Regards,
Nikos.

os: Windows Server 2019 - 64
Javier Tovar
Posts: 1275
Joined: Tue Sep 03, 2013 4:22 am
Location: Tecámac, México

Re: PRN2PDF

Post by Javier Tovar »

Gracias por compartir!

Saludos
User avatar
Agil Abdullah
Posts: 204
Joined: Mon Aug 25, 2014 11:57 am
Location: Jakarta, Indonesia
Contact:

Re: PRN2PDF

Post by Agil Abdullah »

Many Thanks.... I tried and it worked well.

What I love this forum is... Everyday I find new thing to learn & improve my skill+knowledge.
Agil Abdullah Albatati (just call me Agil)
Programmer Never Surrender
User avatar
serge_girard
Posts: 3165
Joined: Sun Nov 25, 2012 2:44 pm
DBs Used: 1 MySQL - MariaDB
2 DBF
Location: Belgium
Contact:

Re: PRN2PDF

Post by serge_girard »

Thanks Pablo!

Serge
There's nothing you can do that can't be done...
User avatar
Pablo César
Posts: 4059
Joined: Wed Sep 08, 2010 1:18 pm
Location: Curitiba - Brasil

PRN2PDF

Post by Pablo César »

Thank you guys for your interest. :D

Sometimes same print command is defined in more than one way.
For example: CHR(27)+"P" and CHR(18) which makes to turn normal size of font.

So to attend this, PRN2PDF supports many other equivalent of same command by considering nested element of an array.

Some other print commands were added and user options in form for GUI.
Screen.PNG
Screen.PNG (20.43 KiB) Viewed 6787 times
Attachments
Prn2Pdf (Executable file).rar
(1.06 MiB) Downloaded 577 times
PRN2PDF.rar
Source files
(4.81 KiB) Downloaded 467 times
HMGing a better world
"Matter tells space how to curve, space tells matter how to move."
Albert Einstein
User avatar
Agil Abdullah
Posts: 204
Joined: Mon Aug 25, 2014 11:57 am
Location: Jakarta, Indonesia
Contact:

Re: PRN2PDF

Post by Agil Abdullah »

Pablo,

Again, Thanks for sharing.

Awating for some new things you could share for us.
Agil Abdullah Albatati (just call me Agil)
Programmer Never Surrender
Post Reply