## PDF Print SDK

I put in the request for VeryPDF, and have implemented it into our Webservice client.  Things are working fine. There will still may be some tuning, but mostly it is working.

I use dynamic linking of the DLL (first time a PDF arrives for a client, which may be never).  I then simply keep the DLL loaded.  Also, I do not store the registration code in memory.  I ‘build’ it, then use it, and then make sure all memory buffers used temporarily are memset.  There is no strings in my exe listing the reg code at all (or any part of it).  I know that the usage like this was not specified in your "how to use", but this is something I do any time I have to deal with keys/reg codes, so that it is much more difficult for any end user to determine what the reg code is.

My question is on deployment.  Exactly what needs to be deployed?  Do I simply add the 3 dll's to the install script, and that is it?   I notice
an "encoding" directory with many Adobe postscript font files.  The pdf printer seems to print just fine without them.  Do they have a purpose, or can they simply be left out of the installation data set?
=================================================

Yes, you need deploy 3 DLL files along with your product to your customers.

If your PDF files are not contain CJK characters, you can ignore "encoding" folder, "encoding" folder is useful for CJK PDF files.
VeryPDF
==================================================

I have very pdf incorporated into our software, and working. However, I am experiencing some issues. Our product is a long running service 'like' product. The algorithm I am 'using' is this:

0. Wait for file message to print (web service calls to our corp site to check for new messages). Until one arrives, we stay in step 0.

2. File is checked to see if PDF. If no PDF, then original text printing code is performed, then goto step 0.

3. if file is pdf, then:

5. Build reg code.

6. call DLL function, using: sprintf(szCommandLine,"pdfprint \"-$\" \"%s\" -silent -restoreprinter -quiet -pdforient 4 -scalex -1 -scaley -1 -printer \"%s\" \"%s\"", lpRegcode,lpPrinterName,lpPDFName); 7. clean up the reg code string. 8. sleep 3 seconds. 9. goto step one. Here are the issues I am seeing. 1. The code is consuming 100% of 1 CPU, but mostly in system CPU cycles. The %CPU is not being charged to my process, but to Windows explorer 2. The memory footprint grows. It does not 'appear' to be a memory leak, but possibly memory fragmentation. Now my question. Is keeping the DLL loaded, the proper way to use this product, for a long running process? I have made some changes, and things appear to have changed. The changes I made are: 'before' step 4 of my algorithm, I added code to free the DLL, and set my flags to appear not loaded, every 20 PDF documents printed. By making that simple change, the CPU usage dropped to about 1/2 of a CPU (still charged to system CPU). Also, at this time the memory 'growth' seems to not be happening, at least, not as bad as it was before. I still need to have the process run a little longer, before I can make a claim that I think it is working without leaks/fragmentation, but it certainly appears to be working better than before. So, again back to the question, HOW should this product be used for long running processes? Should the DLL be loaded each time, used, then freed, then loaded on next pdf file to print? Should it be loaded, and used for a short while (a few minutes, or a few documents), and then freed and reloaded on next message? Should it be able to be loaded one time (the first pdf seen) and then used 'forever'? Also, could this be some command line argument(s) that I am NOT using, but should use? ====================================================== Hi, Thanks for your message, we have a suggestion to you, we suggest you may call PDFPrint SDK functions in a stand-alone EXE application, you can call this EXE application to print all of your PDF files, the EXE process will exit from memory automatically after printing be finished completely, the EXE process will release its memory and CPU too, we hoping this solution will helpful to you, you may give it a try. Please change your steps as following, 0. Wait for file message to print (web service calls to our corp site to check for new messages). Until one arrives, we stay in step 0. 1. Download the message file to print. 2. File is checked to see if PDF. If no PDF, then original text printing code is performed, then goto step 0. 3. if file is pdf, then: //You can delete following steps, //4. if DLL not loaded, load it. //5. Build reg code. //6. call DLL function, using: sprintf(szCommandLine,"pdfprint \"-$\" \"%s\" -silent -restoreprinter -quiet -pdforient 4 -scalex -1 -scaley -1 -printer \"%s\" \"%s\"", lpRegcode,lpPrinterName,lpPDFName);
//7. clean up the reg code string.
//8. sleep 3 seconds.
4. You can call PDFPrint SDK EXE process to print this PDF file, wait until EXE process exit from memory,
9. goto step one.

