DOC to Any Converter

How to convert MS-Office documents .docx, .xlsx to a PDF file from Classic ASP source code?

I'm looking for a command line utility to convert current MS-Office documents .docx, .xlsx to a PDF file.

Is this the https://www.verydoc.com/app/pdf-printer/index.html program?

Also does the MS Office application need to be loaded on the system converting the files or will the utility read the files?

I want to run this on an IIS server and have the application call the commend line program from a web page.

Thanks
Customer
-----------------------------------------------------------------

How to convert MS-Office documents .docx, .xlsx to a PDF file from Classic ASP source code?
>>I'm looking for a command line utility to convert current MS-Office documents .docx, .xlsx to a PDF file.
>>Is this the
https://www.verydoc.com/app/pdf-printer/index.html program?

Yes, this PDF Printer does convert MS-Office documents .docx, .xlsx to a PDF file, but it is not a command line software.

We suggest you may download and purchase "DOC to Any Converter Command Line" from following web page, "DOC to Any Converter Command Line" is a professional command line software to convert office files to PDF files,

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

The more articles for "DOC to Any Converter Command Line" can be found at following web pages,

https://www.verydoc.com/blog/category/doc-to-any-converter
http://www.verypdf.com/wordpress/category/doc-to-any-converter

You will be able to found almost all questions around "DOC to Any Converter Command Line" product in our Knowledge Base.

>>Also does the MS Office application need to be loaded on the system converting the files or will the utility read the files?

With "DOC to Any Converter Command Line" software, it is not necessary to install MS Office application.

Please refer to "-nooffice" option from following web pages,

https://www.verydoc.com/blog/useoffice-and-nooffice-options-in-doc2any-exe-application-how-can-doc2any-exe-to-determine-ms-office-openoffice-and-without-office-automatically.html

https://www.verydoc.com/blog/verydoc-doc-to-any-converter-command-line-v3-5-release-notes-convert-word-to-pdf-without-office-and-openoffice.html

https://www.verydoc.com/blog/how-to-convert-doc-docx-xls-xlsx-to-html-and-pdf-without-ms-office-installed.html

How to convert MS-Office documents .docx, .xlsx to a PDF file from Classic ASP source code?

>>I want to run this on an IIS server and have the application call the commend line program from a web page.

Yes, you can call "DOC to Any Converter Command Line" (doc2any.exe) from your ASP code to convert office files to PDF files. You can call doc2any.exe from PHP code by VeryPDFComRunCmd COM Component,

https://www.verydoc.com/exeshell.html#VeryPDFComRunCmd_COM_Component

https://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

VeryDOC

DOC to Any Converter

Disable Protected View In Office 2010

By default Office 2010 will open documents in protected mode that fail validation, have been downloaded from the internet, are located in potentially unsafe location and include attachments. Protected view opens the document in read-only mode thus minimizing the exposure to some potential security threat.

If you are an experienced user who is annoyed by the protected view, you can always disable it even though it is not recommended by Microsoft.

Open MS Word 2010, go to File Menu(Office Backstage) and select Options. Select Trust Center from the left sidebar and then click Trust Center Settings button in the main window. Now in Trust Center dialog window, select Protected View from the left sidebar and disable protected view for any desired option.

Disable Protected View In Office 2010

You can disable Protected View for files that failed validation, that have been downloaded from the internet, are located in unsafe locations, and/or contain attachments.

When done, hit OK. The above example is that of Word 2010, you will have to manually uncheck the options from Excel 2010, PowerPoint 2010, Outlook 2010, etc..

PDF to Vector Converter

How to call PDF to Vector SDK from 64bit EXE applications? How to use pdf2vector_com.exe COM Component to convert PDF to Vector formats?

Hi,

My company was purchased a PDF to Vector SDK Server license from verydoc in June 2011 for Windows server 32 bit.

We are now upgrading to 64 bit server and were wanting to know if we can use the existing license.

Currently we are passing command line parameters and your License Key to VeryPDF_PDF2Vector() to convert form pdf to Emf.

This is working for 32 bit but not for 64 bit.

Please can you tell us if this same method will work for Windows 2008 R2 64 bit also.

Thanks,
Customer
---------------------------------------------------------

How to call PDF to Vector SDK from 64bit EXE applications? How to use pdf2vector_com.exe COM Component to convert PDF to Vector formats?
Thanks for your message, the latest version of PDF to Vector SDK is contain a pdf2vector_com.exe file, this is a COM interface, pdf2vector_com.exe COM can be called from both 32bit and 64bit applications.

Please download latest version of VeryDOC PDF to Vector Converter SDK from following web page,

https://www.verydoc.com/pdf-to-vector.html
https://www.verydoc.com/pdf2vec_sdk.zip

