htmlprint to any converter

How to print HTML file or Web URL to PDF or Postscript or EMF or Image (TIFF, JPG, PNG, etc.) files?

When using -printtopdf is there a way to tell it where the PostScript is?

Is there a list of all the options that can be used in -ps2pdfopt?

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

image
>>When using -printtopdf is there a way to tell it where the PostScript is?

Yes, you can run following command line to specify output path for PS file,

html2any.exe -printtopdf C:\out.pdf http://www.verypdf.com

html2any.exe -printtopdf C:\out.pdf -ps2pdfopt "-ownerpwd owner -keylen 2 -encryption 3900" http://www.verypdf.com

html2any.exe -printtopdf C:\out.pdf -ps2pdfopt "-subject \"subject\" -creator \"creator\"" http://www.verypdf.com

html2any.exe -printtopdf C:\out.pdf -ps2pdfopt "-$ XXXXXXXXXXXX" http://www.verypdf.com

image

>>Is there a list of all the options that can be used in -ps2pdfopt?

Please look at command line options which supported by -ps2pdfopt at below,

E:\htmlprint2any_cmd\ps2pdf.exe
VeryDOC PS to PDF Converter v2.1
Web: http://www.verypdf.com
Web: https://www.verydoc.com
Email: support@verypdf.com
Build: Sep 12 2009
-------------------------------------------------------
Key features in ps2pdf.exe:
Convert postscript files to Acrobat PDF files.
Merge PDF files into one PDF file.
Convert PDF files to postscript files.
Burst PDF file to single page PDF files.
Set document summary to output PDF files.
Set encryption options to output PDF files.
Remove empty pages from PDF file automatically.
Rotate PDF pages during conversion.
-------------------------------------------------------
Usage: ps2pdf.exe [options] [Options] <PS file> [PDF file]
-mode <int> : set mode for PS to PDF conversion,
        -mode 0: convert Postscript to PDF file quickly, default
        -mode 1: convert Postscript to PDF file by second method
        -mode 2: convert Postscript to EMF and merge EMF files into PDF file
        -mode 3: convert Postscript to PDF by ghostscript
-firstpage <int> : First page to print, from 1 to max page
-lastpage <int> : Last page to print, from 1 to max page
-producer <string> : Set 'producer' to PDF file
-creator <string> : Set 'creator' to PDF file
-subject <string> : Set 'subject' to PDF file
-title <string> : Set 'title' to PDF file
-author <string> : Set 'author' to PDF file
-keywords <string> : Set 'keywords' to PDF file
-openpwd <string> : Set 'open password' to PDF file
-ownerpwd <string> : Set 'owner password' to PDF file
-keylen <int> : Key length (40 or 128 bit)
        -keylen 0: 40 bit RC4 encryption (Acrobat 3 or higher)
        -keylen 1: 128 bit RC4 encryption (Acrobat 5 or higher)
        -keylen 2: 128 bit RC4 encryption (Acrobat 6 or higher)
-encryption <int> : Restrictions
        -encryption 0: Encrypt the file only
        -encryption 3900: Deny anything
        -encryption 4: Deny printing
        -encryption 8: Deny modification of contents
        -encryption 16: Deny copying of contents
        -encryption 32: No commenting
===128 bit encryption only -> ignored if 40 bit encryption is used
        -encryption 256: Deny FillInFormFields
        -encryption 512: Deny ExtractObj
        -encryption 1024: Deny Assemble
        -encryption 2048: Disable high res. printing
        -encryption 4096: Do not encrypt metadata
-rotate <int> : Rotate pages, 90, 180, 270
-noempty : Delete empty pages from PDF file
-mergepdf <string> : Merge two PDF files into one PDF file
        -mergepdf <file1|file2|file3|...>: Merge several PDF files into one
        -burstpdf <string> : Burst PDF file into single page PDF files
