How to call PDFPrint Command Line from Windows Scheduler or Windows Service to print PDF files to network printer?

How to call PDFPrint Command Line from Windows Scheduler or Windows Service to print PDF files to network printer? When I tried to call pdfprint.exe from Windows Service application, it couldn't locate my network printer, how to solve this problem?

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

image

Thanks for your message. It seems you are running pdfprint.exe inside an non-interactive user account, because some network printers are not accessible from non-interactive user account or LocalSystem user account, you have to run pdfprint.exe inside an normal user account in order to access to the network printers, thanks for your understanding.

You can use runas.exe to run pdfprint.exe inside an normal user account instead of default LocalSystem user account or non-interactive user account.

If you are call pdfprint.exe from a script or your application, your script or application should be ran inside an administrator user account, just like you login under administrator user account, and type the command line in CMD window by manual.

You can't call pdfprint.exe command line from scheduler, service, etc. applications which run inside the non-interactive user account, because the non-interactive user account can't access to network printers.

You may also use CmdAsUser.exe to switch the user account (switch from local system user account to normal user account), you may download CmdAsUser.exe from this web page,

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

VeryPDF
----------------------------------
Please send me an example how to use this in powershell. I can print using some printers, but not all...

I need fast help how to modify script to print again. Worked fine with other printers, this one is not working!!!

Regards,
Customer
----------------------------------
You may give full control permission to Everyone user account to "ET0021B7219675" printer to try again, if you still have same problem, you may download CmdAsUser.exe from this web page,

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

and run following command line to try again,

CmdAsUser.exe Administrator . /p YourPassword /c "D:\VeryPDF\pdfprint.exe" -debug -printer "ET0021B7219675" D:\test.pdf

Please use correct password in above command line.

If you encounter 1314 error message, please look at the solution at below,

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

VeryPDF
----------------------------------
Worked. thanks!

Customer

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

How to extract tables from scanned PDF files or image based PDF files?

I can't seem to extract the table inside certain PDF files. When I use other software, however, the conversion is almost flawless. Can you assist to see which setting I should use to get the best result here? Thanks!

Attached is the file that contains table that I'm trying to extract.

image

Customer
----------------------------------------
Thanks for your sample PDF file, we noticed your PDF file was created from scanner, it's an image based PDF file, it doesn't contain any text information.

We have figured out a solution to you, please by following steps to extract tables from this scanned PDF file to plain text based tables.

1. Please download PDF to Text OCR Converter Command Line from this web page,

http://www.verypdf.com/app/pdf-to-text-ocr-converter/try-and-buy.html#buy
http://www.verypdf.com/pdf2txt/pdf2txtocrcmd.zip

2. After you download and unzip it to a folder, you may run following command line to convert this scanned PDF file to plain text based PDF file,

pdf2txtocr.exe -ocrmode 2 -forcefontsize 20 D:\downloads\file01.pdf D:\downloads\file02.pdf

Above command line will convert your scanned PDF file to a pure text based PDF file.

image

3. You can run following command line to convert new pure text based PDF file to text file,

pdf2txtocr.exe -layout D:\downloads\file02.pdf D:\downloads\file02.txt

The resultant text file contains text columns, you can import the text columns into MS Excel application easily.

image

4. You can also use PDF to Excel Converter Command Line or PDF Table Extractor to extract the tables from pure text based PDF file to CSV file, you may download these software from following web pages to try,

https://veryutils.com/pdf-to-excel-converter
https://veryutils.com/pdf-to-excel-converter-command-line

The PDF to Excel Converter Command Line software allows you extract tables from this PDF file and save to CSV files from command line.

In PDF Table Extractor software, you can draw rectangles to select the tables which you want to extract,

image

image

After you extract data to a CSV file, you can reuse the text data in tables in MS Excel application easily,

image

We suggest you may download these products from our website to try, if you encounter any problem with them, please feel free to let us know, we are glad to assist you asap.

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 to Excel Converter, PDF to Excel OCR Converter, PDF to Text OCR Command Line | Tagged , , , , | Leave a comment

Some characters on the right side are missing when I using your htmltopdf tool to convert HTML to PDF files

I am using your htmltopdf tool to convert HTML to PDF files, however i have noticed that from right side some of the chars are missing while generating PDF. Please look into this asap.

