Right margin cut off when print a PDF file

Hi,

We are using the pdfprintsdk.dll (v2.2.0.1) in our program for pdf printing task. Recently we found an issue that sometimes the right margin and bottom margin of printed page is cut off. In our program we use the command below:

pdfprint -$ "XXXX-XXXX-XXXX-XXXX" -printer "Konica Level 6" -papersource "Auto" -raster2 D:\test.pdf

But when we print the pdf document from Adobe Reader, the page is printed very well.

I tried the latest pdfprint.exe file downloaded from your website but still got that issue. I can provide the pdf file to VeryPdf for testing.

We have been trouble-shooting a few days. Could you please help fix that issue? Thanks.

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

image

You didn't mention how closely your printing is to the edge of your paper.

Another thing to consider is the physical limits of printers. If your margin is too close to the edge of the paper, then the printer absolutely will not print it--regardless of what any program says. Different printers can print different distances from the edge.

However, you can use pdfprint.exe to scale the paper during printing. Please run following command lines to try again, these command lines will scale the PDF page contents during printing, we hope these command lines will solve "Right margin cut off" problem to you,

pdfprint.exe -printermargins -raster2 -printer "Konica Level 6" -papersource "Auto" C:\test.pdf

pdfprint.exe -printermargins -raster2 -scalex 95 -scaley 95 -printer "Konica Level 6" -papersource "Auto" C:\test.pdf

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

How to convert HTML file to PDF file from ASP code on 64bit Windows Server?

This article will let you know how to convert HTML files to PDF files On Web Servers With "VeryPDF HTML Converter Command Line" and "VeryPDFComRunCmd COM Component", you can convert HTML files to PDF files from ASP, PHP, C#, ASP.NET etc, program languages.

VeryPDF HTML Converter Command Line can be downloaded from this web page,

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 a web page to PDF file first,

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

VeryPDFComRunCmd COM Component can be downloaded from this web page,

http://www.verydoc.com/exeshell.html#VeryPDFComRunCmd_COM_Component
http://www.verypdf.com/dl2.php/VeryPDFComRunCmd.zip

after you download and unzip it to a folder, you can run install.vbs to install "VeryPDFComRunCmd.exe" into your system, install.vbs file contains following line,

VeryPDFComRunCmd.exe /regserver

You can also run this command line in CMD window with administrator privilege to register "VeryPDFComRunCmd.exe" into your system.

Now, you can call "VeryPDFCom.RunCmd" from your ASP code to convert from HTML file to PDF file, you can use a simple code at like below,

<%
set VeryPDFCom = Server.CreateObject("VeryPDFCom.RunCmd")
dim nRetVal, bRet
strRet = VeryPDFCom.RunCmd2("D:\VeryPDF\htmltools.exe -webkit http://www.verypdf.com D:\out.pdf", 5)
Response.Write strRet & vbCrlf
%>

You may encounter "Permission denied" error message, like below,

------------------------------------------
Error Type:
Microsoft VBScript runtime (0x800A0046)
Permission denied: 'CreateObject'
/html2pdf.asp, line 22
------------------------------------------

In order to solve "Permission denied" error message, you need give "Full Control" Permission to "Everyone" to "VeryPDFCom.RunCmd", please look at details at following web page,

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

After you give "Full Control" Permission to "Everyone" user account to "VeryPDFCom.RunCmd" DCOM, the "Permission denied" error in ASP will be solved completely, you will able to convert from HTML files to PDF files from ASP code without any problem.

Here is a PHP example to call htmltools.exe application by VeryPDFComRunCmd COM,

<?php

$comobj = new COM("VeryPDFCom.RunCmd") or die("Couldn't create the COM Component");
$strCmd = $comobj->RunCmd2("D:\VeryPDF\htmltools.exe -webkit http://www.verypdf.com D:\out.pdf", 5);
echo("Output is:\r\n" . $strCmd);

?>
 
ASP.NET example to call htmltools.exe application by VeryPDFComRunCmd COM,
<%

dim VeryPDFCom = Server.CreateObject("VeryPDFCom.RunCmd")
dim strCmd = "D:\VeryPDF\htmltools.exe -webkit http://www.verypdf.com D:\out.pdf"
Response.Write(strCmd & vbCrlf)
dim strRet = VeryPDFCom.RunCmd2(strCmd, 5)
Response.Write(strRet & vbCrlf)

%>

If you encounter any problem with htmltools.exe application and VeryPDFComRunCmd COM, please feel free contact us, we will assist you asap,

http://support.verypdf.com/open.php

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

How to split a large PDF into multiple documents with keyword? Split PDF based on keyword

I want to know how to divide a PDF file into multiple files with unique keywords?

I have a large PDF that has been combined from multiple documents.

