pdf print

Problems to send the pdf to printer over asp.net source code, pdfprint.exe can not find the printer from ASP.NET source code

Hi,

I am using VeryPDF PDFPrint Command Line software to print my PDF files from ASP.NET source code,

https://www.verypdf.com/app/pdf-print-cmd/index.html

I'm testing the pdfprint command line tool, my idea is to call it from asp.net code:

Dim startInfo As System.Diagnostics.ProcessStartInfo = New System.Diagnostics.ProcessStartInfo(strExe, strArguments)

And here:

* strExe: pdfprint.exe location
* strArguments: -printer PRINTERNAME FILETOPRINT

With another ms-dos commands working fine, for example:

copy PRINTER FILETOPRINT

But with pdfprint, the printer doesn't print, I have launched the debug option and this is the result:
------------------------
Read Command Line options...
Copyright (C) VeryPDF.com
"LOCATION\pdfprint.exe" "-debug" "-printer" PRINTER "FILETOPRINT"
You have 99 times to evaluate "VeryPDF PDFPrint Command Line" product, you may purchase a full version from http://www.verypdf.com/app/pdf-print-cmd/index.html to remove restrictions.
Version Build Date: Jun 21 2018
Try to load 'WINSPOOL.DRV' file...
Load 'WINSPOOL.DRV' file OK.
Current default printer is 'Microsoft Print to PDF'.
AddPrinterConnection to 'PRINTER' printer, return code = 0.
AddPrinterConnection return an error code (87).

Can't locate the PRINTER printer in this computer, please double check the printer name and to try again.

------------------------

However, if launch the same command directly in ms-dos console, it works fine.

I would like to use this tool because I could set the tray to print with "papersource" option, and with copy command this is not possible.

Please, can you help me?

Thanks a lot in advance.
Customer
====================================================
Sorry for this matter, the error message is,

-----------------------

Can't locate the PRINTER printer in this computer, please double check the printer name and to try again.

-----------------------

When you can call pdfprint.exe from ASP.NET code, the ASP.NET and pdfprint.exe are run inside SYSTEM user account, the physical printer can't be accessed from SYSTEM user account, this is the reason why pdfprint.exe can not access to this physical printer.

You need to set your ASP.NET run inside an interactive user account instead of default SYSTEM user account, if so, pdfprint.exe will able to access to the physical printer properly.

You may look at following web page for more information about "Application Pool Identities",

-- Application Pool Identities

https://docs.microsoft.com/en-us/iis/manage/configuring-security/application-pool-identities

-- How do I configure the user account for an application pool in IIS?

You can change which user account is being used by right clicking "Application Pool" > "Advanced Settings" > Under "Identity", you can click the "…" and look for a different user account.

Whenever a new application pool is created in IIS, it will use an account defined by IIS (usually it’s called "ApplicationPoolIdentity") which is under the "Identity" section. Identities are similar to a "account" you would use to log into your window account example. This defines what users are allows to run that specific application.

User accounts could be restrictive and prevent the "ApplicationPoolIdentity" from running the Activate mobile application (either it’s under the default application pool or another application pool). You can change which user account is being used by right clicking "Application Pool" > Advanced Settings > Under "Identity", you can click the "…" and look for a different user account.

Application Pool Identity

image

You can either choose any of the service accounts on the server, or choose a specific user to run a specific application. When a user is chosen, click OK and restart the application pool.

-- How to find out which user account is running ASP.NET?

Use this code:

VB.NET

Response.Write("Windows Account which runs ASP.NET is: " & Environment.Username)

C#

Response.Write("Windows Account which runs ASP.NET is: " + Environment.Username);

If you debug your application in Visual Studio on localhost you'll get your user name. If you deploy ASP.NET web application on IIS 6.0 web server, you will probably get NETWORK SERVICE account, because that is default user running IIS.

VeryPDF

VN:F [1.9.20_1166]
Rating: 2.0/10 (1 vote cast)
VN:F [1.9.20_1166]
Rating: 0 (from 0 votes)
ocr products, pdf to text ocr command line, postscript to text/pdf/image

How to convert Postscript files to PDF files with OCR function?