This solution can be done easily, please give it a try.
VeryPDF
================================================
Thank you for this suggestion. I am building a thin SDK exe to spawn, and believe this suggestion will get us past this issue. If I have additional issues, I will contact you with those. However, I believe this will get me to completion of the project.

VN:F [1.9.20_1166]
VN:F [1.9.20_1166]

## Use Image2PDF from command line

I am evaluating the product you have to do TIF to PDF conversion and I’m looking for examples of how to format the command line properly. I have your image converter that converts PDF to other documents and I found a readme.txt that had some great examples. I would like to prove out the command before purchasing. I see on your website that it mentions to look in the uncompressed directory for more examples, but I couldn’t locate any.
==============================================

Hi,

http://www.verypdf.com/tif2pdf/image2pdf_cmd.zip

after you unzip it to a folder, you can run following command lines to convert image files to PDF files,

Usage:

1.Convert one folder in to a pdf file:

Img2PDF.exe -o F:\output.pdf F:\inputdir

2.Convert multi folder into a pdf file:

Img2PDF.exe -o F:\output.pdf F:\inputdir1 F:\inputdir2

3.Convert a tiff file into a pdf file:

Img2PDF.exe -o F:\output.pdf F:\inputfile.tif

4.Convert tiff files and multi directory into a pdf file:

Img2PDF.exe -o F:\output.pdf F:\inputfile.tif F:\inputdir1 F:\inputdir2

5.Register Image2PDF Command Line with your registration key:

img2pdf.exe "-\$" "XXXXXXXXXX"

6.Convert TIFF file to PDF file and retain original paper size:

img2pdf.exe -r -1 -o C:\out.pdf C:\in.tif

VeryPDF

VN:F [1.9.20_1166]
Rating: 5.0/10 (1 vote cast)
VN:F [1.9.20_1166]

## Command line pdf form filling from text file

Do you have any Command line tool for pdf form filling from text file?
=================================

Hi,

http://www.verypdf.com/pdfform/index.html#dl

you can write a command line application to call PDF Form Filler SDK (COM) v3.1, then you can fill the PDF forms with XML or FDF or XFDF easily.

VeryPDF

VN:F [1.9.20_1166]
Rating: 7.0/10 (1 vote cast)
VN:F [1.9.20_1166]

## PDF Viewer OCX

hello i have to ask about pdf viewer ocx. my question : is this product have support for search into Unicode language PDF ? we have some arabic pdf and have to know is this can search into them!? regards
================================================
Our pdf viewer ocx doesn't support search for Arabic language, it is support search for English characters only, sorry for this matter.

VeryPDF

VN:F [1.9.20_1166]
VN:F [1.9.20_1166]

## Questions on doc2any

i am evaluating your product doc2any (command line), and have some questions.
• i dont' understand exactly how to use the flag -useoffice, can it be used in conjunction with -useprinter ?
what does it mean -useoffice 0, files just don't get converted that way.
• if i use -useprinter and -rotate 90 the pages get converterd, but not rotated.
• is there a way to convert only a subset of pages?

======================================================

>>• i dont' understand exactly how to use the flag -useoffice, can it be used in conjunction with -useprinter ?

Yes, you can use -useoffice and -useprinter parameters together.

OK, but what is the effect and the difference between using -useoffice, -useprinter, ot both toghether with 0/1 flag?

>>what does it mean -useoffice 0, files just don't get converted that way.
With "-useoffice 0" parameter, doc2any.exe will convert DOC file to PDF file without use MS Office.

Only to PDF or to any format?
Is there a quality difference between converting with/without printer ?

>>• if i use -useprinter and -rotate 90 the pages get converterd, but not rotated.

Can you please email to us the exact command line that you using? We will test your command line in our system shortly.

Use the mytest.ppt attached.

doc2any.exe -useprinter -rotate 90 mytest.ppt mytest.jpg this will not rotate the pages.

if i convert to pdf instead of raster images, it gets converter right, without the need of the rotate flag.

>>• is there a way to convert only a subset of pages?