How can I split the PDF back into multiple documents with a keyword delimiter?

Customer
---------------------------------------------
PDF Content Split is a a powerful software to split PDF to pages based on content!

  • A standalone program requires no Adobe Acrobat.
  • Split batch of PDF at the same time with ease.
  • User-friendly interface and simple operation.
  • Accurately recognize and identify content within PDF file.
  • Packed with varied practical and impressive features.

VeryPDF Content Splitter Command Line is a utility that lets you split Acrobat PDF files into multiple smaller pdf files based on location and text information within the files. It can be used to split composite PDF documents (such as invoices, reports or payroll) into separate files by keywords such as invoice number, account number or employee name.

PDF Content Splitter Command Line can be downloaded from this web page,

http://www.verypdf.com/app/pdf-content-splitter/try-and-buy.html#buy-cmd
http://www.verypdf.com/dl2.php/pdf-content-splitter-cmd.zip

After you download it, you can run following command lines to get the words and their positions,

  pdfcs.exe -searchtext "keyword" C:\in.pdf
  pdfcs.exe -searchtext2 "keyword" C:\in.pdf
  pdfcs.exe -searchtext2 "keyword" -opw 123 -upw 456 C:\in.pdf
  pdfcs.exe -searchtext2 "keyword" -casesensitive C:\in.pdf

such as,

pdfcs.exe -searchtext location E:\pdf-content-splitter-cmd\test.pdf
===== Search keyword in page 1 =====
[90.00, 215.64, 135.31, 226.44] 'Location'
===== Search keyword in page 2 =====
[90.00, 215.64, 135.31, 226.44] 'Location'
===== Search keyword in page 3 =====
[90.00, 215.64, 135.31, 226.44] 'Location'
===== Found Nothing for keyword (location) in page 4 =====
===== Search keyword in page 5 =====
[90.00, 215.64, 135.31, 226.44] 'Location'
===== Search keyword in page 6 =====
[90.00, 215.64, 135.31, 226.44] 'Location'
===== Search keyword in page 7 =====
[90.00, 215.64, 135.31, 226.44] 'Location'
===== Search keyword in page 8 =====
[90.00, 215.64, 135.31, 226.44] 'Location'
===== Search keyword in page 9 =====
[90.00, 215.64, 135.31, 226.44] 'Location'

after you get the position for this keyword, you can run following command lines to split this PDF file by location easily,

pdfcs.exe -$ XXXXXXXXXXXXX -mode 0 -x 422 -y 139 test.pdf "_out.pdf"

pdfcs.exe -$ XXXXXXXXXXXXX -mode 1 -x 422 -y 139 test.pdf "_out.pdf"

pdfcs.exe -$ XXXXXXXXXXXXX -mode 2 -x 422 -y 139 test.pdf "_out.pdf"

PDF Content Splitter Command Line is a standalone program, it does NOT require Adobe Acrobat Pro, which costs hundreds of dollars.

image

The following is the full command line parameters which included in PDF Content Splitter Command Line application,

C:\pdf-content-splitter-cmd\pdfcs.exe
Web: http://www.verypdf.com
Web: http://www.verydoc.com
Support: http://support.verypdf.com
Email: support@verypdf.com
Build date: Feb 16 2017
VeryPDF PDF Content Splitter Command Line v3.50
Batch split and group PDF pages by keywords.
Copyright 1996-2017 VeryPDF.com Inc.
===========================================
Support input format:
  1. PDF: Adobe Acrobat PDF file format
Support output format:
  1. PDF: Adobe Acrobat PDF file format
===========================================
Usage: pdfcs.exe [options] <Input-file> <Output-file>
  -opw <string>          : owner password (for encrypted files)
  -upw <string>          : user password (for encrypted files)
  -listtext              : list text lines in all PDF pages or selected pages
  -searchtext <string>   : search text in PDF pages and show result to console
  -searchtext2 <string>  : search text in PDF pages, display one word by one word
  -casesensitive         : compare strings with case-sensitive method
  -x <fp>                : set X position to locate text
  -y <fp>                : set Y position to locate text
  -mode <int>            : set PDF Content Splitter mode,
    -mode 0: Group continuous PDF pages which contain same text at special position
    -mode 1: Group valid text at special position and extract pages
    -mode 2: Group all PDF pages which contain same text at special position
  -skip                  : don't overwrite an output file if it already exists
  -h                     : print usage information
  -help                  : print usage information
  --help                 : print usage information
  -?                     : print usage information
  -$ <string>            : input your license key