-pdf2ps <string> : Convert PDF to PS directly
-$ <string> : Input registration key
Example:
ps2pdf.exe C:\input.ps
ps2pdf.exe C:\input.ps C:\output.pdf
ps2pdf.exe -firstpage 1 -lastpage 20 C:\input.ps C:\output.pdf
ps2pdf.exe -subject "subject" C:\in.ps C:\out.pdf
ps2pdf.exe -producer "producer" C:\in.ps C:\out.pdf
ps2pdf.exe -creator "creator" C:\in.ps C:\out.pdf
ps2pdf.exe -ownerpwd owner -keylen 2 -encryption 3900 C:\in.ps C:\out.pdf
ps2pdf.exe -mergepdf "C:\1.pdf|C:\2.pdf|C:\3.pdf" C:\out.pdf
ps2pdf.exe -burstpdf C:\input.pdf C:\output.pdf
ps2pdf.exe -rotate 90 C:\input.ps C:\output.pdf
ps2pdf.exe -mode 1 C:\input.ps C:\output.pdf
ps2pdf.exe -mode 2 C:\input.ps C:\output.pdf
ps2pdf.exe -pdf2ps C:\input.pdf C:\output.ps
ps2pdf.exe -noempty C:\input.ps C:\output.pdf

VeryDOC

VN:F [1.9.20_1166]
Rating: 0.0/10 (0 votes cast)
VN:F [1.9.20_1166]
Rating: 0 (from 0 votes)
pdf compressor

How to test PDF Compressor SDK from C# source code?

Hi,

I am looking at getting a developer SDK license for the PDF Compressor, I am unable to work out how test this in my Application. i use C#, are you able to help me out or point me in the right direction.

Customer
------------------------------------------
Thanks for your message, you can download and purchase PDF Compressor SDK  from following web page,

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

this pdfcompressor_sdk.zip package is contain C#, VB and VB.NET examples, you can launch a CMD window by administrator privilege, and run following command line to register PDFCompressCom.exe COM into your system,

PDFCompressCom.exe /regserver

then you can compile and run C# project to test PDF Compression function.

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using VeryPDF;
using System.IO;

namespace WindowsFormsApplication1
{
    public partial class Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();
        }

        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);
        }
    }
}

VeryDOC

See Also:

https://www.verydoc.com/blog/verydoc-release-notes-verydoc-releases-a-new-version-of-pdf-compressor-sdk-software-today.html

VN:F [1.9.20_1166]
Rating: 0.0/10 (0 votes cast)
VN:F [1.9.20_1166]
Rating: 0 (from 0 votes)
pdf compressor

Is it possible with your ‘VeryDOC PDF Compressor Command Line’ tool to configure it to watch a folder and automatically compress the .pdf when arrives in the folder?

Hello there,

Is it possible with your 'VeryDOC PDF Compressor Command Line' tool to configure it to watch a folder and automatically compress the .pdf when arrives in the folder? Do you have a solution to do also OCR for the pdf?

Many thanks for your answer!

Best regards,
Customer
------------------------------------------------

image
VeryDOC PDF Compressor Command Line can be found from following web page,

https://www.verydoc.com/pdfcompressor.html

>>Is it possible with your 'VeryDOC PDF Compressor Command Line' tool to configure it to watch a folder and automatically compress the .pdf when arrives in the folder?

Yes, you can write a .bat file to watch a folder, when a PDF file be placed into this folder, this PDF file will be compressed automatically, I have attached a sample .bat file at below.

You can use following .bat command to monitor D:\temp\ folder, if you place a PDF file into D:\temp\ folder, this .bat file will compress it and output PDF file to D:\out folder, you can modify the input and output folders by yourself,

----------------------------------------
@ECHO OFF
:retry
echo Compress PDF file...
for %F in (D:\temp\*.pdf) do D:\VeryPDF\pdfcompressor.exe -ci jpg -cidown -cidownres 50 -gi jpg -gidown -gidownres 50 -mi fax -midown -midownres 50 "%F" "D:\out\%~nF.pdf"
ping -n 5 127.0.0.1
goto retry
----------------------------------------

>>Do you have a solution to do also OCR for the pdf?

Yes, you can use following products to convert scanned TIFF or PDF files to OCRed PDF files,

Image to PDF OCR Converter Command Line,
http://www.verypdf.com/app/image-to-pdf-ocr-converter/try-and-buy.html#buy-ocr-cmd

PDF to Text OCR Converter Command Line,
http://www.verypdf.com/app/pdf-to-text-ocr-converter/try-and-buy.html#buy

VeryPDF OCR to Any Converter Command Line,
http://www.verypdf.com/app/ocr-to-any-converter-cmd/try-and-buy.html

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)
doc to any converter

doc2any Command Line and SDK Supported Document Formats

Document formats supported by doc2any Converter Service

DOC to Any Converter Command Line and SDK Home Page,
https://www.verydoc.com/doc-to-any.html