C:\pdfout\htmltopdf.dll --margin-top 25.4mm --margin-bottom 25.4mm --margin-left 15.4mm --margin-right 15.0mm 

The text from the right side is missing while converting PDF.

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

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

image

We suggest you may use Letter paper size to instead of A4 paper size to try again, for example,

htmltopdf.dll --margin-top 25.4mm --margin-bottom 25.4mm --margin-left 15.4mm --margin-right 15.0mm --page-size Letter D:\downloads\Documents\SC20151912151801581.htm D:\downloads\Documents\SC20151912151801581.pdf

We hope the Letter paper size will solve the text cropping problem on the right side for you, please give it a try.

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) | Tagged , , , , , | Leave a comment

PDFPrint Command Line can not find my printer when call it from PowerShell script

Hello,

I have a PowerShell script running,

$scandir="C:\PRINT_ORDERS"
$scanbackdir="C:\PRINT_ORDERS\backup"
$scanlogdir="C:\PRINT_ORDERS\log"
$pdftoprint=""
$printername="ET0021B7219675"
$verypdf='C:\Program Files\verypdf\pdfprint_cmd\pdfprint.exe'
Get-ChildItem "$scanlogdir\*.log" | Where LastWriteTime -LT (Get-Date).AddDays(-15) | Remove-Item -Confirm:$false
$scanlogname = Join-Path -Path $scanlogdir -ChildPath
"$($MyInvocation.MyCommand.Name)-$(Get-Date -Format 'MM-dd-yyyy').log"
echo "$(get-date) - Checking for any scanned pdf files in $scandir" | Out-File -Append $scanlogname

Get-ChildItem -Path $scandir -filter "*.pdf"| % {
$pdftoprint=$_
"$(get-date) - Printing file - $pdftoprint on Printer - $printername" |
Out-File -Append $scanlogname
echo $verypdf

& $verypdf  "-$" XXXXXXXXXXXXXXXX -raster2 -printer $printername $scandir\$pdftoprint | Out-File -Append $scanlogname
Start-Sleep -Seconds 30
#sleep 30
"$(get-date) - Moving file - $pdftoprint to - $scanbackdir directory" | Out-File -Append $scanlogname
Move-Item -force $scandir\$pdftoprint $scanbackdir | Out-File -Append
$scanlogname
sleep 2
}

Returns:

Thank you for choosing 'VeryPDF PDFPrint Command Line' product.
Can't locate the "ET0021B7219675" printer in this computer, please
double check the printer name and to try again.

verypdf list printers:

C:\Program Files\verypdf\pdfprint_cmd\pdfprint.exe" -listprinter
AnyDesk Printer
DHL Drucker
ET0021B7219675
Fax
HPMEINEAPO
Microsoft Print to PDF
Microsoft XPS Document Writer
OneNote for Windows 10
ZDesigner GK420d
Zebra GK420d UPS

Help urgently needed!
Customer
------------------------------------

image
Thanks for your message, we suggest you may run following command line by manual to try again,

pdfprint.exe -debug -printer "ET0021B7219675" D:\test.pdf

Could you please print the PDF file to "ET0021B7219675" printer properly by above command line?

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

Is there a Command Line only package to convert MS Office files to PDF?

Save PowerPoint presentations as PDF files

How can I automatically convert PowerPoint to PDF?

I need to convert .ppt/.pptx files to .pdf files (or images) through the command line using a 3rd party product.

I'm using this for a Windows 2008 server and I can't use any GUI or website as this needs to be an automated process.

I've tried libreoffice, but it has issues converting smart art.

Customer
-------------------------------
Is there a command-line interface only package to convert Microsoft Office files to PDF? Specifically, I need to be able to export

doc/docx (Word),
ppt/pptx (PowerPoint),
xls/xlsx (Excel), and
vsd/vsdx (Visio).

I am aware that an installation of LibreOffice comes with a CLI to convert documents, but it does not appear to support Visio diagrams. Is there a package that does?

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

image
Thanks for your message, VeryPDF docPrint Pro product can be used to convert MS Office documents to PDF files using command line operation, you may download and purchase "Document Converter (docPrint Pro)" from this web page,

