PDF Compressor

Compress PDF in Batch by Command Line

  When you need to compress PDF in batch by command line or compress PDF together with : C#, C++, Delphi, Visual BASIC, VB.net, etc), please have a free trial of software VeryDOC PDF Compressor. This software is a professional tool for compressing PDF files, as it takes the latest image compression technology and the new JBIG2 & JPEG2000 compression formats, which  make it the most compact, Web-friendly PDF files available. In the following part, I will show you how to compress in batch by this software.

Step 1. Download PDF Compressor Command Line

  • As it is command line version software,we have compressed it to zip file. When downloading finishes, there will be an zip file, please extract it to some folder then you can call it from MS Dos Windows.
  • Please note this software is Window application, now it can not work under Mac and Linux system.

Step 2.  Compress PDF in Batch by Command Line

  • When run the conversion, please refer to the usage and examples.
  • Usage:pdfcompressor [options] <pdf-file> [<out-pdf>]
  • When you need to compress PDF in batch or from system, please refer to the following command line templates.
  • pdfcompressor.exe C:\in.pdf C:\out.pdf
    pdfcompressor.exe C:\in\*.pdf C:\out\*.pdf
    for %F in (D:\test\*.pdf) do "pdfcompressor.exe" "%F" "%~dpnF-out.pdf"
    for /r D:\test %F in (*.pdf) do "pdfcompressor.exe" "%F" "%~dpnF-out.pdf"
    When you do the batch conversion, you can either use wild character or bat files.

There are three methods to compress PDF provided by this software, they are:
1. Subset fonts in PDF files.
2. Compress image streams with JBIG2 and JPEG2000 technologies.
3. Remove unused objects (a garbage collector for PDF files).

Please use the corresponding method according to your PDF files. When there are mainly fonts in PDF file, please use  method of Subset fonts in PDF files to compress PDF files. When handling PDF full of images, please use method of Compress image streams with JBIG2 and JPEG2000 technologies. When you need to make fast web view of compressing, maybe you can use method of Remove unused objects (a garbage collector for PDF files).

Here are some parameters like:
-winfont               : Use Windows fonts to replace Base14 fonts
-embedallfonts         : Embed all fonts
-subsetfonts           : Subset fonts
-compressfonts         : Compress fonts
-pwdinpdf <string>     : Open password for input PDF file
-pdfa                  : Create PDF/A file
-nobookmarks           : Don't generate bookmarks in output PDF file
-jbig2                 : Compress monochrome image streams with JBIG2 arithmetic
-jpx                   : Compress color and grayscale image streams with JPEG2000 arithmetic

  As to which parameters should be used, please check parameter list on our website or the readme.txt. During the using, if you have any question, please contact us as soon as possible.

VN:F [1.9.20_1166]
Rating: 5.2/10 (6 votes cast)
VN:F [1.9.20_1166]
Rating: -2 (from 2 votes)
EMF to Vector Converter

How to call EMF to Vector Command Line Server License from C# and Windows Service?

 

Hi,

We've just bought a license of emf2vec.exe yesterday and I registered it using

emf2vec.exe "-$" "XXXXXXXXXXXXXXXXXXXXXX"

It works OK when I call it in batch file, but when I call it from a Windows service application developed in c# with MS Visual Studio 2005, it does not work! ( see C# codes below)

Any help or suggestions on this will be greatly appreciated.
Regards,

Simplified version of C# codes:
...
Process myProcess = null;
myProcess = new Process();
paramStr = @" -xres 600 -yres 600 in.emf out.tif";
myProcess.StartInfo.FileName = @"C:\emf2vec\emf2vec.exe";
myProcess.StartInfo.Arguments = paramStr;
myProcess.StartInfo.CreateNoWindow = true;
myProcess.Start();
...

Customer

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

Please arrange your service run from Administrator user account to try again, we hoping you will get it work fine with this option.

VeryDOC

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

Thanks, but the windows service app had been run from the administrator's account all the time and I had also tried to set emf2vec.exe (version 2.0.0.1) in different compatibility modes and with and without the allow non-administrators to run this program checked.

By the way, the server on which the service app is running is MS Windows Server 2003 R2, Enterprise Edition, Service Pack 2

Hope you can think of something else I can try.
Thanks again,

Customer

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

Please consider this issue resolved: I created a Console application using C# to replace the window service application: emf2vec.exe works well when called from the console application.
Thanks,

Customer

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

Thanks for your message, yes, you are right, the Windows application can not be shown from a service, so the Windows Service application will simple hang, the console application can be called from Windows Service without this problem.

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)
DOC to Any Converter