Word
Legacy formats
DOC – Legacy Word document
DOT – Legacy Word templates
RTF – Rich Text Format
ODT
– OpenOffice document

OOXML formats
DOCX – Word document
DOCS – Word document
DOCM – Word macro-enabled document
DOTX – Word template
DOTM – Word macro-enabled template
DOCB – Word binary document introduced in Microsoft Office 2007

Excel
Legacy formats
XLS – Legacy Excel worksheet
XLT – Legacy Excel templates
XLM – Excel macro
CSV – Excel format
ODC – OpenOffice document

OOXML formats
XLSX – Excel workbook
XLSM – Excel macro-enabled workbook; same as xlsx but may contain macros and scripts
XLTX – Excel template
XLTM – Excel macro-enabled template; same as xltx but may contain macros and scripts

Other formats
XLSB – Excel binary worksheet (BIFF12)
XLW – Excel workspace; previously known as "workbook"

PowerPoint
Legacy formats
PPT – Legacy PowerPoint presentation
POT – Legacy PowerPoint template
PPS – Legacy PowerPoint slideshow
ODP –OpenOffice document

OOXML formats
PPTX – PowerPoint presentation
PPTM – PowerPoint macro-enabled presentation
POTX – PowerPoint template
POTM – PowerPoint macro-enabled template
PPAM – PowerPoint add-In
PPSX – PowerPoint slideshow
PPSM – PowerPoint macro-enabled slideshow
SLDX – PowerPoint slide
SLDM – PowerPoint macro-enabled slide

Text Based Formats
CSV, OML, XML, YAML

Visio formats
.vsd, .vsdm, .vsdx [.vsdm and .vsdx require Visio >= 2013]

Publisher formats
.pub

Also following image formats are supported:
JPEG, GIF, PNG, BMP, TIFF, PSD, BMP, SVG

Outlook formats
.msg, .vcf, .ics

Project formats
.mpp [requires Project >= 2010]

See Also:

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

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

VN:F [1.9.20_1166]
Rating: 9.3/10 (4 votes cast)
VN:F [1.9.20_1166]
Rating: 0 (from 0 votes)
doc to any converter

How to set the "Timeout" feature in "doc2any.exe" executable?

We are using "Doc to any convertor" 4 licenses. We are using ASP.Net/C# application to call "doc2any.exe" executable file.

We are looking for following help:
1) How to set the "Timeout" feature in "doc2any.exe" executable?
2) How to catch the exception from "doc2any.exe" executable?
3) How to kill the particular conversion process (which is running on "doc2any.exe" executable)? On exception, the entire conversion is getting stopped. So the next conversion from the queue is not happening.

This is very CRITICAL issues, as we got stuck and our conversion is failing big time.

Below is the sample code:

Process lsProcess = new Process();
lsProcess.StartInfo.UseShellExecute = false;
lsProcess.StartInfo.RedirectStandardOutput = true;
lsProcess.StartInfo.CreateNoWindow = true;
lsProcess.StartInfo.RedirectStandardError = true;
lsProcess.StartInfo.FileName = "D:\doc2any\doc2any_service\docPrint_client.exe";
string lsDOC2AnyExePath = ConfigurationManager.AppSettings["DOC2Any"].ToString();
lsProcess.StartInfo.Arguments = " nowait D:\doc2any\doc2any.exe -$ LICENSEKEY \\172.1.12.10\e$\BOTTOM.PPTX \\172.1.12.10\e$\BOTTOM.PDF"
lsProcess.Start();
lsProcess.WaitForExit();
lsProcess.Close();

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

We have created a new version of doc2any.exe to you today, please download the new version from following URL,

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

The new version of doc2any.exe is support "-killoffice" and "-timeoutkillself" parameters, you can use these parameters to kill MS Office and itself after timeout,

-killoffice <int> : Kill or not kill MS Office instances before conversion
-timeoutkillself <int> : specify a timeout to avoid hanging doc2any process, in millisecond

You can run following command line to kill MS Office (WINWORD.EXE, POWERPNT.EXE, EXCEL.EXE) and doc2any.exe process itself after timeout,

doc2any.exe -killoffice 1 -timeoutkillself 60000 "D:\downloads\password_test.docx" "D:\downloads\password_test.pdf"

VeryDOC

VN:F [1.9.20_1166]
Rating: 10.0/10 (1 vote cast)
VN:F [1.9.20_1166]
Rating: 0 (from 0 votes)