## We are interested in the PS to PDF Converter SDK process of calling the conversion through our C# application seamlessly via the com object

I am interested in incorporating your PS to PDF conversion utility into my company's application. We are interested in the SDK process of calling the conversion through our application seamlessly via the com object - not by performing batch conversions through the .exe

also looking for compatibility - windows 10, windows 7, Server 2008, 2012, 2016 etc.

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

ps2pdfcom.exe /regserver

after you register it into your system, you can call "ps2pdfcom.ps2pdf" from your C# source code to convert from PS files to PDF files easily, for example,

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 ps2pdfcom;
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 strInFile = appPath + "\\test.ps";
string strOutFile = appPath + "\\_test.pdf";
string strLicenseKey = "-$XXXX-XXXX-XXXX-XXXX"; string strCmd = strLicenseKey + " \"" + strInFile + "\" \"" + strOutFile + "\""; System.Type VeryPDFType = System.Type.GetTypeFromProgID ("ps2pdfcom.ps2pdf"); ps2pdfcom.ps2pdf VeryPDFCom = (ps2pdfcom.ps2pdf) System.Activator.CreateInstance(VeryPDFType); VeryPDFCom.com_VeryPDF_PSToPDF(strCmd); MessageBox.Show("Converter finished."); } } } 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) Posted in Postscript to PDF Converter | Tagged , | Leave a comment ## How to call doc2pdf.exe with parameters from a batch file / Script without any human intervention (no pop_ups)? Hello I am planning to Purchase "DOC to PDF" / VeryPDF software for our company, however, I need to make sure that I do the following, 1 - Install the software on a server 2 - Can call doc2pdf.exe with parameters from a batch file / Script without any human intervention (no pop_ups) Regards Customer ---------------------------------------------------- Thanks for your message, yes, no problem, after you buy the docPrint SDK Server License or Developer License, you can call doc2pdf.exe from a batch file or script file without any human intervention. docPrint SDK Server License is USD$399.00 per server, you may download and try it from this web page,

btw, you can also download and try our VeryDOC DOC to Any Converter Command Line software from this web page,

You can call doc2any.exe from a Windows Service or ASP, PHP, C#, .NET etc. program languages easily, this web page will let you know how to call it from a web server application,

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

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

## We are running the command below to convert an excel file to a pdf from Task Scheduler. The command is in a batch file.

Hi - We are running the command below to convert an excel file to a pdf. The command is in a batch file. If we execute the batch file directly it works fine, but if we try to use Task Scheduler to execute the batch file it hangs.

Is there something special about using the office option that we need to have setup? We do have Microsoft Excel installed.

REM --> Convert the Consolidated Bill .xlsx to .pdf file
doc2any -useoffice 1 -useprinter -log log.txt "C:\EBICustom\Test\Server\PDF Invoice\SpaceX\SpaceXTemp\SpaceX_Output.xlsx" "C:\EBICustom\Test\Server\PDF Invoice\SpaceX\SpaceXTemp\ConsolidatedBill.pdf"

This seems to also only happen if we try to use Office. Below is a sample of the command in a batch file that runs fine from the Task Scheduler.

REM --> Convert the Consolidated Bill .xlsx to .pdf file
doc2any.exe -nooffice -useprinter "C:\EBICustom\Test\Server\PDF Invoice\SpaceX\SpaceXTemp\SpaceX_Output.xlsx" "C:\EBICustom\Test\Server\PDF Invoice\SpaceX\SpaceXTemp\ConsolidatedBill.pdf"

Thank you

Ashley Ryum
------------------------------------------

We apologize for any inconvenience this may have caused to you, because MS Office can't be run from a System or Local System user account, so you need run MS Office from an interactive user account to convert office files to PDF files.

Please look at following web pages we hope these web pages will useful to you,

http://www.verydoc.com/others/configure%20office%20applications%20to%20run%20under%20the%20interactive%20user%20account.htm

http://www.verydoc.com/others/configure-word-and-excel.htm

http://www.verydoc.com/blog/aspnet-account-dcom-permisson-for-ms-word.html

You can also use "-nooffice" option to convert from Office documents to PDF files from Task Scheduler directly, please look at following web page for more information,

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

VeryDOC

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

## Pdf2dwg is an important part of the automation (hence we need command line version) of our processing which needs to be included in the testing