Excel or word files to PDF using VB

Question:I am looking for a tools were I can convert excel or word files to PDF I am using vb6 and wanted to know if this control was available. I am looking forward to your good news. Thx

Answer: According to your needs, maybe you can have a free trial of VeryDOC DOC to Any Converter. By this software you can convert DOC, DOCX, DOCM, RTF, TXT, PPT, PPTX, XLS, XLSX, OpenOffice ODT, HTML, MHTML files to PDF together with VB. In the following part, I will show some examples.

Step 1. Download DOC to Any Converter

  • When downloading finishes, there will be an zip file. Please unzip this file then check the elements in it.
  • Please note when you need to call this software together with VB, please download the SDK version or the server version, which is easily to be called from ASP/PHP/C#/.NET/... etc. server side applications.

Step 2. Some code examples when calling together with VB, C# and others.

Example #4 (VB.NET example),
System.Diagnostics.Process.Start("C:\doc2any.exe C:\test.doc C:\out.pdf")
Example #5 (C# example),
Please by following steps to call doc2any.exe inside a special user account,
1. Please download and install EXEShell COM Library (freeware) from following URL first,
https://www.verydoc.com/exeshell.html
https://www.verydoc.com/download/exeshell.zip
2. Please use following C# code to run the conversion inside a special user account,
~~~~~~~~~~~~~~~~~
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using EXESHELLLib;

namespace ConsoleApplication1
{
    class Program
{
static void Main(string[] args)
{
EXESHELLLib.shell EXEShell = new EXESHELLLib.shellClass();
EXEShell.RunCommandLine("UserName", "Password", @"C:\doc2any.exe ""C:\test.doc"" ""C:\out.pdf""");
EXEShell = null;
}
}
}
~~~~~~~~~~~~~~~~~
Remark:
You may encounter Error 1314 in some Windows systems when you switch between user accounts, this is caused by permission setting, please refer to the steps in #2 to solve the 1314 Error.
Example #6 (PHP example),
<?php
    $exeshell =new COM("exeshell.shell") or die("Can't start exeshell");
    $exeshell->RunCommandLine("UserName", "Password", ' "C:\doc2any.exe" "C:\test.doc" "C:\out.pdf" ');
    $exeshell = null;
?>

Please note this software supports all version of VB, C#  and other third party applications. A programmer can create an application using the components provided by the Visual Basic program together with Doc to Any Converter . Programs written in Visual Basic can also use the Windows API, but doing so requires external function declarations.  If you use the SDK version of the software, when developing finishes, you are allowed to Royalty Free Runtime Desktop Distribution, which means that you can run on any number of servers/computers and distribute the newly developed software casually.  

During the using, if you have any question, please contact us as soon as possible.

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

Any to watermarked PDF by Doc to Any Converter

Question:Hello, I've been looking at your suite of products as opposed to some other options. 'DOC to Any Converter' seems to be the product which might help me with my need. However, I also need to be able to apply a watermark to a PDF document, which means PDF(non watermarked) > PDF(watermarked).
The ideal hypothetical product for me is 'Any to watermarked PDF. Can you please suggest which product or product combination would achieve this? I see that there is 'Doc Converter COM', but I can't justify USD 2,000 for what I need to do - I would be better with alternative solutions.
For PDF(non watermarked) to PDF(watermarked) I thought about Step 1 - 'PDF to Word Converter', then Step 2 - 'DOC to Any Converter', but maybe you have a better idea.Look forward to hearing.

Answer:  Yes, your method is too complicated. From any to watermarked PDF, simply one software VeryDOC DOC to Any Converter can help you make that. In the following part,  I will show you how to use this software to convert any to watermarked PDF file.

Step 1. Download  DOC to Any Converter

  • This is command line version software. When downloading finishes, there will be an zip file. Please unzip it to some folder then you can check the elements in it.
  • When you use this software, please input the command line according to the usage and example.

Step 2. Convert Any to watermarked PDF

