Determine the number of pages in TIFF, PDF, JPEG, PCL, PS, PRN, XPS, PXL, etc. spool documents. Determine Color Depth (color, black/white, grey scale) and DPI for Each Page.

SPL (PCL, PS, PDF, PRN) Page Counter is an easy to use PCL, PS, PRN, TIFF, PDF, and JPEG page counting and measurement application. It supports all versions of single page and multi-page TIFF, PCL, PS, PRN and PDF files as well as single page JPEG files. Quickly and efficiently process large groups of images and folders at one time to analyze page count, page size.

VeryPDF Spool File Page Counter SDK:
http://www.verypdf.com/app/hookprinter/spool-file-page-counter-sdk.html
http://www.verypdf.com/dl2.php/ps-and-pcl-info-sdk.zip

SPL (PCL, PS, PDF, PRN) Page Counter was developed to count black/white and color pages in PCL, PS, PDF, PRN, etc. spool documents. Whether you need to generate a page count on the fly, or generate a page count on a scheduled basis, this is the software product that places the power into your hands.

SPL (PCL, PS, PDF, PRN) Page Counter Features:

  • Processes: TIFF, PDF, JPEG, PCL, PS, PRN, XPS, PXL
  • Single Page and Multi Page Files
  • Reports Number of Pages
  • Records Dimensions of Each Page
  • Measures Dimensions in Imperial and Metric System (feet and meters)
  • Determine color depth (color, black/white, grey scale) and DPI for Each Page
  • Extremely Fast counting routine!!!
  • Works with Command Lines (GREAT for scheduled tasks!!)
  • Suppress output to the background
  • Unequaled tech support

The following is a C++ example to retrieve color information from each page from PDF, PS, PCL, etc. formats,

#include <windows.h>

#include <windowsx.h>

#include <commctrl.h>

#include <commdlg.h>

 

#include <time.h>

#include <stdio.h>

#include <sys/types.h>

#include <sys/timeb.h>

#include <stdlib.h>

 

#include <string>

#include <vector>

using namespace std;

 

/////////////////////////////////

//If you set bIsRenderToPDF to TRUE, bwPageCount and colorPageCount will
//return valid values,
if you set bIsRenderToPDF to FALSE, bwPageCount will
// return total pages.

//

//Return value:

//  TRUE is successful

//  FALSE is failed

//

/////////////////////////////////

extern "C" __declspec(dllexport)

BOOL WINAPI ReadInfoFromAllFormats(LPCTSTR fileName, BOOL bIsRenderToPDF, DWORD* bwPageCount, DWORD* colorPageCount, DWORD* copyCount, double* pagewidth, double* pageheight, LPTSTR paperSizeName);

 

extern "C" __declspec(dllexport)

BOOL WINAPI ReadInfoFromPSFile(LPCTSTR fileName, BOOL bIsRenderToPDF, DWORD* bwPageCount, DWORD* colorPageCount, DWORD* copyCount, double* pagewidth, double* pageheight, LPTSTR paperSizeName);

 

extern "C" __declspec(dllexport)

BOOL WINAPI ReadInfoFromPCLFile(LPCTSTR fileName, BOOL bIsRenderToPDF, DWORD* bwPageCount, DWORD* colorPageCount, DWORD* copyCount, double* pagewidth, double* pageheight, LPTSTR paperSizeName);

 

extern "C" __declspec(dllexport)

BOOL WINAPI ReadInfoFromEMFFile(LPCTSTR fileName, BOOL bIsRenderToPDF, DWORD* bwPageCount, DWORD* colorPageCount, DWORD* copyCount, double* pagewidth, double* pageheight, LPTSTR paperSizeName);

 

extern "C" __declspec(dllexport)

BOOL WINAPI ReadInfoFromSPLEMFFile(LPCTSTR fileName, BOOL bIsRenderToPDF, DWORD* bwPageCount, DWORD* colorPageCount, DWORD* copyCount, double* pagewidth, double* pageheight, LPTSTR paperSizeName);

 

extern "C" __declspec(dllexport)

void WINAPI ReadInfoSetCode(const char *lpCode);

 

extern "C" __declspec(dllexport)

void WINAPI ReadInfoEnableDebug(int bEnable);

 

extern "C" __declspec(dllexport)

int WINAPI ReadInfoGetPageCount();

 

extern "C" __declspec(dllexport)

int WINAPI ReadInfoGetPageColorInfo(int nPage);

 

extern "C" __declspec(dllexport)

int WINAPI ReadInfoGetAllInfo(char *lpszBuffer, int nBufferLen);

 

 

void GetModulePath(char *out_path,char *in_name)