http://www.verypdf.com/app/document-converter/try-and-buy.html#buy_pro
http://www.verypdf.com/artprint/docprint_pro_setup.exe

after you download and purchase it, you can register it using your license key, then you can use this software to convert from PowerPoint documents to PDF files without any restrictions.

You can run following command lines to convert your Office documents to PDF files and image files, from command line,

"C:\Program Files (x86)\docPrint Pro v8.0\doc2pdf.exe" -i C:\input.doc -o C:\output.pdf
"C:\Program Files (x86)\docPrint Pro v8.0\doc2pdf.exe" -i C:\input.doc -o C:\output.xps
"C:\Program Files (x86)\docPrint Pro v8.0\doc2pdf.exe" -i C:\input.doc -o C:\output.pcl
"C:\Program Files (x86)\docPrint Pro v8.0\doc2pdf.exe" -i C:\input.docx -o C:\output.pdf
"C:\Program Files (x86)\docPrint Pro v8.0\doc2pdf.exe" -i C:\input.doc -o C:\output.emf
"C:\Program Files (x86)\docPrint Pro v8.0\doc2pdf.exe" -i C:\input.doc -o C:\output.wmf
"C:\Program Files (x86)\docPrint Pro v8.0\doc2pdf.exe" -i C:\input.doc -o C:\output.bmp
"C:\Program Files (x86)\docPrint Pro v8.0\doc2pdf.exe" -i C:\input.xls -o C:\output.pdf
"C:\Program Files (x86)\docPrint Pro v8.0\doc2pdf.exe" -i C:\input.xlsx -o C:\output.pdf
"C:\Program Files (x86)\docPrint Pro v8.0\doc2pdf.exe" -i C:\input.xls -o C:\output.xps
"C:\Program Files (x86)\docPrint Pro v8.0\doc2pdf.exe" -i C:\input.xls -o C:\output.pcl
"C:\Program Files (x86)\docPrint Pro v8.0\doc2pdf.exe" -i C:\input.ppt -o C:\output.pdf
"C:\Program Files (x86)\docPrint Pro v8.0\doc2pdf.exe" -i C:\input.pptx -o C:\output.pdf
"C:\Program Files (x86)\docPrint Pro v8.0\doc2pdf.exe" -i C:\input.ppt -o C:\output.xps
"C:\Program Files (x86)\docPrint Pro v8.0\doc2pdf.exe" -i C:\input.ppt -o C:\output.pcl
"C:\Program Files (x86)\docPrint Pro v8.0\doc2pdf.exe" -i C:\input.vsd -o C:\output.tif
"C:\Program Files (x86)\docPrint Pro v8.0\doc2pdf.exe" -i C:\input.pdf -o C:\output.tif
"C:\Program Files (x86)\docPrint Pro v8.0\doc2pdf.exe" -i C:\input.ps -o C:\output.jpg
"C:\Program Files (x86)\docPrint Pro v8.0\doc2pdf.exe" -i C:\input.eps -o C:\output.jpg
"C:\Program Files (x86)\docPrint Pro v8.0\doc2pdf.exe" -R 90 -i C:\input.ppt -o C:\output.tif
"C:\Program Files (x86)\docPrint Pro v8.0\doc2pdf.exe" -R 270 -i C:\input.ppt -o C:\output.tif
"C:\Program Files (x86)\docPrint Pro v8.0\doc2pdf.exe" -i "http://www.verypdf.com/artprint/index.html" -o C:\output.pdf
"C:\Program Files (x86)\docPrint Pro v8.0\doc2pdf.exe" -i C:\input.pdf -o C:\out.tif -b 24
"C:\Program Files (x86)\docPrint Pro v8.0\doc2pdf.exe" -i C:\in.pdf -o C:\out.tif -b 1 -r 200x300
"C:\Program Files (x86)\docPrint Pro v8.0\doc2pdf.exe" -i C:\in.pdf -o C:\out.jpg -b 24 -r 200x300
"C:\Program Files (x86)\docPrint Pro v8.0\doc2pdf.exe" -i C:\*.doc -o C:\*.pdf
"C:\Program Files (x86)\docPrint Pro v8.0\doc2pdf.exe" -i C:\*.xls -o C:\*.pdf
"C:\Program Files (x86)\docPrint Pro v8.0\doc2pdf.exe" -i C:\*.xls -o C:\*.jpg
"C:\Program Files (x86)\docPrint Pro v8.0\doc2pdf.exe" -p 2 -i C:\input.ppt -o C:\output.pdf
"C:\Program Files (x86)\docPrint Pro v8.0\doc2pdf.exe" -a "Author" -i C:\input.dwg -o C:\output.pdf
"C:\Program Files (x86)\docPrint Pro v8.0\doc2pdf.exe" -l 10000 -i "http://www.verypdf.com/artprint/index.html" -o C:\output.pdf
"C:\Program Files (x86)\docPrint Pro v8.0\doc2pdf.exe" -s openpwd=123 -s ownerpwd=456 -s keylen=0 -s permission=3900 -i C:\test.doc -o C:\out.pdf
"C:\Program Files (x86)\docPrint Pro v8.0\doc2pdf.exe" -s ownerpwd=456 -s keylen=2 -s permission=3900 -i C:\test.doc -o C:\out.pdf
"C:\Program Files (x86)\docPrint Pro v8.0\doc2pdf.exe" -s checkprintable=1 -i C:\*.* -o C:\*.pdf
"C:\Program Files (x86)\docPrint Pro v8.0\doc2pdf.exe" -s checkprintable=1 -i C:\test.abc -o C:\out.pdf
"C:\Program Files (x86)\docPrint Pro v8.0\doc2pdf.exe" -s ShowHTMLStatusBar=1 -l 10000 -i http://www.verypdf.com -o C:\verypdf.pdf
"C:\Program Files (x86)\docPrint Pro v8.0\doc2pdf.exe" -s ShowHTMLStatusBar=1 -s timeout=60000 -i http://www.verypdf.com -o C:\verypdf.pdf
"C:\Program Files (x86)\docPrint Pro v8.0\doc2pdf.exe" -i C:\input.doc -o C:\output.txt
"C:\Program Files (x86)\docPrint Pro v8.0\doc2pdf.exe" -i C:\input.ppt -o C:\output.txt
"C:\Program Files (x86)\docPrint Pro v8.0\doc2pdf.exe" -i C:\input.xls -o C:\output.txt
"C:\Program Files (x86)\docPrint Pro v8.0\doc2pdf.exe" -i C:\Drawing1.vsd -o C:\out.pcl -s redirectprint=1
"C:\Program Files (x86)\docPrint Pro v8.0\doc2pdf.exe" -s "printer=PDF Printer1" -i C:\test.doc -o C:\out.pdf
"C:\Program Files (x86)\docPrint Pro v8.0\doc2pdf.exe" -s "convertviaserver=1" -i C:\test.doc -o C:\out.pdf
"C:\Program Files (x86)\docPrint Pro v8.0\doc2pdf.exe" -s "printer=PDF Printer1" -s "nochangedefaultprinter=1" -i C:\test.doc -o C:\out.pdf
"C:\Program Files (x86)\docPrint Pro v8.0\doc2pdf.exe" -# "test:123" -s runasmode=0 -i C:\test.doc -o C:\out.pdf
"C:\Program Files (x86)\docPrint Pro v8.0\doc2pdf.exe" -s "htmlheader=Page Header Test" -s "htmlfooter=Page Footer Test" -i http://www.verypdf.com -o C:\out.pdf
"C:\Program Files (x86)\docPrint Pro v8.0\doc2pdf.exe" -s "htmlheader=original" -s "htmlfooter=original" -i http://www.verypdf.com -o C:\out.pdf
"C:\Program Files (x86)\docPrint Pro v8.0\doc2pdf.exe" -s "htmlheader=&w &d &T" -s "htmlfooter=&u &D &p of &P" -i http://www.verypdf.com -o C:\out.pdf
"C:\Program Files (x86)\docPrint Pro v8.0\doc2pdf.exe" -s marginleft=0 -s margintop=0 -s marginright=0 -s marginbottom=0 -i http://www.verypdf.com -o C:\out.pdf
"C:\Program Files (x86)\docPrint Pro v8.0\doc2pdf.exe" -s PrintHTMLBackground=1 -i http://www.verypdf.com -o C:\out.pdf
"C:\Program Files (x86)\docPrint Pro v8.0\doc2pdf.exe" -s Office2TXTViaPrinter=1 -i C:\test.doc -o C:\out.txt
"C:\Program Files (x86)\docPrint Pro v8.0\doc2pdf.exe" -i C:\test.doc -o C:\out.txt
"C:\Program Files (x86)\docPrint Pro v8.0\doc2pdf.exe" -i C:\test.pdf -o C:\out-%03d.tif -c 5 -b 24 -r 200
"C:\Program Files (x86)\docPrint Pro v8.0\doc2pdf.exe" -i C:\test.pdf -o C:\out-%03d.tif -c 32773 -b 24 -r 200
"C:\Program Files (x86)\docPrint Pro v8.0\doc2pdf.exe" -i C:\test.pdf -o C:\out-%03d.tif -c 4 -b 1 -r 200
"C:\Program Files (x86)\docPrint Pro v8.0\doc2pdf.exe" -i C:\test.pdf -o C:\out.tif -c 4 -b 1 -r 200
"C:\Program Files (x86)\docPrint Pro v8.0\doc2pdf.exe" -i C:\test.rtf -o C:\out.pdf -s ShowOfficeUI=1
"C:\Program Files (x86)\docPrint Pro v8.0\doc2pdf.exe" -i C:\test.doc -o C:\out.pdf -s SilentPrintOffice=1
"C:\Program Files (x86)\docPrint Pro v8.0\doc2pdf.exe" -i C:\test.doc -o C:\out.pdf -s killoffice=1
"C:\Program Files (x86)\docPrint Pro v8.0\doc2pdf.exe" -i http://www.verypdf.com -o C:\out.tif -s colorspace=CMYK
"C:\Program Files (x86)\docPrint Pro v8.0\doc2pdf.exe" -i http://www.verypdf.com -o C:\out.tif -s colorspace=CMYK -s brightness=200
"C:\Program Files (x86)\docPrint Pro v8.0\doc2pdf.exe" -s printer=pdf01 -s outdebuglog=1 -s nochangedefaultprinter=1 -i C:\test1.doc -o C:\test1.pdf
"C:\Program Files (x86)\docPrint Pro v8.0\doc2pdf.exe" -s printer=pdf02 -s outdebuglog=1 -s nochangedefaultprinter=1 -i C:\test2.doc -o C:\test2.pdf
"C:\Program Files (x86)\docPrint Pro v8.0\doc2pdf.exe" -s outdebuglog=1 -s printer=auto -s nochangedefaultprinter=1 -i C:\test.doc -o C:\test.pdf
"C:\Program Files (x86)\docPrint Pro v8.0\doc2pdf.exe" -i C:\test.txt -o C:\out.tif -b 1 -s PrintTXTMode=1
"C:\Program Files (x86)\docPrint Pro v8.0\doc2pdf.exe" -i C:\test.txt -o C:\out.tif -b 1 -s PrintTXTMode=2
"C:\Program Files (x86)\docPrint Pro v8.0\doc2pdf.exe" -s OptUNCFile=1 -i "\\192.168.1.12\d\temp\test.docx" -o "\\192.168.1.12\d\temp\test.docx.tif"
"C:\Program Files (x86)\docPrint Pro v8.0\doc2pdf.exe" -f 9 -i X:\invoices\Temp-print-queue\20*.doc -o X:\invoices\*.pdf
"C:\Program Files (x86)\docPrint Pro v8.0\doc2pdf.exe" -s convertprn=1 -i D:\test.prn D:\out.pdf
"C:\Program Files (x86)\docPrint Pro v8.0\doc2pdf.exe" -s convertprn=1 -i D:\test.prn D:\out.png
"C:\Program Files (x86)\docPrint Pro v8.0\doc2pdf.exe" -s convertprn=1 -c 4 -b 1 -r 200 -i D:\test.prn D:\out.tif
"C:\Program Files (x86)\docPrint Pro v8.0\doc2pdf.exe" -s -s makebwpdf=1 -i D:\color.pdf D:\grayscale.pdf

You can call doc2pdf.exe from your application with CreateProcess() or exec() functions to convert office files to PDF files easily.

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)
Posted in docPrint Pro | Tagged , , , , , , , , , | Leave a comment
Page 1 of 1,46312345...102030...Last »