You can unzip pdf2vec_sdk.zip to a folder, run a CMD window with administrator privilege, and run following command line to register pdf2vector_com.exe into your system,

pdf2vector_com.exe /regserver

Before you remove pdf2vector_com.exe from your system, you can run following command line to uninstall it from your system,

pdf2vector_com.exe /unregserver

after you registered pdf2vector_com.exe with administrator privilege, you can use following C# source code to call PDF to Vector SDK function,

C# example source code to call PDF to Vector SDK/COM,

private void PDF2VectorCOM_Click(object sender, EventArgs e)
{
    string strStartupPath = System.Windows.Forms.Application.StartupPath + "\\";

    System.Type pdf2vecName = Type.GetTypeFromProgID
                   ("PDF2VectorCom.pdf2vec");
    if (pdf2vecName != null)
    {
        object pdf2vec = Activator.CreateInstance(pdf2vecName);
        string strPDFFile = strStartupPath + "test.pdf";
        string strOutFile = strStartupPath + "test.swf";
        string strCmd = "pdf2vec -$ XXXXXXXXXXXXXXXXXXXX \""
                   + strPDFFile + "\" \"" + strOutFile + "\"";

        //MessageBox.Show(strCmd);
        object[] argn = new object[1];
        argn[0] = strCmd;
        int nRet = (int)pdf2vecName.InvokeMember(
              "com_PDF2Vector", BindingFlags.InvokeMethod, null, pdf2vec, argn);
        //int nRet = pdf2vec.com_PDF2Vector(strCmd);
        MessageBox.Show("Return Value is: " + string.Format("{0}", nRet));
    }
}

VBScript example source code to call PDF to Vector SDK/COM,