{

         char *p;

         GetModuleFileName(NULL,out_path,256);

         p =strrchr(out_path,'\\');

         p[1]=0;

         strcat(out_path,in_name);

}

 

void DumpInformation(char *lpInFile, BOOL bIsRenderToPDF)

{

         char drive[_MAX_DRIVE];

         char dir[_MAX_DIR];

         char fname[_MAX_FNAME];

         char ext[_MAX_EXT];

        

         _splitpath(lpInFile, drive, dir, fname, ext );

        

         DWORD bwPageCount = 0;

         DWORD colorPageCount = 0;

         DWORD copyCount = 0;

         double nPageWidth = 0;

         double nPageHeight = 0;

         char szPaperSizeName[200] = {0};

         BOOL bRet = FALSE;

        

         ReadInfoSetCode("XXXXXXXXXXXXXXXXXXX");

         ReadInfoEnableDebug(1);

         if(!stricmp(ext, ".ps") || !stricmp(ext, ".eps"))

                   bRet = ReadInfoFromPSFile(lpInFile, bIsRenderToPDF,
                          &bwPageCount, &colorPageCount, &copyCount,
                          &nPageWidth, &nPageHeight, szPaperSizeName);

         else if(!stricmp(ext, ".pcl"))

                   bRet = ReadInfoFromPCLFile(lpInFile, bIsRenderToPDF,
                          &bwPageCount, &colorPageCount, &copyCount,
                          &nPageWidth, &nPageHeight, szPaperSizeName);

         else

                   bRet = ReadInfoFromAllFormats(lpInFile, bIsRenderToPDF,
                          &bwPageCount, &colorPageCount, &copyCount,
                          &nPageWidth, &nPageHeight, szPaperSizeName);

         printf("=======================================\n");

         printf("File = '%s'\n", lpInFile);

         printf("Return Value = %s\n", bRet?"TRUE":"FALSE");

         printf("bIsRenderToPDF = %d\n", bIsRenderToPDF);

         printf("bwPageCount = %d\n", bwPageCount);

         printf("colorPageCount = %d\n", colorPageCount);

         printf("copyCount = %d\n", copyCount);

         printf("PageWidth = %g\n", nPageWidth);

         printf("PageHeight = %g\n", nPageHeight);

         printf("PaperSizeName = '%s'\n", szPaperSizeName);

 

         if(bIsRenderToPDF)

         {

                   int nPageCount = ReadInfoGetPageCount();

                   printf("Color Information for each page (%d pages):\n",
                          nPageCount);

                   for(int i = 0; i < nPageCount; i++)

                   {

                            int nColor = ReadInfoGetPageColorInfo(i);

                            switch(nColor)

                            {

                            case 1:

                                     printf("Page %3d is [Color]\n", i+1);

                                     break;

                            case 2:

                                     printf("Page %3d is [   BW]\n", i+1);

                                     break;

                            case 3:

                                     printf("Page %3d is [ Gray]\n", i+1);

                                     break;

                            default:

                                     printf("[Failed to get color information
                                            from Page %3d]\n"
, i+1);

                                     break;

                            }

                   }

         }

 

         char szBuffer[5000] = {0};

         int nRet = ReadInfoGetAllInfo(szBuffer, sizeof(szBuffer));

         printf("[ReadInfoGetAllInfo] Begin\n%s\n[ReadInfoGetAllInfo] End\n",
                szBuffer);

         printf("\n\n\n");

}

 

void main(int argc, char *argv[])

{

         if(argc != 2)

         {

                   printf("%s C:\\test.ps\n", argv[0]);

                   printf("%s C:\\test.pcl\n", argv[0]);

                   printf("%s C:\\test.spl\n", argv[0]);

                   printf("%s C:\\test.pdf\n", argv[0]);

                   printf("%s C:\\test.emf\n", argv[0]);

                   printf("%s C:\\test.prn\n", argv[0]);

                   return;

         }

 

         char *lpInFile = argv[1];

         DumpInformation(lpInFile, TRUE);

         DumpInformation(lpInFile, FALSE);

}

 

 

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 Spool File Page Counter SDK | Tagged , , , | Leave a comment

How to install and use VeryPDF HookPrinter to capture print jobs?

Q: How to install and use VeryPDF HookPrinter to capture print jobs?

A: Please by following steps to install VeryPDF HookPrinter,

Please download VeryPDF HookPrinter from this web page first,

http://www.verypdf.com/app/hookprinter/index.html
http://www.verypdf.com/app/hookprinter/try-and-buy.html
http://www.verypdf.com/dl2.php/HookPrinter.zip

1. Please run a CMD window with administrator privilege first,