Hello,

I am looking for a solution where 3rd party products can print documents to our print driver (which generates a PS file) and want to convert internally PS to PDF file and if it's an image format, would be an OCR version of PDF file so it's readable.

Which component or product of yours can do this for us? We are looking at a windows workstation solution that can be converted locally.

If you see a different way of doing the same thing, please suggest what we can evaluate.

Thank you,
Customer
----------------------------------------

image
Thanks for your message, you can use two of our products to finish this task,

1. You can use "Postscript to PDF Converter Command Line" software to convert from Postscript files to PDF files first,

https://www.verydoc.com/ps-to-pdf.html

You can run following command line to convert from Postscript files to PDF files directly,

ps2pdf.exe C:\input.ps C:\output.pdf

2. You can use "VeryPDF OCR to Any Converter Command Line" to convert from image based PDF files to OCRed PDF files,

https://www.verypdf.com/app/ocr-to-any-converter-cmd/try-and-buy.html

You can run following command lines to convert from image based PDF files to OCRed PDF files directly,

ocr2any.exe -ocr -ocrmode 1 test_multi_columns.pdf _test\_test_multi_columns_mode1.pdf
ocr2any.exe -ocr -ocrmode 2 test_multi_columns.pdf _test\_test_multi_columns_mode2.pdf
ocr2any.exe -ocr -ocrmode 3 test_multi_columns.pdf _test\_test_multi_columns_mode3.pdf
ocr2any.exe -ocr -ocrmode 4 test_multi_columns.pdf _test\_test_multi_columns_mode4.pdf

If you have any question for these products, 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)
doc to any converter, html converter (htmltools), pdf security, pdf split-merge, pdf stamp

How to overlay an image into a specific location in an existing PDF on a certain page? More PDF Command Line Tools Questions.

I have a few questions:
1. Can I overlay an image into a specific location in an existing PDF on a certain page.
2. I need to convert HTML to a PDF, manipulate an existing PDF, add images to an existing PDF, and pull OCR/Text from a PDF, convert MS Word to a PDF, Append to an existing PDF,
3. Extracting a page out of a PDF
4. Signing a PDF and Adding a signature image to a pdf

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

image
>>1. Can I overlay an image into a specific location in an existing PDF on a certain page.

Yes, you can use PDFStamp Command Line software to overlay an image into a specific location in an existing PDF on a certain page, you may download the trial version of PDFStamp Command Line software from following web page to try,

for example,

pdfstamp.exe -PDF pdftest.pdf -O "_testout.pdf" -AI "testseal.png" -MLR100 -MTB100 -W50 -H50 -opacity50

pdfstamp.exe -PDF pdftest.pdf -O "_testout1.pdf" -AI "stamper1.jpg" -mlr100 -mtb100 -imgw200 -imgh200 -opacity80 -transparentcolor#FFFFFF

pdfstamp.exe -PDF pdftest.pdf -O "_testout2.pdf" -AI "stamper2.jpg" -mlr100 -mtb100 -imgw100 -imgh100 -opacity80 -transparentcolor#FFFFFF

pdfstamp.exe -PDF pdftest.pdf -O "_testout3.pdf" -AI "barcode.png" -mlr100 -mtb100 -imgw200 -imgh200 -opacity100 -transparentcolor#FFFFFF

>>2. I need to convert HTML to a PDF, manipulate an existing PDF, add images to an existing PDF, and pull OCR/Text from a PDF, convert MS Word to a PDF, Append to an existing PDF,

-- HTML to PDF Converter Command Line

Thanks for your message, you may download "HTML Converter Command Line (htmltools.exe)" from our website to convert from HTML files to PDF files, "HTML Converter Command Line (htmltools.exe)" can be used to convert from HTML files to PDF files quickly,

http://www.verypdf.com/app/html-converter/try-and-buy.html#cmd
http://www.verypdf.com/htmltools/htmltools.zip

after you download and unzip it to a folder, you can run following command lines to convert your HTML file or a URL to PDF file,

htmltools.exe -$ XXXXXXXXXXXXXXXXXX test.htm _test1.pdf
htmltools.exe -$ XXXXXXXXXXXXXXXXXX http://www.verypdf.com _web1.pdf

