verypdf blog

Map Fonts or Substitute Fonts during PCL to PDF conversion

another font mapping problem for you.

In attachment you can find a pdf file and a pcl one. The second one (clear_buffer.pcl) must be compiled to obtain another pdf file "very similar" to the first page of the file "maggio_2011.pdf".

I tried, but can't obtain a right pdf, because some fonts are different.

I don't know how to create a right mapfont.ini file for this task.

Can you compile a pdf from the pcl file "similar" to the one in attachment? It's very important for me to do this, otherwise the library can't resolve my compilation problem.

Thanks in advance.
=================================
Thanks for your sample files, we will check your sample files and send an email to you shortly, thanks for your patience.

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)
docprint pro

Disable "Auto merge all print jobs into one print job" function in mini EMF Printer

Hi,

We have been using our customized driver in production, but there appears to be a problem with job isolation that affects more than just shared terminal servers. All operating systems are affected and we don't know how to fix it. We understand the support options, but at least we want to know if the problem is solvable before spending more money on a product that isn't working.

Problem:
If user prints multiple print jobs into the queue, emfcreator gets executed but instead of processing only one spool file into a job, it processes ALL spool files and merges them ALL into one job. The parameter bWaitUntilPreviousExeExit=1 doesn't seem to matter.

This is a serious problem because pages from two unrelated print jobs get combined and the user only sees one call to our application.

Reproduction:
Easiest way to reproduce without running a printing application is to
(a) Pause the VeryPDF Printer Queue, (b) Send a number of print jobs (even test pages work) that will create 2 or more distinct entries in the spool queue for the printer, (c) Unpause the queue. Observe that all jobs are processed by emfcreator at one time and the RunExe only gets called once for all the pages combined as if they were all printed at once.

We can grant you access to sandboxed test servers, but it looks like you should be able to easily reproduce this problem on your own computers.

Please let me know what you find out.

Thank you.
=====================================
Thanks for your message, this problem can be solved in a custom-build version of mini EMF Printer, we will disable "Auto merge all print jobs into one print job" in this custom-build version of mini EMF Printer product, the all print jobs will be processed one by one, one print job will call one instance of EMFCREATOR.EXE application to create EMF files, for example, if you send 10 print jobs to mini EMF Printer, mini EMF Printer will call EMFCREATOR.EXE 10 times, we think this solution will solve this problem to you, if you are interest in this solution, please feel free to let us know.

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)
docprint pro

docPrint Pro v5.0 can not convert text files to PDF files

Our docPrint Pro 5 is converting everything except for txt files. Could you please help?
========================
We apologize for any inconvenience this may have caused to you, we will research this problem shortly, we will let you know as soon as we have any finding on this problem.

In the meantime, you can simple rename .txt to .html or .doc filename to try again, doc2pdf.exe will convert .html or .doc file to PDF or other formats without any problem.

VeryPDF
========================
Hello VeryPDF,

We cannot convert the files in HTML or Doc in our automatic process. I’ve tried it manually and it worked fine but our automatic process cannot let us convert txt files to other formats.

We were using DocPrint Pro 3.2 before but had to upgrade for format reasons. Since we installed version 5.0 everything was working fine until we noticed the txt files are not converted. The GUI does not create any output file and the command line creates a response 0 without any output file as well. This is only for txt files.

I think it could be releated to configuration but we don’t know why. Could someone connect to our system so we can look into this more in details. This is starting to be urgent. We can also provide a web link and ID to connect to our system.

Thank you,
========================
In default, doc2pdf.exe does call notepad.exe to print your text files to PDF files, it seems the default associated application for .txt format has been changed in your system, this will cause doc2pdf.exe can’t call default notepad.exe to print the text file, you can reset the notepad.exe as the default printing application to .txt format, doc2pdf.exe will support .txt format properly.

Also, we have created a new version of doc2pdf.exe to you, please download the new version from following URL,

XXXXXXXXXXXXXX

please use new version of doc2pdf.exe to overwrite old version of doc2pdf.exe first first, you can run following command line to convert your text files to PDF files properly,

"C:\Program Files\docPrint Pro v5.0\doc2pdf.exe" -s PrintTXTMode=1 -i "D:\temp\EKA_US_EN_48.pdf.txt" -o d:\temp\out.pdf

The new version of doc2pdf.exe does support following options to print the text file,

-s PrintTXTMode=0: Default, use notepad to print text file
-s PrintTXTMode=1: Use MS Word to print text file
-s PrintTXTMode=2: Use Internet Explorer to print text file

We hoping “-s PrintTXTMode=1” or “-s PrintTXTMode=2” options will work better for you.

VeryPDF
========================
Hello,

Thank you for this. Everything works fine now with PrintTXTMode=1. We also tried PrintTXTMode=0 and this still did not work. For your information the PrintTXTMode=2 also worked but we have chosen Mode=1.

Note: We always had assigned the TXT file to notepad but there seems to be an issue with notepad. We have tested this once after assigning the txt file to MSWord and still did not work and reassigned it to notepad and nothing changed. The solution you have provided worked perfectly.