Set fso = CreateObject("Scripting.FileSystemObject")
strFolderDir = fso.GetParentFolderName(WScript.ScriptFullName)
strParentDir = fso.GetParentFolderName(strFolderDir)
strInFile = strParentDir & "\bin\test.pdf"
strOutFile = strFolderDir & "\_out.emf"
strLicenseKey = "-$ XXXX-XXXX-XXXX-XXXX"
strCmd = "pdf2vec " & strLicenseKey & " """ & strInFile & """ """ & strOutFile & """"

msgbox strCmd

set VeryPDFCom = CreateObject("PDF2VectorCom.pdf2vec")
strReturn = VeryPDFCom.com_PDF2Vector(strCmd)
msgbox "Conversion finished."

Classic ASP example source code to call PDF to Vector SDK/COM,

<%
        strInFile = "D:\test.pdf"
        strOutFile = "D:\_out.emf"
        strLicenseKey = "-$ XXXX-XXXX-XXXX-XXXX"
        strCmd = "pdf2vec " & strLicenseKey & " """ & strInFile & """ """ & strOutFile & """"

      Set VeryPDFCom = Server.CreateObject("PDF2VectorCom.pdf2vec")
        strReturn = VeryPDFCom.com_PDF2Vector(strCmd)
      Response.write "Conversion finished."
%>

VB.NET example source code to call PDF to Vector SDK/COM,

Private Sub Button1_Click(sender As System.Object, e As System.EventArgs) Handles Button1.Click
    Dim strFolderDir As String = Application.StartupPath()
    Dim strInFile As String = strFolderDir & "\test.pdf"
    Dim strOutFile As String = strFolderDir & "\_test_out.emf"
    Dim strLicenseKey As String = "-$ XXXX-XXXX-XXXX-XXXX"
    Dim strCmd As String = "pdf2vec " & strLicenseKey & " """ & strInFile & """ """ & strOutFile & """"

    Dim VeryPDFCom As Object = CreateObject("PDF2VectorCom.pdf2vec")
    Dim strReturn As String = VeryPDFCom.com_PDF2Vector(strCmd)
    MsgBox("Conversion finished.")
End Sub

PHP example source code to call PDF to Vector SDK/COM,

<?php

$strFolderDir = dirname(__FILE__);
$strParentDir = dirname($strFolderDir);
$strInFile = $strParentDir . "\\bin\\test.pdf";
$strOutFile = $strFolderDir . "\\_out.emf";
$strLicenseKey = "-$ XXXX-XXXX-XXXX-XXXX";
$strCmd = "pdf2vec $strLicenseKey \"$strInFile\" \"$strOutFile\"";

echo $strCmd . "\n";
$VeryPDFComObject = new COM("PDF2VectorCom.pdf2vec");
$VeryPDFComObject->com_PDF2Vector($strCmd);
echo "Conversion finished.\n";

?>

Javascript example source code to call PDF to Vector SDK/COM,

<html>
<script type="text/javascript">

function PDFToVectorSDKConverter()
{
        strInPDF = "D:\\downloads\\a.pdf"
        strOutImage = "D:\\downloads\\_test_out.emf"
        strLicenseKey = "-$ XXXX-XXXX-XXXX-XXXX"
        strCmd = "pdf2vec " + strLicenseKey + " \"" + strInPDF + "\" \""
                          + strOutImage + "\""
       
       alert("Start converting,\n\n" + strCmd);
        try {
                var VeryPDFCom = new ActiveXObject("PDF2VectorCom.pdf2vec");
                VeryPDFCom.com_PDF2Vector(strCmd)
        } catch (error) {
            //  error handling code not shown...
            alert(error + '\n\nThis error occurred while\n'
                      'attempting to load VeryPDF.PDFtoImageCom.')
            return;
        }
        alert("Finished the converting.\n\n" + strCmd);
}

</script>

<body>
    <input type="button" value="Test VeryDOC PDF to Vector Converter COM/SDK Function" id="btn" onclick="PDFToVectorSDKConverter()">
</body>
</html>

You may refer to following web pages for more information about pdf2vector_com.exe COM interface,

http://www.verypdf.com/wordpress/201107/call-pdf-to-vector-converter-sdk-from-64bit-exe-application-1488.html

https://www.verydoc.com/blog/how-can-i-use-c-to-call-pdf2vec-com-control.html

https://www.verydoc.com/blog/64-bit-compatibility-for-ps2pdf-converter.html

VeryPDF

DOC to Any Converter

How to append TIFF file to PDF file with standard paper size?

Dear Support Team,

We have a couple of challenges while converting documents to pdf with a command prompt. Looking for your expert assistance to resolve the below issues.

1. When a document is scanned to PDF at 300 dpi or 200 dpi the page dimensions are same with 612 X 792. But when you scan the same document into Tif at 300 dpi the page dimensions are 2500 X 3300 and 1700 X 2200 at 200 dpi.

We are trying to append a page(s) of a 300 dpi Tif file to an existing PDF using doc2any.exe in command prompt to convert the tif to pdf. The pages append without any issue but the pdf viewer displays the appended Tif pages larger than the remaining pages of the pdf document. Attached is an example with appended page on page 2 thus making the other pages look smaller on page width view.

How to append TIFF file to PDF file with standard paper size?

We are expecting the tif page dimensions to downsize to 612 X 792 while converting to Pdf and retain their original scanned dpi.

2.We have a word document with tables and when we convert it to pdf using doc2any.exe the formatting is lost.

Can you suggest or provide a solution to the above if they are already addressed and please let me know if any questions.

Customer
-----------------------------------------
>>1. We are expecting the tif page dimensions to downsize to 612 X 792 while converting to Pdf and retain their original scanned dpi.

Please add "-width 612 -height 792" to try again, e.g.,

doc2any.exe -append 2 -width 612 -height 792 D:\temp\123456.tif D:\temp\123456.pdf

>>2.We have a word document with tables and when we convert it to pdf using doc2any.exe the formatting is lost.

Please add "-useprinter" option to try again, e.g.,

doc2any.exe -useprinter D:\test.doc D:\out.pdf

VeryPDF

PDF Compressor

[VeryDOC Release Notes] VeryDOC Releases a new version of PDF Compressor SDK software today

VeryDOC PDF Compressor allows you to compress PDF files, reduce pdf file size easily and quickly. With this handy tool, you can shrink PDF files, reduce the size of PDF files noticeably without any quality loss. The application can process thousands of PDF files at one time. The user interface is intuitive and easy to use, no learning curve, no skill needed.

Industrial-strength PDF conversion, compression, OCR, & optimization for scanned pages, or any PDF

https://www.verydoc.com/pdfcompressor.html
https://www.verydoc.com/dl2.php/pdfcompressor_sdk.zip

When your PDFs are the best they can be, everyone who uses your files saves time and you save money. For scanned documents, this means advanced image pre-processing, the best available OCR, and the latest image compression. VeryDOC PdfCompressor delivers robust high production 24/7 capability via an intuitive Windows application and a comprehensive command-line interface and API.

What is PdfCompressor?

PdfCompressor can make your documents fully searchable with VeryDOC's super-accurate OCR. Intelligent pre-processing makes our OCR far more accurate and 2-3 times faster than leading OCR products and in up to 117 languages! PdfCompressor combines superaccurate OCR, including support for multidirectional and low contrast text, with the addition of ICR, for handwritten text, and barcodes.

Using the latest in image compression technology and the new JBIG2 & JPEG2000 compression formats, PdfCompressor makes the most compact, Web-friendly PDF files available. PdfCompressor will compress typical black and white scans by a factor of 5-10x (compared to TIFF G4) and color scans by a factor of 10-100x (compared to JPEG.) Our unmatched text focused color scan processing ensures maximum data retention, even under high compression.

Uniquely, PdfCompressor combines image processing, OCR, advanced compression, PDF/A, Bates-stamping, PDF options settings, web-optimization, batch multithreading and encryption all in one step.

compress-pdf

Advantages

  • Email, transmit, and upload compressed documents quickly & easily
  • Reduce storage and transmission requirements by 10x-100x
  • Super accurate OCR for more accurate text searches
  • Batch processing for high volume scanning
  • Better-looking files at smaller file-sizes
  • Dramatically improved download & upload times
  • Automate processes with optional ICR (handwritten) & barcode recognition
  • Archive documents with PDF/A compliance
  • Full control via watched folder mode, command-line interface, and API
  • Integrates seamlessly with Kofax Capture and EMC Captiva
  • Proven results, billions of pages processed and 1000+ corporate clients

Key Features

  • Convert TIFF, PDF, JPEG, and many other file formats into PDF files
  • Compress scanned bitonal documents up to 10x smaller
  • Compress scanned color documents up to 100x smaller
  • Compress up to 15,000 bitonal or 3,600 color pages/hour
  • OCR to create text-searchable PDFs in up to 117 languages
  • Web-Optimize PDFs for fast Internet-based viewing
  • Watched Folder mode for automated workflow
  • Date Stamp, Bates Stamp and Watermark PDF files
  • Merge single or multi-page files to multi-page PDFs
  • Optional cover recognition module (CovR)
  • Optional conversion validation module (ICert)
  • Compress PDF and reduce PDF file size
  • Support batch mode. Easily compress thousands of PDF files
  • Support encrypted PDF document
  • Lossless compression, keep quality the same
  • Better compression mode with minor quality loss
  • Easy to use, no learning curve
  • Supports touch mode. Ready for touchable pad/Microsoft Surface

VB Script Example to compress PDF files,

strFolderDir = CreateObject("Scripting.FileSystemObject").GetParentFolderName(WScript.ScriptFullName)
strInFile = strFolderDir & "\sample\test-color-image.pdf"
strOutFile = strFolderDir & "\sample\test-color-image_out.pdf"

strLicenseKey = "-$ XXXX-XXXX-XXXX-XXXX"

strCmd = "-ci jpx -cidown -cidownres 150 -gi jpx -gidown -gidownres 150 -mi jbig2 -midown -midownres 150 " & strLicenseKey & " """ & strInFile & """ """ & strOutFile & """"

set VeryPDFCom = CreateObject("VeryPDF.PDFCompressCom")
strReturn = VeryPDFCom.PDFCompressor(strCmd)
msgbox strReturn

C# Example to compress PDF files,

private void button1_Click(object sender, EventArgs e)
{
    string appPath = Path.GetDirectoryName(Application.ExecutablePath);
    string strPDFFile = appPath + "\\sample\\test-color-image.pdf";
    string strOutFile = appPath + "\\sample\\test-color-image_out.pdf";
    string strLicenseKey = "-$ XXXX-XXXX-XXXX-XXXX";

    string strCmd = "-ci jpx -cidown -cidownres 150 -gi jpx -gidown -gidownres 150 -mi jbig2 -midown -midownres 150 " + strLicenseKey + " \"" + strPDFFile + "\" \"" + strOutFile + "\"";

    System.Type VeryPDFType = System.Type.GetTypeFromProgID("VeryPDF.PDFCompressCom");
    VeryPDF.PDFCompressCom VeryPDFCom = (VeryPDF.PDFCompressCom)System.Activator.CreateInstance(VeryPDFType);
    string strReturn = VeryPDFCom.PDFCompressor(strCmd);
    MessageBox.Show(strReturn);
}

VB.NET Example to compress PDF files,

Private Sub Button1_Click(sender As System.Object, e As System.EventArgs) Handles Button1.Click
    Dim strFolderDir As String = Application.StartupPath()
    Dim strInFile As String = strFolderDir & "\sample\test-color-image.pdf"
    Dim strOutFile As String = strFolderDir & "\sample\test-color-image_out.pdf"
    Dim strLicenseKey As String = "-$ XXXX-XXXX-XXXX-XXXX"
    Dim strCmd As String = "-ci jpx -cidown -cidownres 150 -gi jpx -gidown -gidownres 150 -mi jbig2 -midown -midownres 150 " & strLicenseKey & " """ & strInFile & """ """ & strOutFile & """"

    Dim VeryPDFCom As Object = CreateObject("VeryPDF.PDFCompressCom")
    Dim strReturn As String = VeryPDFCom.PDFCompressor(strCmd)
    MsgBox(strReturn)
End Sub

VeryDOC PdfCompressor is support Windows, Linux and Mac systems (Linux and Mac versions are available on request), if you have any question, please feel free contact us, we are glad to assist you asap,

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