PDF Print command line is unable to find the printers while printing from a SYSTEM user account on windows server 2016

Dear Verypdf,

We have been using a licensed version of pdfprint command line on a windows server 2012 for several years now. Recently we migrated to a new windows server 2016 and verypdf doesn't seem to find the printers anymore while printing from a SYSTEM user (from a php platform).

http://www.verypdf.com/app/pdf-print-cmd/try-and-buy.html#buy

We have installed and copied all printers in the registry to HK_USERS.

The -listprinter command provides the list of all printers correctly.
Tested with both local and network printers with all possible alias combinations (IP/name/..) all returning the same error message.

The debug log show following:
Reading Command Line options...
Copyright (C) VeryPDF.com
"XXX\pdfprint.exe" "-$" "XXX" "-printer" "XXX" "-debug" "-logtofile" "logloglog.ext" "-pdforient" "1" "-scalex" "100" "-scaley" "100" "XXX\label_test.pdf"
Version Build Date: Aug 7 2016
Try to load 'WINSPOOL.DRV' file...
Load 'WINSPOOL.DRV' file OK.
Current default printer is 'Microsoft Print to PDF'.
SetDefaultPrinter to 'XXX' printer, return code = 0.

The exec command shows:
{"output":"FAIL","cmd":"XXX\\pdfprint.exe -$ XXX -printer \\10.100.X.X\\XXX -debug -logtofile \"logloglog.txt\" -pdforient 1 -scalex 100 -scaley 100 XXX\\label_test.pdf","result":"Can't locate the \"XXX\" printer in this computer, please double check the printer name and to try again."}

Do you maybe have any other suggestions?

Kind regards,
Customer
-----------------------------------------

image
Thanks for your message, you can use "CmdAsUser Command Line Tool" or "VeryPDFComRunCmd COM Component" to run pdfprint.exe inside an interactive user account instead of default SYSTEM user, you will able to get it work properly.

You may download "CmdAsUser Command Line Tool" or "VeryPDFComRunCmd COM Component" from this web page to try,

https://www.verydoc.com/exeshell.html#CmdAsUser_Command_Line_Tool
https://www.verydoc.com/download/cmdasuser.zip

You can run following command line to run pdfprint.exe from an interactive user account,

CmdAsUser.exe Administrator . /p password /c "XXX\pdfprint.exe" "-$" "XXX" "-printer" "XXX" "-debug" "-logtofile" "logloglog.ext" "-pdforient" "1" "-scalex" "100" "-scaley" "100" "XXX\label_test.pdf"

You can also use a COM component to run pdfprint.exe from an interactive user account,

https://www.verydoc.com/exeshell.html#VeryPDFComRunCmd_COM_Component

Please look at following web page for more information,

http://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

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)
Posted in PDF Print | Tagged , , | Leave a comment

PDFPrint SDK and PS to PDF Converter Developer License

Hello, I have a few questions about your technology. We currently use some competing products in our virtual printer, but we’re looking around for some better technology and we’ve been very impressed so far as we test out your stuff.

1. Does the PDFPrint SDK offer any options to send the PDF or PDF raster file DIRECTLY to the printer (port 9100 RAW, LPD, etc.), or must it be submitted to a local, logical printer on the OS?

2. Does the VeryDoc DOCPrint SDK allow us to rebrand the installer and the logical printer? Is there a silent installer available? Can it be set to call an EXE with the resulting PDF instead of popping up a save dialog?

3. Which version of the PS to PDF converter would we need if we wanted to distribute the EXE along with our existing virtual printer and use it silently for conversion?

Looking forward to hearing your answers!
Customer
----------------------------------------

image
>>1. Does the PDFPrint SDK offer any options to send the PDF or PDF raster file DIRECTLY to the printer (port 9100 RAW, LPD, etc.), or must it be submitted to a local, logical printer on the OS?

Thanks for your message, you can use PDFPrint SDK to print the PDF files or PDF Raster files to local or network printers, however, it can't print the PDF files to Printer Ports (such as LPT1:, LPT2:, etc. ports) directly.

If you wish print the PDF files to Printer Ports directly, you may use following solution to try,

1. You can use VeryDOC PDF to Vector Converter to convert from PDF files to PCL files first, you can download the trial version of VeryDOC PDF to Vector Converter from this web page,

https://www.verydoc.com/pdf-to-vector.html
http://www.verydoc.com/pdf2vec_cmd.zip

After you download it, you can run following command line to convert your PDF files to PCL files,

  pdf2vec.exe C:\in.pdf C:\out.pcl

Please notice, if your Printer Port accepts PS data format only, you need convert from PDF files to PS files,

  pdf2vec.exe C:\in.pdf C:\out.ps