Yes, the latest pre-release version of doc2any.exe does support this feature, after you purchased doc2any.exe, please email to us your Order ID, we will send the pre-release version of doc2any.exe to you asap.

I am interested in knowing the new features of the pre-release version, can you send me some document?

thank you
VeryPDF
======================================================
Hi,

-useoffice 1 will use MS Office to convert documents.
-useoffice 0 will not use MS Office to convert documents.

-useprinter will use virtual printer to convert documents, without this parameter, doc2any.exe will not use the virtual printer.

You can combine these parameters arbitrarily

Sorry, but i need to understand what is the difference in using the combinations. Your description of the syntax is clear, but i cannot tell what is the difference in terms of output quality.

>>Only to PDF or to any format?
>>Is there a quality difference between converting with/without printer ?
-useprinter will affect he PDF, PS, EPS, SWF, TIFF, JPEG, etc. formats.
-useprinter will generate high quality JPEG and TIFF formats.

is it the same for PNG ?

>>Use the mytest.ppt attached.
>>doc2any.exe -useprinter -rotate 90 mytest.ppt mytest.jpg this will not
>>rotate the pages.
>>if i convert to pdf instead of raster images, it gets converter right, without the need of the rotate flag.
Thanks for your sample PPT file, it seems "-rotate 90" doesn't support JPEG format at the moment, we will enable "-rotate 90" option for JPEG format in the future releases, we will send the new version to you when it ready.

This happens for PNGs also, will this option be introduced for PNGs also ?

>>I am interested in knowing the new features of the pre-release version, can you send me some document?

http://dl.dropbox.com/u/5570462/doc2any.exe

you can run following command lines to convert your DOC file to PDF file with page range,

doc2any.exe -useprinter -pagerange "2-3" "C:\test.docx" "C:\test.pdf"

doc2any.exe -useprinter -pagerange "2,4-6,8-" "C:\test.docx" "C:\test. pdf"

OK does the pagerange work also for converting to raster image formats?
==================================================================
Hi,

>>Sorry, but i need to understand what is the difference in using the combinations.
>>Your description of the syntax is clear, but i cannot tell what is the difference in terms of output quality.

In general, you can use "-useoffice 1 -useprinter" to convert your documents to PDF or TIFF files, "-useoffice 1 -useprinter" will create high quality PDF and TIFF files, you can always use these parameters.

>>Only to PDF or to any format?
>>Is there a quality difference between converting with/without printer ?
>>-useprinter will affect he PDF, PS, EPS, SWF, TIFF, JPEG, etc. formats.
>>-useprinter will generate high quality JPEG and TIFF formats.
>>is it the same for PNG ?

Yes, same for PNG image format.

>>Use the mytest.ppt attached.
>>doc2any.exe -useprinter -rotate 90 mytest.ppt mytest.jpg this will not
>>rotate the pages.
>>if i convert to pdf instead of raster images, it gets converter right, without the need of the rotate flag.
>>Thanks for your sample PPT file, it seems "-rotate 90" doesn't support
>>JPEG format at the moment, we will enable "-rotate 90" option for JPEG
>>format in the future releases, we will send the new version to you when it ready.
>>This happens for PNGs also, will this option be introduced for PNGs also ?

Yes, "-rotate 90" option doesn't support PNG image format too. Because PNG and JPG are all belong to the image format.

>>OK does the pagerange work also for converting to raster image formats?

Yes, -pagerange is support raster format too, for example,

doc2any.exe -useprinter -pagerange "2-3" -useprinter -useoffice 1 "D:\temp4\test.doc" C:\out.jpg

doc2any.exe -useprinter -pagerange "2-3" -useprinter -useoffice 1 "D:\temp4\test.doc" C:\out.png

VeryPDF
=======================================================
Thank you.

Please, with the option -pagerange also a command to know in advance how many pages are there would be convenient.
Like doc2any.exe -pagecount that outputs a number in the console.
========================================================
Hi,

Thanks for your message, doc2any.exe hasn't an option to get the page number from a DOC file, however, after you purchased doc2any.exe product, please email to us your Order ID, we will ask our engineer to add -pagecount parameter to you free, we hoping this offer will okay to you.

VeryPDF

VN:F [1.9.20_1166]