Hi

We already have 2 licensed instances of this product and it is excellent.

My I.T. section want me to test our production process on a virtual server for a couple of weeks.

Pdf2dwg is an important part of the automation (hence we need command line version) of our processing which needs to be included in the testing

I it possible to get a trial license for such.

If so what information (server ID, etc.) would you need.

Thanks.
Customer
-------------------------------------------

Thanks for your message, you may download and test the trial version of "PDF to DWG Converter Command Line" from this web page,

after you download it, you can run following command lines to convert from PDF files to DWG and DXF files easily,

pdf2dwg.exe C:\*.pdf C:\*.dxf
pdf2dwg.exe C:\*.pdf C:\*.dwg
pdf2dwg.exe C:\test.pdf C:\out.dxf
pdf2dwg.exe -drawtext 1 C:\test.pdf C:\out.dxf
pdf2dwg.exe -xscale 0.5 -yscale 0.5 C:\test.pdf C:\out.dxf
pdf2dwg.exe -page 3 C:\test.pdf C:\out.dxf
pdf2dwg.exe -rotate 45 C:\test.pdf C:\out.dxf
pdf2dwg.exe -mm -ctl C:\test.pdf C:\out.dxf
pdf2dwg.exe -mm -ctl C:\test.pdf C:\out.dxf
pdf2dwg.exe -ptl C:\test.pdf C:\out.dxf
pdf2dwg.exe -spline 1 C:\test.pdf C:\out.dxf
pdf2dwg.exe -spline 2 C:\test.pdf C:\out.dxf
pdf2dwg.exe C:\test.dxf C:\test.dwg
pdf2dwg.exe -ver 10 C:\test.dwg C:\test.dxf
pdf2dwg.exe -ver 16 C:\test.dwg C:\test.dwg

Please notice, "VeryDOC PDF to DWG Converter Command Line" is can only convert from vector PDF files to vector DWG and DXF files, if your PDF files were created from scanner or camera, you need use "VeryPDF Raster to Vector Converter Command Line" software, this software does convert from scanned PDF files to vector DXF and DWG files,

C:\>Raster2Vector.exe
Convert image files and PDF files to smooth and scalable vector formats.
Input formats: pdf, jpg, gif, png, tif, tga, pcx, pnm (pbm, pgm, ppm), bmp
Output formats: eps, postscript, ps, pdf, svg, dxf, pgm, emf
-pagesize parameter is support A4, A3, A5, B5, Letter, Legal, Tabloid, Statement
, Executive, Folio, Quarto, 10x14. Format names are case insensitive.
-width and -height dimensions can have optional units, e.g. 6.5in, 15cm, 100pt.
Default is inches (or pixels for pgm, dxf).