Usage: DOC2Any [options] <in-file> [<out-file>]

  • This software can convert *.DOC, *.DOCX, *.RTF, *.TXT, *.PPT, *.PPTX, *.XLS, *.XLSX  and others as input.
  • When output is PDF, you can add watermark according to your need.
  • When convert any doc file to PDF and add watermark, please refer to the following command line template.
  • doc2any.exe -wtext "VeryPDF" "C:\in.doc" C:\out.pdf
    doc2any.exe -wtext "VeryPDF" -wc "0000FF" "C:\in.ppt" C:\out.pdf
    doc2any.exe -wtext "VeryPDF" -wx 100 -wy 100 "C:\in.docx" C:\out.pdf
    doc2any.exe -wtext "VeryPDF" -wtype 1 "C:\in.pptx" C:\out.pdf
    doc2any.exe -wtext "VeryPDF" -wtype 2 "C:\in.xls" C:\out.pdf
    doc2any.exe -wtext "VeryPDF" -wtype 0 -wa 45 "C:\in.doc" C:\out.pdf
    doc2any.exe -wtext "VeryPDF" -wf "Arial" "C:\in.doc" C:\out.pdf
    doc2any.exe -wtext "VeryPDF" -wf "Arial" -wh 20 "C:\in.doc" C:\out.pdf
    doc2any.exe -wtext "VeryPDF" -wf "Arial" -wh 20 -wb -wi -wu -ws "C:\in.doc" C:\out.pdf
    doc2any.exe -wtext "VeryPDF" -wf "Arial" -walign 3 -wh 20 -wbox "0,770,612,792" "C:\in.doc" C:\out.pdf
    Related Parameters:
    -wtext <string>      : watermark on printed document
    -wtype <int>           : type of watermark
        0 : normal watermark
        1 : watermark on header
        2 : watermark on footer
    -wf <string>      : font name of watermark
    -wh <int>           : font size of watermark
    -wb                      : specify bold font
    -wi                       : specify an italic font
    -wu                      : specify an underlined font
    -ws                      : specify a strikeout font
    -wa <int>           : angle of watermark
    -wbox <string> : a rectangle to output formatted text, it is only useful for "-walign" option, eg:
        -wbox "0,0,595,842"
        -wbox "0,0,612,792"

By those above command line templates, you can convert any doc files to watermarked PDF file.  During the using, if you have any question, please contact us as soon as possible.

VN:F [1.9.20_1166]
Rating: 0.0/10 (0 votes cast)
VN:F [1.9.20_1166]
Rating: 0 (from 0 votes)
Image to XPS Converter

Convert Jpeg to XPS and add watermark by command line

    When you need to get the content in Jpeg file format to paper document, it will be a little complicated as now most of the printers does not support image as input printing formats. However, if you can convert Jpeg to XPS file then you can print it directly. VeryDOC Jpeg to XPS Converter can help you do the conversion and it also allows you to stamp watermark on the output XPS file. In the following part, I will show you how to use this software.

Step 1. Download Jpeg to XPS Converter

  • This software is Windows command line application, once downloading finishes, there will be an zip file. Please extract it to some folder then you can use it normally.
  • If you need to know more functions and usage, please check them on our website.

Step 2. Convert Jpeg to XPS and add watermark

  • When you run the conversion, please refer to the usage and examples.
    Usage: img2xps.exe [options] [Options] <Image Files>
  • When you need to convert Jpeg to XPS and add watermark, please refer to the following command line template.
    img2xps.exe -wtext "test for checking" -wb -wi -wu -ws C:\input.jpg
    When you input the command line, please call this application first in MS Dos Windows, using parameter -wtext to specify the text of watermark, then specify watermark color, size, position and others. At last input the full path of input Jpg file path.
  • When you need to convert single Jpeg to XPS, please refer to the following command line.
    img2xps.exe C:\files.jpg C:\out.xps
  • When you need to do batch conversion, you can use wild character. Please refer to the following command line.
  • img2xps.exe C:\*.jpg C:\out.xps
    img2xps.exe C:\test*.jpeg C:\*.xps
    By this function, you can also convert jpg files with some prefix to XPS file in batch, say C:\test*.jpeg.
    Related Parameters:
    -wtext <string> : watermark on printed document
      -wtype <int>    : type of watermark
        0 : normal watermark
        1 : watermark on header
        2 : watermark on footer
      -wf <string>     : font name of watermark
      -wh <int>         : font height of watermark
      -ww <int>        : font width of watermark
      -wb                    : specify bold font
      -wi                    : specify an italic font
      -wu                    : specify an underlined font
      -ws                    : specify a strikeout font
      -wo <int>          : opacity of watermark, from 0 to 100
      -wa <int>           : angle of watermark
      -wc <string>       : color of watermark,
        FF0000: Red color
        00FF00: Green color
        0000FF: Blue color
        HexNum: Other colors
      -wx <int>              : X offset of watermark
      -wy <int>              : Y offset of watermark

     

Now let us check the conversion effect from the following snapshot.

input Jpeg and output XPS

During the using, if you have any question, please contact us as soon as possible.

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