pcl converter

How to optimize PCL to PDF conversion by using a different font type?

Hello,

We use "pctool.exe" in a batch-routine with command lines. So far conversion of PCL to PDF works fine.

We would like to optimize the PDF document by using a different font type, but we did not succeed to find the correct command string.

In the manual is written:

-fontfolder

We have following questions:

* Is the “fontfolder” the correct string to change the font type?
* If we would like to use “LetterGothic-Reg.ttf”. What would be the correct string in the commend line?
* Can use any font available when we have the “TTF”-File?
* Is there a command string to change the font size?
* What is the standard font type?

Your response is highly appreciated.

Best regards
Customer
--------------------------------------------

https://www.verypdf.com/app/pcl-converter/try-and-buy.html

image
Thanks for your message.

Please find our answers at below,

>>* Is the "fontfolder”" the correct string to change the font type?

-fontfolder <string> : Set font folder for PCL conversion

-fontfolder option can be used to set font folder for PCL to PDF and Image Conversion, you can add more TrueType fonts into this folder, but this parameter can't change font type.

>>* If we would like to use "LetterGothic-Reg.ttf". What would be the correct string in the commend line?

You can use -mapfont option to replace a specify font in generated PDF file,

-mapfont <string> : Map fonts by mapfont.ini file

for example,

pcltool.exe -mapfont "mapfont.ini" C:\in.pcl C:\out.pdf
pcltool.exe -mapfont default C:\in.pcl C:\out.pdf
pcltool.exe -mapfont "C:\mapfont.ini" C:\in.pcl C:\out.pdf
pcltool.exe -mapfont "C:\mapfont.ini" -embedfonts yes C:\in.pcl C:\out.pdf
pcltool.exe -mapfont "C:\mapfont.ini" -embedfonts no C:\in.pcl C:\out.pdf

You can install "LetterGothic-Reg.ttf" into your Windows system first, then add an entry into mapfont.ini file. In mapfont.ini file, you can map a specify font to "LetterGothic-Reg.ttf" easily, for example,

[MapFonts]
Number=7
EmbedFont=0

[MapFont1]
PDFFont=BordeauxRomanBoldLetPlain
WinFont=Arial

[MapFont2]
PDFFont=NimbusMono-Reg
WinFont=Arial Black

[MapFont3]
PDFFont=NimbusMono-Bol
WinFont=Arial

[MapFont4]
PDFFont=NimbusRomanNo9-Med
WinFont=Arial Narrow

[MapFont5]
PDFFont=NimbusRomanNo9-MedIta
WinFont=Calibri

[MapFont6]
PDFFont=NimbusRomanNo9-Reg
WinFont=Times New Roman

[MapFont7]
PDFFont=URWGothicL-Demi
WinFont=Arial

>>* Can use any font available when we have the "TTF" File?

Yes, you can use any TTF font file by using mapfont.ini file, you can install this TrueType font file into Windows first, then you can add an entry of this TrueType font into mapfont.ini file.

>>* Is there a command string to change the font size?

Sorry, you can't change the font size from command line, because font size, font color, font name are controlled by PCL file itself, you need to change font size in PCL file.

>>* What is the standard font type?

The standard font type is TrueType (.ttf) font format.

Thank you.

Kind regards.
VeryPDF

VN:F [1.9.20_1166]
Rating: 0.0/10 (0 votes cast)
VN:F [1.9.20_1166]
Rating: 0 (from 0 votes)
pdf security

How to add PKCS#11 certificates (eID certificate) to a PDF file?

Hello,

I am testing free trial edition of this signing tool and I have few questions.

1. I found on your page that this tool supports PKCS#11 certificates (eID certificate) but I don't know how. I have imported certificates in MY store and when I list MY store I can see them (I can sign it with Adobe Reader for example), but when I try to sign with your tool it always writes "Certificate not found in store" (even I used the name in the -listcer . I tried with this VeryPDF certificate and the document is signed correctly. I expected that if I put cername in call it will ask for my PIN and then sign the document, right?