2. You can send the converted PCL or PS files to Printer Port directly by following command lines,

copy /b C:\out.pcl LPT1:
copy /b C:\out.ps LPT2:
copy /b C:\out.pcl \\TP123\LaserJet
copy /b C:\out.ps \\TP123\LaserJet
copy /b C:\FILENAME.PRN \\TP123\LaserJet

We hope above solution will useful to you, you may give it a try.

>>2. Does the VeryDoc DOCPrint SDK allow us to rebrand the installer and the logical printer? Is there a silent installer available? Can it be set to call an EXE with the resulting PDF instead of popping up a save dialog?

Thanks for your message, yes, we have OEM License for our products, with the OEM License, we will provide a silent installer to you, we will help you to rebrand the installer and printer's name, such as, with your company name or something else.

We can also assist you to suppress the saving dialog for PDF creation in the OEM License, if you are interest in the OEM License, please feel free to let us know, the exact name that you are interest in, we will provide more information to you asap.

>>3. Which version of the PS to PDF converter would we need if we wanted to distribute the EXE along with our existing virtual printer and use it silently for conversion?

If you wish integrate PS to PDF Converter into your software for redistribution, you will need to purchase the Developer License or OEM License for PS to PDF Converter software.

VeryDOC

VN:F [1.9.20_1166]
Rating: 0.0/10 (0 votes cast)
VN:F [1.9.20_1166]
Rating: 0 (from 0 votes)
Posted in docPrint Pro, PDF Print | Tagged | Leave a comment

VeryPDFPCLConverter() API return -2 code, what's the meaning for the -2 error code?

Could you please provide us with a list of "all" possible return values that could be received when calling the "VeryPDFPCLConverter()" API in pcltoolsdk.dll? We currently have one workstation where PCL documents are converting fine however every other workstation results in a value of -2 being returned from the API call and no PDF file is generated. Also, could you please provide a list of "all" files that "must" be deployed (dlls, fonts, etc.) if we are using the pcltoolsdk.dll API call. We have been unable to find information on either of these topics. Thank you in advance for your assistance.

http://www.verypdf.com/app/pcl-converter/try-and-buy.html
http://www.verypdf.com/pcltools/pcltoolsdk.zip

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

image
"-2" is mean the current folder hasn't pcltool.dll library, you need put following DLL files into same folder in order to get "VeryPDFPCLConverter()" API work properly,

cimage.dll
pcl.dll
pcltool.dll
pcltoolsdk.dll
pdfsdk.dll
pdftoolsdk.dll
fonts\*.*

image

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)
Posted in PCL Converter | Tagged | Leave a comment

How to change or customize PDF paper size? I want change the PDF page size from 8.5x11 inch to 6x9 inch.

I want to resize my pdf page size without cropping the page.

I have a pdf file which page size is 8.5 x 11 in. I want to make the page size 6x9 in.

I don't want to crop or loose any part of the page. I just want to resize it.

Please help me by providing the correct procedure.

Thanks
Customer
-------------------------------------

image
The method presented in the previous comment is usually referred to as "re-frying" a PDF file - you are printing a PDF file to a PDF file. And usually - unless you know exactly what you are doing and what the implications of refrying are - it's a bad idea. It will destroy a lot of high quality PDF content and you will end up with a low quality PDF file.

However, VeryPDF has a "Advanced PDF Tools Command Line" and a "Advanced PDF Tools GUI" software, you can use these software to resize PDF page size, for example, you can change the PDF page size from Letter to A4, Letter to A3, A4 to Letter, A3 to A4, A4 to A3, etc., please look at following web page for more information,

http://www.verypdf.com/pdfinfoeditor/resize-paper/resize.htm
http://www.verypdf.com/app/advanced-pdf-tools/try-and-buy.html#buy-cmd
http://www.verypdf.com/pdfinfoeditor/advanced_pdf_tools_cmd.zip

Some important options in "Advanced PDF Tools Command Line" that can be used to change the PDF paper size and PDF page margins,

星星 Change page size: -x

pdftools.exe -i "C:\input.pdf" -o "C:\output.pdf" -x "llx lly urx ury"   

Where the parameter "llx lly urx ury" is a form of rectangles, which is described in remark one.

Rectangles are used to describe locations on a page and bounding boxes for a variety of objects, such as fonts. A rectangle is written as an array of four numbers giving the coordinates of a pair of diagonally opposite corners. Typically, the array takes the form [llx lly urx ury] specifying the lower-left x, lower-left y, upper-right x, and upper-right y coordinates of the rectangle, in that order. The other two corners of the rectangle are
then assumed to have coordinates (llx, ury) and (urx, lly).