Examples:
   pdfcs.exe -$ XXXXXXXXXXXXXXXX
   pdfcs.exe -listtext C:\in.pdf
   pdfcs.exe -searchtext "keyword" C:\in.pdf
   pdfcs.exe -searchtext2 "keyword" C:\in.pdf
   pdfcs.exe -searchtext2 "keyword" -opw 123 -upw 456 C:\in.pdf
   pdfcs.exe -searchtext2 "keyword" -casesensitive C:\in.pdf
   pdfcs.exe -x 227 -y 34 -mode 0 C:\in.pdf
   pdfcs.exe -x 227 -y 34 -mode 1 C:\in.pdf
   pdfcs.exe -x 227 -y 34 -mode 2 C:\in.pdf

Batch process examples:
   for %F in (D:\temp\*.pdf) do pdfcs.exe -x 227 -y 34 -mode 0 "%F" "out_%~nF.pdf"
   for %F in (D:\temp\*.pdf) do pdfcs.exe -x 227 -y 34 -mode 1 "C:\test\%~nF.pdf"
   for %F in (D:\temp\*.pdf) do pdfcs.exe -x 227 -y 34 -mode 2 "%F" "C:\test\%~nF.pdf"

Keywords:

PDF Split
PDF Size Splitter
PDF Invoice Split
PDF Page Content Split
PDF Payroll Split
PDF Reports Splitter

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

How to extract table and text contents from a PNG image file? Use OCR to convert PNG image to Excel Spreadsheet

I tried your Trial Version to convert a PNG file to Excel. It returned a blank Excel document.

Input: Chose #2 (English)
Output: Tried both xls and xlsx
Attached PNG file is what I was attempting to convert

Does the Trial Version not work with file type PNG?

image

Customer
-----------------------------------------
You can use "VeryPDF Table Extractor OCR" software to extract Table from this PNG image file, please download and install "VeryPDF Table Extractor OCR" software from this web page,

http://www.verypdf.com/app/pdf-to-table-extractor-ocr/try-and-buy.html
http://www.verypdf.com/dl2.php/verypdf-table-extractor-ocr.exe

Please look at attached screenshot for the extracted table.

image

In order to increase the OCR accuracy, you need also do following processes to input PNG image file,

1. Click drop-down button at right of OCR button,

2. Click "Quality" option and select 300% item, this option will increase the DPI quality to input image file,

3. Click "Threshold" option, enter or change this option to 180 or 190 or 210 value, this option will convert from color image file to black and white image, it will improve the OCR accuracy also,

image

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 Table Extractor OCR | Tagged , , , | Leave a comment

In VeryPDF PDF Extract Tool Command Line software, may I know if the X and Y coordinates represent in points and can I apply a standard factor to convert it to cm?

If I buy the developer license, do I need to integrated the coding of pdf extract in my software or just distribute it together with my software.

Actually I prefer not to touch the integration of coding in order to save my time.

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

PDF Extract Tool Command Line can be downloaded from this web page,

http://www.verypdf.com/app/pdf-extract-tool/index.html

image

After you purchase the developer license, you need only integrate the DLL or Command Line into your software, then you can redistribute it along with your software to your customers, this can be done easily.

VeryPDF
-----------------------------------------------------
May I know if the X and Y coordinates represent in points and can I apply a standard factor to convert it to cm ?

Or the factor for conversation to cm is a variance?

Customer
-----------------------------------------------------
Yes, the X and Y coordinator are represent in points, you can convert from POINT to CM easily, please look at the details at below,

const float MM2INCH = 0.03937007874015748031496062992126f; // (1 / 25.4f)
const float MM2POINT = 2.8346456692913385826771653543307f; // (1 / 25.4f) * 72

const float INCH2MM = 25.4f;
const float POINT2MM = (25.4f / 72.0f);

The unit is point, you can convert from inch or mm to point by yourself,

For Example, Set page width to 800 pixel and page height to 600 pixel,
pageWidth = 800;
pageHeight= 600;

For Example, Set page width to 8.5 inch and page height to 11 inch,
pageWidth = 8.5 * 72;
pageHeight= 11 * 72;

For Example, Set page width to 210 mm and page height to 297 mm,
pageWidth = 210 / 25.4 * 72;
pageHeight= 297 / 25.4 * 72;

You can convert your inch or mm to point to try again.

VeryPDF
-----------------------------------------------------
May I know the command for just to extract text only to the output file.

I don't need any other information I. The output.

Customer
-----------------------------------------------------
You can run following command lines to extract only text and coordinates from PDF file to text file,

pdfextract.exe -textpos D:\in.pdf D:\out.txt
pdfextract.exe -textpos -nopgbrk D:\in.pdf D:\out.txt

If you needn't coordinates, you can use "PDF to Text OCR Converter Command Line" software to instead of "PDF Extract Command Line" software, "PDF to Text OCR Converter Command Line" does extract text contents only and ignore coordinates,

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

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 VeryPDF SDK & COM | Tagged , , , | Leave a comment
Page 2 of 1,38412345...102030...Last »