DOC to Any Converter

How to convert word to PDF from ASP program?

  In this article, I will show you how to covert Word document to PDF from ASP program. The software I use is named as VeryDOC Doc Converter COM, by which you can convert any printable documents to PDF files, convert dynamic HTML pages and URLs to PDF files conversion (include Java Applet, SVG, Flash, Javascript, iFrame, etc.) and others. And this software can be used to be integrated COM object (or DLL Library, or Command Line), which makes developers develop software via any programming or scripting languages, such as Visual Basic, C/C++, Delphi, ASP, PHP, C#, .NET, etc.  Please check more information on homepage, in the following part, let us check how to use this software.

Step 1. Download Doc Converter COM

  • All the VeryDOC software is free trial and free downloading, so you can evaluate it without any payment charged. When you use this software, please make sure your computer satisfy those requirements: PDFcamp V1.8 or newer, or PDFcamp Pro V1.8 or newer installed, Microsoft Windows 2000, XP, 2003, Vista, and 7 later version installed.
  • When downloading finishes, there will be a zip file. Please extract this file to some folder then you can run this software according to the usage and examples.

Step 2. Convert word to PDF from ASP program.

  • The following code is from the extracted folder examples, which can help you call this software from ASP quickly and accurately.
  • Here are some examples, please run the conversion following the following steps.

A: Please by following steps to try,
1. Please run "install_as_exe.bat" to install the DocConverter COM first, and make sure the "doc2pdf_service.exe" application is running,
2. Please make sure that you have already installed "PDFcamp Printer" before,
3. Please run following ASP examples to try,
Example 1:
                <%
                        set PdfCreator = server.createobject("PdfOut.PdfCreator")
                        PdfCreator.html2PDF= "http://www.google.com/"
                        PdfCreator.fileName = "C:/google.pdf"
                        result = PdfCreator.Doc2PDFViaSocket()
                        set PdfCreator = nothing
                %>
Example 2:
                <%
                        set PdfCreator = Server.CreateObject("PdfOut.PdfCreator")
                        ConvertHTMLToPDF1 PdfCreator,"http://www.google.com","google001.pdf"
                        set PdfCreator = nothing
                        function ConvertHTMLToPDF1(byval PdfCreator, strHTMLFile, strPDFFile)
                                'The first method to create a PDF file from HTML file
                                strPDFFile = server.mappath(".") & "\" & strPDFFile
                                dim strCommandLine
                                strCommandLine = """" + strHTMLFile + """"
                                strCommandLine = strCommandLine + " "
                                strCommandLine = strCommandLine + """" + strPDFFile + """"
                                strCommandLine = strCommandLine + " "
                                strCommandLine = strCommandLine + """" + "paperType=6" + """"
                                Response.write "HTML To PDF Command Line1 is: " & strCommandLine & "<br>"
                                PdfCreator.Doc2PDFCommandLine(strCommandLine)
                        end function
                %>
4. Then you can convert .html, URL, .doc, .docx, .rtf, .ppt, .pptx, .xls, .xlsx, txt etc. files to PDF files from your ASP code.

There are more examples in extracted folder and user manual, please check details there. During the using, if you have any question, please contact us as soon as possible.

PCL, PS, PDF Page Counter

Speed for Spool File Page Counter SDK software

For Spool File Page Counter SDK product,

https://www.verydoc.com/spool-page-count.html

VeryDOC support,

I have been evaluating your PDF Parser & Modify SDK for .NET download (ps-and-pcl-info-sdk.zip) as a solution to identify PDF files containing color from PDF files that are 100% Black & White. By redirecting the console to a file I can subsequently process with a reader routine it appears your product has a means of providing the information we need. I also notice on your product website that the DLL files can be integrated into our own applications. After downloading and testing I have 3 issues on which I would like feedback if you don't mind.

1. Execution time: When I run a test using the on a workstation running Windows 7 Enterprise SP1 64 bit on Intel Core i5-3550 @ 3.3 GHz processor (4 CPUs) with 4 GB RAM each PDF was taking 3-5 seconds to output info to the console with the most common time being 4 seconds. Running the same test on a server running Server 2008 R2 Standard SP1 64 bit on Intel Xeon X5650 @ 2.67 GHz 2 processors (24 CPUs) with 24 GB RAM each PDF was taking 2-3 seconds to output info to the console with the most common time being 2 seconds. The issue is that on a given application run we may have 5,000 or more PDF files to identify as color or black and white only and our processing window only allows a maximum of 1.5-2 hours to get that part done. Even at an average of 2 seconds per PDF file the time required is 10,000 seconds or about 2.8 hours. I know that looking for color directives in PDF is not a trivial task. Do you have any suggestions how to get faster throughput on the program to where the rate is an average of 1 PDF file per second? I am also wondering if integrating your dll objects into our applications will have a tendency to speed up or slow down the throughput experienced with the examples in the software download.