2. I tried to sign already signed document (for those documents that need signs from two different parties) and tool has issued information that "Input document must not be signed". Is it possible to sign documents with more than one signature?

Regards.
Customer
-------------------------------

VeryPDF PDF Security and Signature (Shell & COM & SDK),

https://www.verypdf.com/app/pdf-security-and-signature/try-and-buy.html

image

Dear Customer,

1. You can import certificate to "MY store" in your system first, then you can use this certificate to sign PDF file by following command line,

pdfsecure.exe -cername "Certificate Name" -cerstore my D:\test.pdf D:\out.pdf

2. Sorry, you can not sign a PDF file with more than one signature, you have to remove the signature from your PDF file first, then you can re-sign the new PDF file again.

Thank you.

Regards.
Frank

VN:F [1.9.20_1166]
Rating: 0.0/10 (0 votes cast)
VN:F [1.9.20_1166]
Rating: 0 (from 0 votes)
pdf editor toolkit

How to call PDF Editor Toolkit Pro SDK from Classic ASP source code?

Hi,

How do I install the PDF Editor Toolkit Pro SDK on Windows Server 2019/2022? I'm installing the PDF Editor Toolkit Pro SDK for use with ASP classic. From the bin directory I'm running
install_for_asp.bat.

I keep getting this error message:

image
We're migrating to a new version of Windows Server and decommissioning the old one.

Do you have a guide available for installation?

Cheers & Keep Safe,
Customer
-----------------------
It seems "pdfshell.exe" is not registered in your system, you may run a cmd window by administrator privilege, and then run following command line to register pdfshell.exe into your system,

pdfshell.exe /regserver

You can also double click "Install-pdfshell.exe-Com.vbs" to register pdfshell.exe into your system.

image

After you register pdfshell.exe into your system, you will able to call it from VB or ASP code properly,
===================
Set pdfObject = Server.CreateObject("pdfshell.shellexe")
id = pdfObject.com_VeryStampOpen("test_org.pdf", "1.pdf")
if (id>0) then
iRet = pdfObject.com_VeryStampSetFunction(id, 131, 0, 0, 0, 0)
code = pdfObject.com_VeryStampAddText(id, 9, "TEST", RGB(220, 220, 220), 18, -10, 0, 50, 1, 0, 301, "", 30, 0, "", 0)
pdfObject.com_VeryStampClose (id)
end if
set pdfObject = nothing
===================
If you still can't get it work, please feel free to let us know, we will assist you asap.

VeryPDF
-----------------------
Ok, so I did a fresh install of windows server 2022. Installed IIS, made sure it was working and copied the bin directory to the server. I double clicked on install-pdfshell.exe-Com.vbs. I command window opened and closed. Now what? It looked and felt the same way malware gets installed.

No success or error messages. Is that the installation procedure for installing the software on the server? Could you please provide a more formal guide?

I then copied over the asp_interface directory to try and test if the software installed properly or is working. Opening the readme.txt it reads:
================
How to run ASP examples?

1. Please run "../bin/install_for_asp.bat" file to install all files for use,
2. Then please run MS Internet Explorer, and open ASP examples in "asp_examples" folder to try.
================

Looking again in the bin directory there's no install_for_asp.bat found. I found 2 pngs though. One is a panel for default website properties which I could not find an equivalent for in IIS 10. The second is a panel showing IUSR and IWAM accounts and what permissions should be enabled for both. I think IIS 10, once configured for ASP classic already addresses that.

I then navigated to C:\inetpub\wwwroot\asp_interface\asp_examples\stamp and copied those files into the wwwroot directory and tried to run stampExample.asp. This resulted in this message coming up in the browser:

have errs when execute functions!

I would like clear installation instruction in installing your product on windows 2022 server so I can move to the next step of testing if your product works in classic ASP. If you can manage it, I would also like clear instructions on how to test in classic ASP.

