Tom:
Here is the routine we developed it returns the path of the one of many
files converted to PDF.
SUBROUTINE DVP.PCL2PDF(ATTACH)
************************************************************************
* COPYRIGHT 1982-2024 COMPUCOT INC. *
* AS AN UNPUBLISHED WORK. ALL RIGHTS RESERVED. *
* THIS WORK IS THE PROPERTY OF, AND EMBODIES TRADE *
* SECRETS AND CONFIDENTIAL INFORMATION PROPRIETARY *
* TO COMPUCOT INC. *
* IT MAY NOT BE REPRODUCED, COPIED, USED, DISCLOSED, *
* TRANSFERED, ADAPTED, OR MODIFIED WITHOUT THE EXPRESS *
* WRITTEN APPROVAL OF COMPUCOT INC. *
* * (305) 477-5788 * *
************************************************************************
RPATH='C:\PCLWORK'
WPATH='C:\PICKTEMP'
AM=CHAR(254)
MAX=DCOUNT(ATTACH,AM)
NATTACH=''
FOR X=1 TO MAX
FILENAME=ATTACH<x,1>
FFILENAME=RPATH:'\':FILENAME:'.PCL'
TFILENAME=WPATH:'\':FILENAME:'.PDF'
COMMAND=RPATH:'\PCL2PDF535 "':FFILENAME:'" "':TFILENAME:'" -S'
IF ATTACH<x,2>#'' THEN
COMMAND=COMMAND:' -load:C:\Laserforms\':ATTACH<x,2>
<<<<< This is used if you loaded a template to your printer
END
NATTACH<-1>=TFILENAME
CALL DVP.DOSCOMMAND(COMMAND)
19 NEXT X
ATTACH=NATTACH
RETURN
END
Frank Diaz
Consultant
Compucot Inc.
10441 NW 28th Street #A101
Doral, Florida 33172
Tel: (305) 477-5788
Fax: (305) 599-3059
Email: <mailto:
frank@compucot.com>
Frank@compucot.comWeb:
<https: nam12.safelinks.protection.outlook.com/?url=""></https:>
ot.com%2F&data=04%7C01%7CAlejandro.Franco%40goya.com%7C1b3b8966cf0542cf90500
8d89665f9da%7Ca9295b22d0c5456ab48719f605708737%7C0%7C0%7C637424712011509269%
7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwi
LCJXVCI6Mn0%3D%7C1000&sdata=12Ii7KMU7WLoSnoZuaULkzm8nKNXuGdXtr3rNLN3vfE%3D&r
eserved=0>
www.compucot.comThis electronic transmission message is intended only for the use of the
individual or entity to which it is addressed. The information in this
transmission may be proprietary, confidential, privileged and exempt from
disclosure under applicable law. If the reader of this Notice is not the
intended recipient (or the employee or agent responsible for delivering the
message to the intended recipient), you are hereby notified that any use,
dissemination, distribution or copying of this communication is prohibited.
If you have received this communication in error, please immediately notify
us by telephone (at our expense) or by e-mail and destroy the material
transmitted to you in error. Thank you for your cooperation.
Original Message:
Sent: 5/2/2024 4:28:00 PM
From: Bob Thomson
Subject: RE: Text to pdf conversion
PCL2PDF creates the PDF file just fine, but it hangs up the d3 port it's running on. When I run it at the command line, it warns me this file is not in standard PCF format, and prompts me to click OK. How do I get it to exit gracefully?
- Bob
------------------------------
Bob Thomson
President
Synapse Computer Solutions Inc
San Rafael CA US
------------------------------
Original Message:
Sent: 04-19-2024 09:47
From: Frank Diaz
Subject: Text to pdf conversion
We have been using PCL2PDF software sucessfully for many years.
We use the same programs as to print to a PCL laser printer the report; but, we capture the print being generated.
Then use the command line as instructed to convert it to PDF
------------------------------
Frank Diaz
Consultant
Compucot Inc
Doral FL US
Original Message:
Sent: 04-18-2024 09:03
From: Warwick Dreher
Subject: Text to pdf conversion
Hi Bob,
if you are doing it from D3, then :
1. create the relevent printer for PDF (if not done already)
2. set your printer to the PDF "printer" / creator
3. enter COPY <file> <item> (p<other options>
If from Windows using a DOS command window :
- in Windows, set the PDF printer / creator as your default
- in the DOS / CMD window enter (I think) PRINT <file> where <file> can be the full path
Regards,
Warwick
------------------------------
Warwick Dreher
Warwick Dreher
Croydon AU
Original Message:
Sent: 04-17-2024 18:37
From: Bob Thomson
Subject: Text to pdf conversion
Can anyone recommend a test-to-pdf conversion program that I can run at the command line?
- Bob
------------------------------
Bob Thomson
President
Synapse Computer Solutions Inc
San Rafael CA US
------------------------------
</mailto:frank@compucot.com></x,2></x,2></x,1>