Thank you very much!
=================================
Thank you for your message.

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 print

How do I call pdfprint from Windows Service or Local System to print the PDF file to network printer?

You should run pdfprint.exe from an interactive user account instead of default Local System User Account, because Local System User account can't access to network printer, we suggest you may use CreateProcessAsUser() function or RunAs.exe application to run pdfprint.exe from an interactive user account, then pdfprint.exe will able to print your PDF file to network printer properly.

Please refer to following solution, we hoping the following solution will helpful to you,

1. Please download CmdAsUser.exe from following page first,

http://verydoc.com/exeshell.html
http://verydoc.com/download/cmdasuser.zip

2. You can use CmdAsUser.exe to run pdfprint.exe from a special user account, e.g., Administrator user account,

CmdAsUser.exe Administrator . /p password /c "C:\pdfprint.exe" –printer \\verypdf-printerserver\myprinter C:\test.pdf

Please notice, you need modify user name and password in above command line.

3. You can call CmdAsUser.exe from your code to launch pdfprint.exe inside an interactive user account, then you can print your PDF files properly.

You may encounter Error #1314 when you switch the user account, please refer to following solution to solve Error #1314,

~~~~~~~~~~~~~~~
To resolve this issue:
1. Click Start, click Run, type "secpol.msc", and then press ENTER.
2. Double-click "Local Policies".
3. Double-click "User Rights Assignment".
4. Double-click "Replace a process level token".
5. Click "Add", and then double-click the "Everyone" group
6. Click "OK".
7. You may have to logout or even reboot to have this change take effect.

Please refer to two screenshots at below,

http://www.verydoc.com/images/err1314-1.png
http://www.verydoc.com/images/err1314-2.png

"To resolve Error #1314 error, you'll need to elevate the rights of the account calling CreateProcessAsUser() with the "Replace a process level token" right. To do so, open the Control Panel / Administrative Tools / Local Security Policy and add the user account to the "Replace a process level token" right. (You may have to logout or even reboot to have this change take effect.)"
~~~~~~~~~~~~~~~

Sometimes, Windows system can’t map computer name to IP address properly, for example, the following command line may not work in computers,

pdfprint -debug -chgbin 257 -printer "\\verypdf-server\Xerox Global Print Driver PCL"  "c:\temp\verypdf.pdf"

however, after we change the “\\verypdf-server” to IP address, it does work,

pdfprint -debug -chgbin 257 -printer "\\192.168.1.10\Xerox Global Print Driver PCL"  "c:\temp\verypdf.pdf"

so, you should better use IP address to instead of computer name if your system can’t map from computer name to IP address properly.

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 print

PDF Printer can’t print PDF file to network printer from Windows Service

Hello,

When using VeryPDF printpdf, it works fine from the windows command line.  However when we shell out to the operating system from within an application, and redirect the io to a file, we see that printpdf cannot find the printer that we are passing to it.  This seems to have begun happening when we moved to a new server.  Please note, if we shell out of the same application and run the –listprinter option and redirect the io to a file we can see that it is listing out the printer we are passing to it.

Please advise,

Thanks,

=========================================

Are you trying to call pdfprint.exe from Windows Service application or non-interactive user account (Local System Account or System account or others)? If yes, please notice an important matter, Service account and system accounts haven't privilege to access to network at default, please refer to following information,

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

In default, Windows does not enable the SYSTEM user account to access to network resources. The easiest method to bypass this is to run your app under a real account (interactive user account) that has network access rights.

If you're utilizing the Win2000 scheduler to start your app, it is possible to alter the account easily, right click your "task", select "Properties" menu item, and change the Run As: account.

If you are being launched by a custom service, change the account the service runs under. In Services, right click the service, select "Properties" menu item, switch to Logon tab, select "This account" and enter the account information.

If you can't do that, you are be able to grant the SYSTEM account privileges to things, see this article,

http://support.microsoft.com/default.aspx?scid=kb;EN-US;132679

and this one,

http://support.microsoft.com/default.aspx?scid=http://support.microsoft.com:80/support/kb/articles/Q124/1/84.asp&NoWebContent=1

but these are old and you may no longer be able to do this.

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

We have another solution to you, you can use VeryPDF CmdAsUser.exe application to run pdfprint.exe from an interactive user account, CmdAsUser.exe can be downloaded from following web page,

http://www.verydoc.com/exeshell.html

http://www.verydoc.com/download/cmdasuser.zip

after you download and unzip cmdasuser.zip to a folder, you can run following command line to print your PDF file to network printer,

CmdAsUser.exe Administrator . /p password /c "C:\pdfprint.exe" -printer "\\192.168.1.10\VeryPDFPrinter" C:\verypdftest.pdf

If you encounter Error #1314 problem with above command line, please refer to the solution of Error #1314 at following web page,

http://www.verydoc.com/exeshell.html

after everything is fine in CMD window, you can call above command line from your Service or ASP or PHP or C# source code, then you can print the PDF file to network printer properly.

VeryPDF

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