I've never had such a frustrating experience trying to get this product to work. I hope you get bac to me in a timely manner,

Customer
-----------------------
After you run "Install-pdfshell.exe-Com.vbs" to install pdfshell.exe into your system, you can try to convert a JPG file to PDF file by following VBScript code,

===================
Set fso = CreateObject("Scripting.FileSystemObject")
strFolder = fso.GetParentFolderName(wscript.ScriptFullName)
FilePath = strFolder & "\"

strTIFFileName = FilePath & "logo.jpg"
strPDFFileName = FilePath & "_logo.pdf"

Set oPDF = CreateObject("pdfshell2.shellExe")
oPDF.com_VerySetLicenseKey("XXXXXXXXXXXXXXXXXXXXX")
FileID = oPDF.com_VeryCreate(strPDFFileName)
oPDF.com_VeryAddImage FileID, strTIFFileName
oPDF.com_VeryClose FileID

MsgBox "Create '" + strPDFFileName + "' file successful."
===================

Can you get this VBScript code work fine? if yes, it indicates you have installed pdfshell.exe properly, the problem may caused by permission settings when you call it from ASP code, you may focus on permission settings.

If you can't get this VBScript code run properly, please feel free to let us know, we will assist you continue.

VeryPDF
-----------------------
Hi,

I copied the entire pdf_editor_toolkit_pro directory to drive C on a windows server 2022 setup I have running with IIS 10 running and ASP classic enabled. Then I doubled clicked on the Install-pdfshell.exe-Com.vbs in the bin directory. A cmd window opened the closed.

Next I created a test.asp file in the directory that's configured on IIS to run ASP. I added a logo.jpg file.

Here's the code:

I get this error running the script:

Microsoft VBScript runtime error '800a01a8'
Object required: 'wscript'
/test.asp, line 7

So I updated the script with:
===================
LANGUAGE=VBSCRIPT
Response.CacheControl="Private"
Response.Expires=-10000

Set fso = CreateObject("Scripting.FileSystemObject")
'strFolder = fso.GetParentFolderName(wscript.ScriptFullName)
'FilePath = strFolder & "\"
FilePath = "C:\inetpub\wwwroot\"

strTIFFileName = FilePath & "logo.jpg"
strPDFFileName = FilePath & "_logo.pdf"

Set oPDF = CreateObject("pdfshell2.shellExe")
oPDF.com_VerySetLicenseKey("XXXXXXXXXXXXXXXXXXXX")
FileID = oPDF.com_VeryCreate(strPDFFileName)
oPDF.com_VeryAddImage FileID, strTIFFileName
oPDF.com_VeryClose FileID

MsgBox "Create '" + strPDFFileName + "' file successful."
===================
Then I got this error:

Microsoft VBScript runtime error '800a0046'
Permission denied: 'CreateObject'
/test.asp, line 14

I gave full permissions to IUSR, IIS_IUSR, all the other accounts except for creator owner.

How should I proceed?

Apologies on not getting back to you sooner. A few years ago I suffered a stroke and lost the use of my right side. I've regained some functionality recently and I've started getting back to work but I'm still disabled. Please bear with me.

Customer
-----------------------

>>Microsoft VBScript runtime error '800a0046'
>>Permission denied: 'CreateObject'
>>/test.asp, line 14
>>I gave full permissions to IUSR, IIS_IUSR, all the other accounts except for creator owner.
>>How should I proceed?

This problem is due to that your ASP code hasn't permissions to access to "pdfshell2.shellExe" COM object, please check the following steps,

1. Please run "Install-pdfshell.exe-Com.vbs" to register pdfshell.exe into your system first,

2. Please give full control permissions to "pdfshell2.shellExe" COM in Component Services, please look at following web page for more information, this article is for "VeryPDFCom.RunCmd", so you need to change from "VeryPDFCom.RunCmd" to "pdfshell2.shellExe" in your system,