1.1 To start a command prompt as an administrator
1.1.1. Click Start, click All Programs, and then click Accessories.
1.1.2. Right-click Command prompt, and then click Run as administrator.
1.1.3. If the User Account Control dialog box appears, confirm that the action it displays is what you want, and then click Continue.

image

image

1.2 To start a command prompt as an administrator (alternative method)

1.2.1. Click Start.
1.2.2. In the Start Search box, type cmd, and then press CTRL+SHIFT+ENTER.
1.2.3. If the User Account Control dialog box appears, confirm that the action it displays is what you want, and then click Continue.

 2. Please change the current folder to the folder where "install64.bat" and "install32.bat" files exist, run "install64.bat" on 64bit system or "install32.bat" on 32bit system to install VeryPDF HookPrinter,

 3. After you install it successful, please print a document to an arbitrary Windows Printer which installed in your system, you will find following files appear in the "C:\Users\YourName\AppData\Local\Temp" folder,

VeryPDF-HookPrinter.ini
VeryPDF-HookPrinter.log
FP000XX.SPL
000XX.SPL

FP000XX.SPL and 000XX.SPL are captured spool files, in general, they are PCL, Postscript, SPL-EMF, RAW etc. formats. You can use VeryPDF SPL to PDF Converter Command Line to convert these SPL files to PDF files.

 4. "VeryPDF-HookPrinter.ini" file contains following options,

[AutoSave]
bCaptureSPLFiles=1 ; 1 to capture SPL files, 0 will stop to capture SPL files
strLicenseKey=XXXX-XXXX-XXXX-XXXX ; Your License Key
strSPLOutputFolder=D:\downloads\spl ; Set the folder to store SPL files
strCmd=["E:\SPL2PDF\spl2pdf_cmd\spl2pdf.exe" "%1"]
; This is SPL to PDF Converter Command Line application, you can use this command line application to convert from SPL files to PDF files automatically

VN:F [1.9.20_1166]
Rating: 1.0/10 (1 vote cast)
VN:F [1.9.20_1166]
Rating: 0 (from 0 votes)
Posted in VeryPDF SDK & COM | Tagged , , | Leave a comment

Printer stream intercept. I want to capture the text output being sent to a receipt printer so that I can record it to a log

My need is to capture the print output of any (or at least, most any) Windows programs without interfering with the originally intended print activity.

The environment is a point-of-sale environment. I want to capture the text output being sent to a receipt printer so that I can record it to a log. I wouldn't have access to the source code for the program outputting the print data and I wouldn't want to interfere with the printing of the receipt. Do you have a product that I should consider for this use?

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


Hello,

The VeryPDF Printer Drivers have ability to do your requests. If we are right you need the following: you want to print from a Windows application to a physical printer and you want to capture the text data from the printing document.

- The printer driver can save the text data to a file during the printing.
- The printer driver has messaging interface to inform applications when the printing starts, ends etc..
- The printer driver can start any custom application after/before printing.
- The printer driver can redirect the printings to one or more physical printers.

Using the features above you can get the text information from the printed document and the document can be printed to the physical printer.

If you need more information about above steps, please feel free to contact us, we are glad to hear from you,

http://support.verypdf.com

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

Printed Documents Viewer & Printer Viewer & SPL Format Viewer & SPL Format Converter

VeryPDF has a "Printed Documents Viewer & Printer Viewer" software, this program will allow you to view what you or somebody else has printed on your printer.

This program will help you view what you or someone else prints on your printer. You can view each document printed on your printer, print it again or save as a PDF document, graphic file, such as BMP, GIF, JPEG or TIFF.

The following file formats are supported –

  • PCL5
  • HP-GL/2
  • PCL6 (PCL XL)
  • Postscript
  • GDI printing (ZjStream)
  • EMF Spooled Files
  • Samsung Printer Language Color
  • XQX. Used by the Hewlett-Packard LaserJet M1005, HP LaserJet P1505 and others.
  • Xerox GDI printing.
  • CPCA - Canon Common Peripheral Controlling Architecture with PCL XL datatype.
  • HBPL - Dell, Epson, and Fuji-Xerox Printer Language.

You can save the image of a printed document in PDF or a graphic format.

The following file formats are supported –

  • PDF – Adobe Portable Document Format
  • EMF – Windows Metafile
  • BMP – Windows Bitmap
  • GIF – CompuServe GIF
  • PNG – Portable Network Graphics
  • TIFF – Tag Image File Format
  • JPG – JPEG

image

VeryPDF SPL Batch Converter, the .SPL file (Print Spooling File) Viewer, allows you to view SPL file and convert it to PDF, TXT, JPG, GIF, TIFF, BMP, PNG, TGA or PCX format.

Highlights
.SPL format Viewer
View content within .SPL format file (Print Spooling File).