htmltools.exe -$ XXXXXXXXXXXXXXXXXX -html2pdf2 test.htm _test_html2pdf2.pdf

htmltools.exe -$ XXXXXXXXXXXXXXXXXX -webkit test.htm _test_webkit.pdf
htmltools.exe -$ XXXXXXXXXXXXXXXXXX -webkit http://www.verypdf.com _web_webkit.pdf
htmltools.exe -$ XXXXXXXXXXXXXXXXXX -webkit http://www.verypdf.com/artprint/docprintsdk.htm _verypdf_webkit.pdf

htmltools.exe -$ XXXXXXXXXXXXXXXXXX -webkit2 test.htm _test_webkit2.pdf
htmltools.exe -$ XXXXXXXXXXXXXXXXXX -webkit2 -width 1080 -height 1080 http://www.verypdf.com _web_webkit2.pdf
htmltools.exe -$ XXXXXXXXXXXXXXXXXX -webkit2 -width 1080 -height 1080 http://www.verypdf.com/artprint/docprintsdk.htm _verypdf_webkit2.pdf

In general, -webkit and -webkit2 options will work better for you, you may call htmltools.exe from your application to convert from web pages to PDF files easily, if you encounter any problem with htmltools.exe application, please feel free to let us know, we will assist you asap.

-- MS Word to PDF Converter Command Line

You can use VeryDOC DOC to Any Converter Command Line to convert from MS Word documents and other office documents to PDF files,

https://www.verydoc.com/doc-to-any.html

-- Pull OCR/Text from a PDF

You can use VeryPDF PDF to Text OCR Converter Command Line to extract text contents from PDF files using OCR or without OCR, PDF to Text OCR Converter Command Line can extract text contents from scanned PDF files using OCR technology,

https://www.verypdf.com/app/pdf-to-text-ocr-converter/index.html

-- Append to an existing PDF

You can use VeryPDF PDF Split-Merge to merge more PDF files into a single PDF file,

https://www.verypdf.com/app/pdf-split-merge/index.html

>>3. Extracting a page out of a PDF

You can use VeryPDF PDF Split-Merge to extract a page or a page range from a PDF file and save to a new PDF file,

https://www.verypdf.com/app/pdf-split-merge/index.html

>>4. Signing a PDF and Adding a signature image to a pdf

You may use "VeryPDF PDF Security and Signature (Shell & COM & SDK)" to add PDF Signature and Signature Image to a PDF file,

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

If you encounter any problem with these software, 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)
pdf security

How to protect PDF files with 128-bit AES and 256-bit AES encryption?

Dear Support,

We have the product VeryPDF PDF Toolbox Command Line. As far as I know it can encrypt the PDF file with 128-bit. How could we increase the security level up to AES-256 encryption?

Please inform me if there is another product or an upgrade for the current. It is important to continue using via Command line.

I'm looking forward for your advice.

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

image

Thanks for your message, VeryPDF PDF Toolbox Command Line doesn't support AES-256 encryption yet, however, you can download and try "VeryPDF PDF Security and Signature (Shell & COM & SDK)" software, this software supports AES-256 encryption,

https://www.verypdf.com/app/pdf-security-and-signature/try-and-buy.html
https://www.verypdf.com/dl2.php/pdf-security-signature-cmd-sdk-com.zip

image

You can run following command lines to encrypt your PDF files with 128-bit AES and 256-bit AES encryption,

pdfsecure.exe -openpwd 123 -ownerpwd 456 -perm 0 -keylen 128 -stringcrypt AES256 -streamcrypt AES256 -forceencrypt -linearize readme.pdf _readme_out_aes256.pdf


pdfsecure.exe -openpwd 123 -ownerpwd 456 -perm 0 -stringcrypt AES128 -streamcrypt AES128 readme.pdf _readme_out_aes128.pdf


pdfsecure.exe -openpwd 123 -ownerpwd 456 -perm 0 -keylen 128 -stringcrypt rc4 -streamcrypt rc4 -forceencrypt -linearize readme.pdf _readme_out_rc4.pdf


