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

How to silently capture what is printed as a PDF file?

Hello,

I am trying docPrint Pro v8 in order to archive the following:

1. Silently capture what is printed as a PDF file.

2. Produce a text file for every page printed.

My question is how I can make docPrint Pro operation silent? That is, I don't want the user to have to click on various dialogs that pop up through the process.

Also, I want the generation of the text file to be silent as well without having the user to start the PDF tools. Are all these possible?

Also, is there a way to capture specific information of the printed page contents in text form, instead of capturing the whole page contents?

Thanks,
Customer
----------------------------------------------
>>I am trying docPrint Pro v8 in order to archive the following:
>>1. Silently capture what is printed as a pdf file
>>2. Produce a text file for every page printed.
>>My question is how I can make docPrint Pro operation silent. That is, I don't want the user to have to click on various dialogs that pop up through the process.

Yes, you can set options in docPrint Pro v8.0 to create PDF files silently, after you install docPrint Pro v8.0 application, please run following command line to configure options for automatic PDF creation,

"C:\Program Files (x86)\docPrint Pro v8.0\artprint.exe" -forward-options

image

You can choose "Save documents as PDF" option in the setting dialog, check the "Extract to text files" option also, click "Save&Close" button to close the setting dialog.

Now, you can print a document to docPrint printer, you will get PDF file and text file be created in the predefined folder.

You can also run following command line to set options to "docPrint PDF Driver" printer,

"C:\Program Files (x86)\docPrint Pro v8.0\psdriver\pdfconfiggui.exe"

image

In the setting dialog, you can select "Auto Save" options and select a folder for PDF generation, click "Save&Close" button to close the setting dialog. After that, please print a document to "docPrint PDF Driver" printer, you will get PDF file automatically.

btw, docPrint Pro v8.0 is a complicated product, if you need only a single virtual printer for PDF creation, you may download "PDF Virtual Printer Based on Postscript Printer Driver" from this web page to try, this product contains only one PDF Printer, you can set the options in a config.ini file, it can be used easily,

https://veryutils.com/pdf-virtual-printer
https://veryutils.com/dl.php/VeryPDF-PDFPrinter.zip

>>Also, I want the generation of the text file to be silent as well without having the user to start the pdf tools. Are all these possible?

You can create PDF files and text files with docPrint Printer in docPrint Pro v8.0, please refer to the solution in above question.

You can also use "PDF to Text OCR Converter Command Line" to convert from existing PDF files to text files, you may download "PDF to Text OCR Converter Command Line" from this web page to try,

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

>>Also, is there a way to capture specific information of the printed page contents in text form, instead of capturing the whole page contents?

This function can be done in a custom-build version of PDF to Text Converter Command Line application, if you are interest in this solution, please feel free to let us know your detailed requirements, we will figure out a solution to 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 docPrint Pro, VeryPDF SDK & COM | Tagged , , , , , , | Leave a comment
Page 3 of 1,43112345...102030...Last »