File Format Conversion
Convert .SPL format file (Print Spooling File) to PDF, TXT, Multi-page TIFF, JPG, BMP, PNG, TGA or PCX.

Batch Converter Capability
Add .SPL format files (Print Spooling File) to list, then convert them to target format with just 1 Click.

PDF Creation and Conversion
Convert any document to PDF format with VeryPDF Document Converter virtual printer driver.

Complete control of your PDF output
Complete control of your PDF output with features like PDF Document Description (such as Title, Author, Subject, Keywords etc.), Font embedding, Compression options, Optimization options and more.

128 Bits Encryption
Set Security or Restriction options for PDF you create, no one can open, edit, print PDF or copy/paste PDF content!

Combine Multiple Documents into one Single PDF File
Now you can combine MULTIPLE documents into one single PDF file. Combine several image files into one single Multipage PDF file or combine a TIFF, DOC, GIF and HTML file all into one PDF file.

Combine Multiple Pages into one Single TIFF File
Combine MULTIPLE Pages SPL into one single TIFF file.

If you need more information about above steps, please feel free to contact us, we are glad to hear from you,

http://support.verypdf.com

VeryPDF
---------------------------------------------
School See Also:

Intercepting data sent to a Windows printer,
http://www.verydoc.com/blog/intercepting-data-sent-to-a-windows-printer.html

How to intercept and capture a print job and convert it to PDF & Plain Text & Image files and then print?
http://www.verydoc.com/blog/how-to-intercept-and-capture-a-print-job-and-convert-it-to-pdf-plain-text-image-files-and-then-print.html

Can I forward and redirect print jobs from one printer to another in windows?
http://www.verypdf.com/wordpress/201607/can-i-forward-and-redirect-print-jobs-from-one-printer-to-another-in-windows-42706.html

Category Archives: docPrint Pro,
http://www.verypdf.com/wordpress/category/docprint-pro

How to intercept and capture a print job and convert it to PDF & Plain Text & Image files and then print?
http://www.verydoc.com/blog/how-to-intercept-and-capture-a-print-job-and-convert-it-to-pdf-plain-text-image-files-and-then-print.html

How to capture printer spooler file when printing and then view and/or print that spooler file again?
http://www.verypdf.com/wordpress/201607/how-to-capture-printer-spooler-file-when-printing-and-then-view-andor-print-that-spooler-file-again-42708.html

Capture data from printer port and save to file (Excel/PDF) with VeryPDF Document Capture
http://www.verypdf.com/wordpress/201607/capture-data-from-printer-port-and-save-to-file-excelpdf-with-verypdf-document-capture-42712.html

Intercepting data sent to a Windows printer, print capture software, Hook StartDoc, StartPage, EndPage, EndDoc & AbortDoc, etc. functions, Keeping a soft copy of print jobs, Hook print spooler on server
http://www.verypdf.com/wordpress/201609/intercepting-data-sent-to-a-windows-printer-print-capture-software-hook-startdoc-startpage-endpage-enddoc-abortdoc-etc-functions-keeping-a-soft-copy-of-print-jobs-hook-print-spooler-on-43013.html

Search Results for: HookPrinter
http://www.verypdf.com/wordpress/?s=HookPrinter

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 Spool File Page Counter SDK, VeryPDF SDK & COM | Tagged , , , | Leave a comment

Batch Printing various document formats Into One PDF File

I was looking at your products and need guidance. We are looking to batch print multiple files into one PDF document. We would like this automated as opposed to naming each file, then selecting all and merging. Or amending a file and having to confirm this each time.

I didn't complete my thought. We are looking to purchase your product if it is capable of this function, however I wasn't sure which product to try out. So if you can direct me to the right one I would appreciate it.

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

image
Thanks for your message, we have two solutions to finish your task, please refer to them at below,

Solution 1:

You can use PDFPrint Command Line to print more documents into one simple PDF file,

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

after you download it, you can use "-mergeprintjobs" option to merge more documents into one PDF file, for example,

   pdfprint.exe -mergeprintjobs -copies 3 C:\input.pdf
   pdfprint.exe -mergeprintjobs C:\*.pdf
   pdfprint.exe -mergeprintjobs C:\test*.pdf
   pdfprint.exe -mergeprintjobs C:\files.txt

Solution 2:

1. You can use "VeryDOC DOC to Any Converter Command Line" to convert various documents to PDF files,

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

2. You can use "PDF Split-Merge Command Line" to combine converted PDF files into one PDF file,

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

We hope above solutions will useful to you, you may give them 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 PDF Print | Tagged , , | Leave a comment
Page 20 of 1,388« First...10...1819202122...304050...Last »