https://www.verydoc.com/blog/verydoc-release-notes-verydoc-releases-an-exe-com-of-verypdfcomruncmd-exe-today-verypdf-exe-com-does-allow-you-to-call-ms-office-and-any-exe-application-from-asp-php-c-net-etc-program-languag.html

3. Give full control permissions to "pdfshell2.shellExe" in your system by following steps,

3.1. "Start" -> "Run" -> type in "dcomcnfg" on 32bit system or "MMC comexp.msc /32" on 64bit system,

In the Component Services Window, expand the tree item:

Console Root / Component Services / Computers / My computer / DCOM Config

Right click the "pdfshell2.shellExe" entry and select "Properties".

image

3.2. In the 'COM Properties' dialog, select the the 'Security' tab,

3.3. In the 'Access Permissions' area, select "Customize" and click Edit,

image

3.4. Ensure that "Everyone" is present in the list of names. If not, add it by clicking the Add button, typing "Everyone" and give it all permissions, and clicking OK.

image

3.5. Make sure "Everyone" has the Access Permission 'Allow' check box ticked.

image

Click OK to return to the 'properties' window.

You need give "Full Control Permission" to "Everyone" to "Launch and Activation Permissions", "Access Permissions" and "Configuration Permissions" three items.

3.6. Click "Identity" tab. Check the "This user" checkbox, press "Browse" and specify the Administrator account, enter and re-enter the Administrator password, OR simple choose "The interactive user." option.

image

3.7. Click "OK" to save it,

3.8. Add "Everyone" user account to the folder where the "pdfshell2.shellExe" inside, and assign "Full Control" permission to "Everyone" user account, if you don't give enough permission to this folder, ASP, PHP, C#, VB.NET, ASP.NET etc. web applications will be denied to access to this folder,

image

image

image

3.9. OK, you can call "pdfshell2.shellExe" from ASP, PHP, C#, VB.NET, ASP.NET, VBScript, JavaScript, Delphi, etc. program languages without any restrictions now.

VeryPDF

Relevant links:

More EXEShell Tools can be found at following web page,
https://www.verydoc.com/exeshell.html

VeryPDF has release a new docPrintCOMExe for docPrint SDK product,
http://www.verypdf.com/wordpress/201403/verypdf-release-notes-verypdf-has-release-a-new-docprintcomexe-for-docprint-sdk-product-40311.html

VN:F [1.9.20_1166]
Rating: 0.0/10 (0 votes cast)
VN:F [1.9.20_1166]
Rating: 0 (from 0 votes)
pcl converter

Optimizing PCL to PDF Conversion: Reducing File Size with Black and White Color Depth

In the world of document management, efficient conversion from one format to another is essential. One common challenge faced by users is converting PCL (Printer Command Language) files to PDF (Portable Document Format) while maintaining optimal file size and quality. In this article, we'll address a customer's query on optimizing PCL to PDF conversion and provide a step-by-step guide to achieving smaller PDF files with black and white color depth.

image

image

Customer Query:

In a recent correspondence, our valued customer raised an important concern regarding VeryPDF PCL Converter SDK. The customer was attempting to convert PCL code to raster PDF using the "-raster" option. While the conversion process worked well, the resulting PDF file size turned out to be quite large. Despite trying various options like "-xres" and "-yres," the desired reduction in file size without compromising image quality seemed elusive. The customer also experimented with "-quality," "-bitcount," "-colorimg," and "-raster2" options but without success. In the quest for a more optimized conversion, the customer sought guidance to achieve the desired outcome.

Our Response:

As part of our commitment to providing exceptional customer support, VeryPDF promptly addressed the customer's query. We suggested a viable solution to optimize the PCL to PDF conversion and reduce the file size while preserving the document's quality.

VeryPDF's Recommendation:

We recommended using the "-bitcount 1" parameter during the PCL to PDF conversion process. By employing this option, the conversion would be performed in black and white mode, which can significantly decrease the resulting PDF file's size. This method works well for scenarios where color depth is not critical, and monochrome output is acceptable.

Here's the example command we provided:

"C:\Program Files (x86)\VeryPDF PCL Converter v2.7\pcltool.exe" -bitcount 1 -raster "C:\Program Files (x86)\VeryPDF PCL Converter v2.7\TestBill.pcl" D:\Downloads\_out.pdf

Implementation:

Customers can execute the above command in the command-line interface (CLI) or batch script, ensuring the correct paths are specified for the PCL Converter SDK and the input PCL file. The resulting PDF, "_out.pdf," will be generated in the designated output directory.

Conclusion:

Efficiently converting PCL files to PDFs is a critical task in document management. In response to the customer's inquiry, VeryPDF provided valuable insight into optimizing the conversion process. By using the "-bitcount 1" parameter, users can generate smaller PDF files in black and white mode, reducing the file size without compromising the output quality.

We hope this article serves as a useful guide for anyone looking to achieve optimized PCL to PDF conversions. As always, our customer support team is available to assist with any further questions or concerns.

At VeryPDF, we remain committed to enhancing your document processing experience, providing efficient solutions that meet your specific needs. Thank you for choosing VeryPDF as your document conversion partner.

VN:F [1.9.20_1166]
Rating: 0.0/10 (0 votes cast)
VN:F [1.9.20_1166]
Rating: 0 (from 0 votes)
pdf security

Using Multiple Text Lines in PDF Signature in VeryPDF PDF Security and Signature (Shell & COM & SDK) software

The "VeryPDF PDF Security and Signature (Shell & COM & SDK)" tool provides a range of features for adding security and digital signatures to PDF documents. However, some users may encounter questions or issues when trying to use specific functions. In this article, we will address some common inquiries related to the "-signtext1" and "-signtext2" parameters, particularly regarding font size customization and adding multiple lines of text.

https://www.verypdf.com/app/pdf-security-and-signature/try-and-buy.html

Question 1: Can I specify the font size of -signtext1?

Answer: Currently, the "-signtext1" parameter does not support customized font size. This means that the font size cannot be modified directly within the tool. However, other options and workarounds may be available to meet your specific requirements.

Question 2: When I send -signtext2, it seems that -signreason is ignored. Is this changeable?

Answer: It appears that the "-signreason" parameter may be ignored when using the "-signtext2" parameter. To confirm this behavior and gain further insights, we recommend checking the details and settings provided by the tool. You can review the attached screenshot for more information on the observed behavior.

image

Question 3: How can I add more than one line of text for signtext2?

Answer: Adding multiple lines of text to the "-signtext2" parameter can be achieved by utilizing carriage returns. Although the command line method does not support entering hexadecimal codes like 0x0D and 0x0A directly, you can use the "\n" character to represent a new line. For example, the command would look like this:

pdfsecure.exe -cername "VeryPDF" -signrect "100,100,400,400" -signtext2 "line1 text \n line2 text \n line3 text" test.pdf out.pdf

Each "\n" represents a new line in the resulting text.

In cases where these built-in features do not fulfill your specific requirements, VeryPDF offers a custom-build version of "VeryPDF PDF Security and Signature (Shell & COM & SDK)" at an additional cost. This custom version can address the font size customization in "-signtext1" and enhance the functionality for adding multiple lines of text in "-signtext2". If you are interested in this custom-build version, kindly reach out to VeryPDF for a quote.

image

We hope this article has provided you with valuable insights and solutions to your questions. By utilizing the features and workarounds mentioned, you can enhance the functionality of "VeryPDF PDF Security and Signature (Shell & COM & SDK)" to meet your specific needs.

VN:F [1.9.20_1166]
Rating: 0.0/10 (0 votes cast)
VN:F [1.9.20_1166]
Rating: 0 (from 0 votes)