2. Integration with our apps: In an attempt to connect to namespace properties and methods in your product from a Visual Studio 2008 project I get a message that the dll files were not built in a way that exposes those objects for linking with software I develop. I can write the project to run a DOS shell that executes your program and then retrieve the log but your website indicates that the functionality of your program can be integrated into our own applications.

3. Server vs Developer: I first downloaded what the server version download button downloads and that is what I used in testing execution time because of pricing and using a robust server situation to process is most likely what we would be setting up. When I could not get the DLLs to link with a sample VS2008 program I created I considered that maybe the developer version has exposed DLLs. So I click the download button for the developer version and what was downloaded is identical to what the server download button downloaded. I did not go any further. Are there special mechanics involved when linking your DLL files to our applications. I want to be sure the performance and .NET linking of DLL files are achievable before I can consider recommending a purchase.

Thanks for your time and response to my questions. I look forward to hearing from you soon. My phone # is below if you think it would be better to share a verbal dialog.

Customer

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

>>1. Execution time:

The speed of our Spool File Page Counter SDK (ps-and-pcl-info-sdk) is already fast enough, it is need only 2 seconds per file. However, I have following solution to you if you wish improve the speed continue,

Multiple Processes:
You can run several instances of ps-and-pcl-info-sdk to check the color information of your PDF pages, multiple processes will utilize multiple core CPU completely, this will improve the speed for multiple files a lot.

You can also send to us some PDF files for checking, we will try to figure out a best solutions for your PDF files in order to improve the speed.

>>2. Integration with our apps

ReadInfo.dll is a 32bit DLL Library, it is not a COM component, you can call ReadInfo.dll from your source code directly, but you can't add a reference to it, please understand.

Also, ReadInfo.dll is a 32bit DLL Library, when you call it from your code, you need compile your source code with x86 compile option, if you compile your source code with x64 or AnyCPU on 64bit system, you can't call it properly, you will get "incorrect image format" error.

>>3. Server vs Developer:

Yes, you can call ReadInfo.dll from .NET code without any problem, you need call ReadInfo.dll from your .NET code directly and compile your code with x86 platform mode.

VeryDOC

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

Thank you for the prompt response. The information you provided resolves my issues. I was able to call your product functionality from a simple .NET program and while I have not attempted a throughput test of multiple programs running concurrently to use more of the available cores it makes sense that doing so should result in an overall throughput increase.

Customer

HTML to EPUB Converter

Convert HTML to ePub facilitating reading on Apple iPad or other small devices

   In this article, I will share a method of making HTML readable on mobile ePub compatible devices like Apple iPad, iPhone, iPod Touch, Sony Reader and others. The software I use is named as VeryDOC HTML to ePub Converter, by this you can make eBooks from HTML files easily and quickly.  And this software is GUI version, the operation is quite easy, so no matter how many eBooks of ePub you want to make, the conversion could finish in a few seconds. Please check more information on homepage, in the following part, I will show you how to use this software.

Step 1. Free Download HTML to ePub Converter

  • If you have need of converting HTML to ePub, maybe you can have a free trial of this software as all the VeryDOC software are free downloading and free trying.
  • When downloading finishes, there will be an exe file. Please install this software by double clicking the exe and following installation message. When installation finishes, there will be an icon on the desktop, simply click it then you can launch this software. The following snapshot is from the software interface, please have a check.

software interface of HTML to ePub Converter

Step 2. Convert HTML to ePub  in batch.

  • When you open this software, please click button Add HTML Files to add local HTML file to software interface, or you can drag HTML file to software interface from its containing folder. Please note now this software can not be used to convert online HTML file to ePub eBooks. When converting online HTML file, pleas save it to local HTML first then convert it to ePub by this software.
  • In the right part of the software interface, you can add basic information like name, author, ISBN, publisher, date, series, cover and comments. The cover could be any one the image formats: png, jpg and others.
  • This software also allows you to view after conversion at once. If you add some one by mistake, simply click button Remove to delete added file one by one. If you need to clear all the added HTML file, please click button Remove All.
  • When you finish setting part, please click button Convert to run the conversion at once. When you click it, you will be reminded to choose output folder meanwhile.