Usage: RasterToVector [options] <in-file> [<out-file>]
-pagesize <string>   : set page size (default is letter)
-width <string>      : width of output file, unit: in/cm/pt
-height <string>     : height of output file, unit: in/cm/pt
-res <string>        : resolution (in dpi)
-rotate <string>     : rotate counterclockwise by angle
-margin <string>     : set margin to output file, unit: in/cm/pt
-lmargin <string>    : set left margin to output file, unit: in/cm/pt
-rmargin <string>    : set right margin to output file, unit: in/cm/pt
-tmargin <string>    : set top margin to output file, unit: in/cm/pt
-bmargin <string>    : set bottom margin to output file, unit: in/cm/pt
-tight               : remove whitespace around the input image
-linecolor <string>  : set line color #rrggbb (default black)
-fillcolor <string>  : set fill color #rrggbb (default transparent)
-opaque              : make white shapes opaque
-speckle <int>       : suppress speckles of up to this size (default 2)
-invert              : invert color for input image
-svggroup            : group related paths together
-svgflat             : whole image as a single path
-bwthreshold <int>   : set threshold value for color image to BW conversion, default is 240
-method2             : use second method to convert raster to vector format
-centerline          : trace a character's centerline, rather than its outline
-pdfres <int>        : resolution to render PDF pages, default is 150 DPI
-v                   : Print copyright and version info
-h                   : Print usage information
-help                : Print usage information
--help               : Print usage information
-?                   : Print usage information
-$<string> : Input registration key Example: Raster2Vector.exe C:\*.tif C:\*.pdf Raster2Vector.exe C:\in.tif C:\out.eps Raster2Vector.exe C:\in.png C:\out.pdf Raster2Vector.exe C:\in.tif C:\out.ps Raster2Vector.exe C:\in.tif C:\out.svg Raster2Vector.exe C:\in.tif C:\out.pgm Raster2Vector.exe C:\in.tif C:\out.dxf Raster2Vector.exe -method2 C:\in.tif C:\out.emf Raster2Vector.exe -width 595pt -height 842pt C:\in.pdf C:\out.pdf Raster2Vector.exe -pagesize a4 C:\in.pdf C:\out.pdf Raster2Vector.exe -width 8.5 -height 11 C:\in.png C:\out.pdf Raster2Vector.exe -res 300 C:\in.png C:\out.pdf Raster2Vector.exe -margin 30pt C:\in.png C:\out.pdf Raster2Vector.exe -lmargin 10pt -tmargin 10pt -rmargin 10pt -bmargin 10pt C:\in.png C:\out.pdf Raster2Vector.exe -tight C:\in.png C:\out.pdf Raster2Vector.exe -linecolor #FF0000 C:\in.png C:\out.pdf Raster2Vector.exe -fillcolor #FF0000 C:\in.png C:\out.pdf Raster2Vector.exe -opaque C:\in.png C:\out.pdf Raster2Vector.exe -speckle 10 C:\in.png C:\out.pdf Raster2Vector.exe -invert C:\in.png C:\out.pdf Raster2Vector.exe -svggroup C:\in.png C:\out.svg Raster2Vector.exe -svgflat C:\in.png C:\out.svg Raster2Vector.exe -bwthreshold 240 C:\color.png C:\out.eps Raster2Vector.exe -method2 -centerline C:\color.png C:\out.eps Raster2Vector.exe -pdfres 300 C:\color.pdf C:\out.eps VN:F [1.9.20_1166] Rating: 0.0/10 (0 votes cast) VN:F [1.9.20_1166] Rating: 0 (from 0 votes) | | Leave a comment ## Questions about PDF Compressor. Is there a way to compresses/convert color PDF files to black and white PDF files? We are looking at PDF Compressor and trying to figure out whether we need the command line version or the SDK version. 1) Do you have any documentation regarding the SDK and how it works? 2) Is the SDK compatible with VBA (MS Access)? Any information you can provide regarding the SDK version would be helpful. Also, we have tested the command line version with fairly good results. However, I do have two questions: 1. Is there a way to compresses/convert color PDF to B/W ? 2. Is there a way to skip already compressed files. When we try to compress a PDF that is already compressed using JPX, it comes out unreadable. Thanks, Customer ----------------------------------------------------------------------------- >>1) Do you have any documentation regarding the SDK and how it works? The SDK package contains the examples, you can compile and run these examples easily, you may download the trial version of PDF Compressor SDK from this web page to try, >>2) Is the SDK compatible with VBA (MS Access) ? Yes, the SDK does compatible with VBA (MS Access). >>Any information you can provide regarding the SDK version would be helpful. You can call PDFCompressCom.exe COM component from your VB, VC, C#, VB.NET, ASP.NET, Delphi, etc. source code easily. In order to use PDFCompressCom.exe COM component, you need register it into your system first. 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 VB, VC, C#, VB.NET, ASP.NET, etc. projects to test PDF Compression function, please refer to a VB.NET example at below, ---------------------------------- Public Class Form1 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
End Class
----------------------------------

The more command line options can be found on this web page,

http://www.verydoc.com/pdfcompressor-cmd.html

>>Also, we have tested the command line version with fairly good results. However, I do have two questions:
>>1. Is there a way to compresses/convert color PDF to B/W ?

Sorry, PDF Compressor Command Line and SDK can't convert from color PDF files to B/W PDF files, it will keep the same color depth from source PDF files to compressed PDF files.

However, if you wish to converted from color PDF files to B/W PDF files, we can add this function to you at additional development cost, if you are interest in this function, please feel free to let us know.

>>2. Is there a way to skip already compressed files. When we try to compress a PDF that is already compressed using JPX, it comes out unreadable.

Sorry, PDF Compressor Command Line and SDK can't skip already compressed files yet, however, if this function is important to you, we can add this function to you at additional development cost, if you are interest in this function, please feel free to let us know.

VN:F [1.9.20_1166]