Usually there are three size unit such as point (pt), inch (in), millimeter (mm). Point size can be converted to inch like point/72=inch, and point to millimeter like point/72*25.4=millimeter. For example, the 595.5pt can be 8.27in or 210.06mm by calculating as:

595.5/72=8.27
595.5/72*25.4=210.06

星星 set page scale: -z

pdftools.exe -i "C:\input.pdf" -o "C:\output.pdf" -z "90 110"   

means set page width to 90% of primary page width, and page height to 110% of primary page height.

星星 Set custom page content scale: -j

pdftools.exe -i "C:\input.pdf" -o "C:\output.pdf" -j "60% 70% true"   

where the first parameter means to set page content to 60% of the page width and the second parameter to 70% of the page height, and the third parameter is a Boolean type value to set whether to center on page.

Note:

You can also use

pdftools.exe -i "C:\input.pdf" -o "C:\output.pdf" -j "60 70 true"    

to set page content, where 60 and 70 are not scales, but the real size of the content. If you use -x to set page size, you can use -j to scale to fit the page by using the last two parameters of -x, e.g.

pdftools.exe -i "C:\input.pdf" -o "C:\output.pdf" -x "0 0 595.5 842.25"  -j "595.5 842.25 true"   

or

pdftools.exe -i "C:\input.pdf" -o "C:\output.pdf" -x "0 0 595.5 842.25"  -j "50% 100% true"

星星 Change page margin size: -#

pdftools.exe -i "C:\input.pdf" -o "C:\output.pdf" "-#" "25"   

to set the page margin 25 pt.

星星 Change margin offset: -~

pdftools.exe -i "C:\input.pdf" -o "C:\output.pdf" "-~" "20,30"  

where the first parameter is x-offset and the next y-offset.

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)
Posted in Advanced PDF Tools | Tagged , , , | Leave a comment

How to increase the header margins in html2any app?

Hi,

We are using html2any converter in our web app but we see a couple of problems during creating the PDF file.

We use header and footer for every page and when we have let's say a big box that does not fit on the page, it is split and moved to the next page or pages. The problem is that if we put some padding-top or margin-top, this is used only for the first page and on the every next page because of the header the text is cut off. It is like the header is put on the beginning of the text and could not be fixed with paddings or margins. See the attached images.

screenshot1:

http://support.verypdf.com/files/0719/63355AFCB95D340_okjbppiodicomjbf.png

screenshot2:

http://support.verypdf.com/files/0719/65751F56283E340_enfdfdmnlehkobhm.png

The other problem is that break-inside: avoid property is not working.

screenshot3:

http://support.verypdf.com/files/0719/65C9C323695F340_ngomigfhbpakmgbh.png

Here are the files attached. I am using the command for header and footer with html files (--header-html) also attached.

If you need some more information, please let me know.

Regards,
Customer
-------------------------------------------
Thanks for your sample files, we have checked your files and understood your problem now.

We suggest you may add some margins to header and footer areas in resultant PDF file, for example,

html2any.exe -margin-top 20 -margin-bottom 20 D:\downloads\in.html D:\downloads\out.pdf

after you get the PDF file, you can use "PDF Stamp Command Line" to stamp header and footer text to the PDF pages, you may download "PDF Stamp Command Line" from this web page to try,

http://www.verypdf.com/app/pdf-stamp/try-and-buy.html#buy-cmd
http://www.verypdf.com/pdfstamp/pdfstamp_cmd.zip

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

I tried to put the margin top and bottom and it was OK with the command. But when we started using the html2any we had a problem with the command "html2any.exe" and you suggested us to use the command "htmltopdf.dll" and with this one it is not working.

Also is there any other way to put the margins and header and footer so we do not need to buy another app? Also this leads to additional development work, tests and delays solving the problem.

If there is another way to solve the problem, we would like to check it also, thanks!

Regards,
Customer
-------------------------------------------
Thanks for your message, you can use Advanced PDF Tools GUI or Advanced PDF Tools Command Line software to increase the margins to PDF pages, please look at following web pages for more information,

http://www.verypdf.com/wordpress/201111/how-to-edit-pdf-content-size-and-page-margins-12891.html

http://www.verypdf.com/wordpress/201109/use-advanced-pdf-tools-to-increase-pages-margin-to-pdf-files-2482.html

http://www.verypdf.com/pdfinfoeditor/resize-paper/resize.htm

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)
Posted in HTML Converter (htmltools), VeryPDF SDK & COM | Tagged , , , | Leave a comment
Page 4 of 1,432« First...23456...102030...Last »