pdfsecure.exe -newencrypt "--encrypt 123 456 256 --force-R5 --print=full --modify=none" readme.pdf _readme_out_aes256_new_method.pdf


pdfsecure.exe -newencrypt "--encrypt UserPassword OwnerPassword 256 --force-R5 --print=full --modify=none" readme.pdf _readme_out_aes256_new_method.pdf

If you want to study more information about "-newencrypt" parameter, please look at following web page,

https://www.verypdf.com/wordpress/202010/how-to-use-newencrypt-option-in-pdf-security-and-signature-software-45942.html

VeryPDF

See Also:

Apple iPhone can not view the password protected PDF files which encrypted by AES256 bit encryption method
https://www.verypdf.com/wordpress/201911/apple-iphone-can-not-view-the-password-protected-pdf-files-which-encrypted-by-aes256-bit-encryption-method-44866.html

How to fill and submit PDF forms into our database and add signatures to PDF files?
https://www.verypdf.com/wordpress/201905/how-to-fill-and-submit-pdf-forms-into-our-database-and-add-signatures-to-pdf-files-44529.html

Encrypting PDFs with your encryption software with 25bit AES encryption
https://www.verypdf.com/wordpress/201902/encrypting-pdfs-with-your-encryption-software-with-25bit-aes-encryption-44356.html

I want pdf digital signature and pdf page editor
https://www.verypdf.com/wordpress/201604/i-want-pdf-digital-signature-and-pdf-page-editor-42616.html

PDF Encryption Algorithms and Key Length
https://www.verypdf.com/wordpress/201502/pdf-encryption-algorithms-and-key-length-41408.html

How to add a certificate sign to PDF files?
https://www.verypdf.com/wordpress/201501/how-to-add-an-certificate-sign-to-pdf-files-41251.html

How to linearize PDF files? How to Enable Fast Web View in a PDF file?
https://www.verypdf.com/wordpress/201410/how-to-linearize-pdf-files-how-to-enable-fast-web-view-in-a-pdf-file-40999.html

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

VeryPDF PDF Security Supports PDF encryption, decryption, signature creation and verification in C/C++, VB, Delphi, PHP, Python, C#, Java or Batch, Shell, Command Line

VeryPDF PDF Security software contains two functions: Electronic Signature and Encryption. You can use this software to encrypt your PDF documents with password protection with 256-bit AES encryption. Use digital signatures to ensure the authenticity and integrity of PDF documents. VeryPDF PDF Security software is available as a shell tool for batch processing using the command line and as an API to integrate with C#, Visual Basic, Java, C/C++, etc. program languages.

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

image

PDF/A Compliant Digital Signatures - Add and verify digital signatures.

Encrypt PDF Documents - Protect PDF documents from unauthorized access.

Stamp PDF Documents - Manage document revisions and include read-only stamps as text or images.

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

PDF Security Highlights Features:
* Apply simple, advanced and qualified electronic signatures.
* PDF/A compliant signature.
* Support European signature specification.
* Add optional visual appearance of the signature (page, size, color, position, text, background image, etc.).
* Support various types of password providers.
* Windows certificate store.
* Online signature service.
* Swisscom full contract service.
* GlobalSign digital signature service.
* Support multi-signature.
* Verify digital signature.
* Encrypt and decrypt PDF documents.
* Set document metadata.
* Optimized for the web viewing (linearization).

- Set encryption and restrictions to PDF documents, including:
* print document.
* Modify the content of the document.
* Extract or copy content.
* add comment.
* Fill in form fields.
* Content extraction for accessibility.
* Assembly files.
* Print in high resolution.
* Set encryption and stream filters.
* Set encryption strength.
* Set owner and user passwords.

- Stamping function
* Mark up text, images or vector graphics.
* Add text or image stamps with hyperlinks.
* Stamping of signed documents preserves existing signatures

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

- Supported input formats
* PDF 1.0 to 1.7
* PDF 2.0
* PDF/A-1, PDF/A-2, PDF/A-3

- Supported output formats
* PDF 1.0 to 1.7
* PDF 2.0
* PDF/A-1, PDF/A-2, PDF/A-3

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