A few seconds later, you can check output files in specified output folder. By this software, you can read HTML file in the format of ePub. During the using, if you have any question, please contact us as soon as possible.

PostScript to Text Converter

Return code from PS to Text SDK Library

We have purchased your product "PS2Image and PS2Text". When using the PS2Text SDK using a C#, I was running the following code

public long Convert2TXT()
{
        long nRet = 0;
        string strCmd = null;
        strCmd = "ps2txt -$ XXXXXXXXXXXXXXX";
        strCmd = strCmd + " \"" + strInFile + "\"";
        strCmd = strCmd + " \"" + strOutFile + "\"";
        nRet = VeryPDF_PSToText(strCmd);
        return nRet;
}

My issue is, when I run the above code, the nRet (the integer that is the result of the command), if this number is zero or less than zero it is not success - right?, but if that number is a positive number it means success - right?

in some case I get number 2, as a result and there is not file output saved - Do you have what error number 2 means?, I was just wondering if you have list of results that show explanations of error outputs.

Thanks,
Customer

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

Thanks for your message, VeryPDF_PSToText() function does return following error codes,
//~~~~~~~~~~~~~~~~~~~
//0: - Success not found any problem.
//1: - Couldn't open PDF file, this PDF file maybe contains an open password or be damaged
//2: - Couldn't open output text file
//10: - Success with found some embed fonts.
//11: - Success with have only embed fonts in PDF file.
//12: - Fail with empty text file such as this PDF is picture scan or PDF have only picture.
//-1: - Fail with other causes (can not convert to text file) such as found exception, time out, not enough memory.
//-11: - Fail with something is wrong in input parameters,
//~~~~~~~~~~~~~~~~~~~

Postscript to Text Converter SDK can be downloaded from following web page,

https://www.verydoc.com/ps-to-text.html
https://www.verydoc.com/ps2txtsdk.zip

VeryPDF

PDF to DWG Converter

How to convert PDF drawing to AutoCAD file and change the scale of drawing?

Question: I have converted a PDF drawing to a AutoCAD DXF file . how should i change the scale of drawing? I have converted a PDF file to an Dxf file but when i am measuring all dimensions are diff then actual dimensions in drawing. so please tell me how can I change the scale of drawing.

Answer: If a dimension says 10m and the actual measurement is 5 units, you have to modify your dimension style and adjust the DIMLFAC system variable. Decrease the size to half or calculate the scale factor by dividing the actual value with the displayed value. Use the DISTANCE command when checking measurements, not the DIMENSION command.DIMLFAC can be manually adjusted in the "Modify Dimension Style" dialog box, under "Primary Units" tab in the " Measurement Scale" group. Change the "Scale Factor" value.  And there is also another methods that you can use software to convert PDF to AutoCAD directly. VeryDOC PDF to DWG Converter can help you convert PDF to AutoCAD and change the scale of drawing in one command line. 

   If you need to do the conversion and changing in the easiest way, maybe you can have a free trial of this software. Please check more information of this software on homepage. In the following part, I will show you how to use this software.

Step 1. Free download PDF to DWG Converter Command Line

  • This software is Window command line version software, when downloading finishes, there will be a zip file. Please extract it to some folder then you can find the executable file.
  • When call this software from MS Dos Windows, please refer to the usage and examples in readme.txt.

Step 2. Convert PDF to AutoCAD and change the scale of drawing.

  • Here is the usage for your reference: pdf2dwg [options] <pdf-file> [<out-file>]
  • When converting PDF to AutoCAD and scale output drawing, please refer to the following command line templates.
    pdf2dwg.exe -xscale 0.5 -yscale 0.5 C:\test.pdf C:\out.dxf
    When inputting command line, please input options of parameters first then input the full path of input PDF file the the output PDF file. When changing scale of PDF, you may use the following parameters. This software allows you to scale output CAD file from X and Y directions.
  • -xscale <fp>    : scale by a factor in x-direction
    -yscale <fp>    : scale by a factor in y-direction

By this software, you can also do lots of work, like rotating output by any degree (0-360 degree), map colors to layers in CAD drawing and others. More functions could be found in readme.txt. During the using, if you have any question, please contact us as soon as possible.