PDF to Vector Converter

PDF to Vector Converter Change Margin of the file, it is change the paper size from PDF to PCL Conversion

I am now evaluating PDF to Vector Converter command line program. PDF file is converted into PCL and submitted to printer. I find that the margins of the PCL file are different from the original PDF file. The layout of the PCL file is scaled down. Everything is getting small. Is there any way to keep the original layout in the converted PCL file? 

Customer
--------------------------
I do not have order ID as I am still in the stage of evaluation. Please find the original PDF file and the converted PCL file from the attachment.

It is quite obvious that the left margin of the converted PCL file is narrower than that of the PDF file. And also the fonts in the PCL file are smaller.

Thanks for your help.

Customer
--------------------------
Please look at a new converted PCL file from following URL,

XXXXXXXXXXXXXXXXXXX

This PCL file was converted by latest version of pdf2vec.exe application, will this PCL file okay to you?

VeryDOC
--------------------------
The result is far better than before. Is it possible to pass the latest version of pdf2vec.exe for my evaluation?

Customer
--------------------------
Thanks for your message, I have ask our engineer to prepared a new version to you, you may download it from following URL to try,

XXXXXXXXXXXXXXXXXXX

you can run following command line to convert your PDF file to PCL file properly,

pdf2vec.exe -paper pdf pagetest.pdf pagetest.pcl

"-paper pdf" parameter will read paper size from input PDF file and set it to target PCL file, this will make sure input and output documents have same paper size, we hoping this option will work fine to you.

VeryDOC

PDF Compressor

Tips for generating PDF from HTML and making PDF smaller

Question:I'm generating PDF from HTML from C# and the files are coming out a reasonable size. However, I'm interested in any tips anyone has for making the PDF as small as possible.The HTML being rendered is really basic, just a table of names and dates etc - doesn't have to be too pretty. Is there any solution on VeryDOC?

Answer: If you need to generate PDF from C#, software VeryDOC Doc Converter COM can help you do that. But this software can not help you compress output PDF to a reasonable size. It will output PDF from HTML with high quality to make the output PDF keeping all the original elements of HTML file.  If you need to compress PDF to a reasonable size, you’d better compress it with some professional tool like VeryDOC PDF Compressor, by it you can compress PDF according to its size. Say the PDF is text based, you can compress PDF by compressing fonts. In the following part, I will show you how to generate PDF and make it smaller by those two software.

Step 1. Generate PDF from C#.

  • When generating PDF from C#, please download software VeryDOC Doc Converter COM. When downloading finishes, please unzip it and then use it like other COM version software.
  • When generating PDF from C#, please refer to the following code template:
  • Set PdfCreator = New PDFOUTLib.PdfCreator
            PdfCreator.HTML2PDF = "C:\sample.html"
            PdfCreator.FileName = "C:\sample.pdf"
            PdfCreator.HeadersFooters = "off"
            PdfCreator.paperType = 6 '//7 is A4 paper, 6 is A3 paper
            PdfCreator.CreatePDF
            While PdfCreator.StillRunning = 1
                DoEvents
                Call WaitMessage
            Wend
            Set PdfCreator = Nothing
            Debug.Print "C:\sample.html -->C:\sample.pdf"

Step 2. Compress PDF

  • When compressing PDF, please download PDF Compressor Command Line. When downloading finishes, please extract it to some folder then you can use it like other command line version software.
  • When compressing text based PDF, please refer to the following command line templates:
  • pdfcompressor.exe -winfont -embedallfonts -subsetfonts -compressfonts C:\in.pdf C:\out.pdf
    pdfcompressor.exe -subsetfonts C:\in.pdf C:\out.pdf
    Here are some parameters:
    -winfont             : Use Windows fonts to replace Base14 fonts
    -embedallfonts : Embed all fonts
    -subsetfonts      : Subset fonts
    -compressfonts : Compress fonts

By those two software, I guess we can generate PDF and compress PDF to a reasonable size. Now we have not one software which can process those two functions perfectly. But we will make one in the future. During the using, if you have any question, please contact us as soon as possible.

     

Image to XPS Converter

How to convert tiff to XPS from ASP?

   In this article, we will talk about how to convert image tiff to XPS from ASP programming language. The software I use is named as VeryDOC Image to XPS Converter, by which you can also convert other image files like JPG, JPEG, GIF, PNG, BMP, TGA, WMF to XPS file. When converting tiff to XPS, this software either can convert single page XPS or multipage tiff file to XPS file format.  During the conversion, you can directly print output XPS file to some printer and specify output printing paper size. There are more functions of this software, please check them on our software homepage. In the following part, let us check how to convert tiff to XPS from ASP code template.

Step 1. Download Image to XPS Converter Command Line

  • For now there is no COM version of this software, but if you need, please contact us then we can develop one for you.
  • When downloading finishes, it is a zip file. Please extract it then you can call it from MS Dos Window. Even if this is command line application but it also could be called from other programming languages like Visual Basic, C/C++, Delphi, ASP, PHP, C#, .NET, etc.

Step 2. Convert tiff to XPS from ASP code

  • Here is the command line usage: Visual Basic, C/C++, Delphi, ASP, PHP, C#, .NET, etc.
  • When calling this software from ASP code for converting tiff to XPS, please refer to the following code template.
    Please use following ASP code to run the conversion inside a special user account,
    ~~~~~~~~~~~~~~~~~
    <%
        Set comEXEShell = Server.CreateObject("exeshell.shell")
        RootPath = Server.MapPath(".") & "\"
        EXEFile = RootPath & "img2xps\img2xps.exe"
        InFile = RootPath & "test.tif"
        OutFile = RootPath & "out.xps"
        strCommandLine = EXEFile & " " & InFile & " " & OutFile
        response.write strCommandLine & "<br>"
        comEXEShell.RunCommandLine "UserName", "Password", strCommandLine
        Set comEXEShell = Nothing
    %>
    ~~~~~~~~~~~~~~~~~
    When you use this software, please make sure you have the following two elements downloaded:
  • https://www.verydoc.com/exeshell.html
    https://www.verydoc.com/download/exeshell.zip
    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.

  • Here are some parameters you may use, please have a check:
  • -printer <string> : set printer name to create XPS file
    -paper <string>   : set paper size to XPS format
      auto   : retrieve paper size from image file
      number : standard paper size
      others : user defined paper size

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

DOC to Any Converter

Convert html to PDF output result UTF-8(for PHP)

Question:How to convert html to PDF and show output result UTF-8.I use some library but it doesn't support UTF-8.Please tell me which libraries I can use and how to solve this problem. BMW, I need to run the conversion from PHP, is there any solution on VeryDOC?

Answer: According to your needs, maybe you can have a free trial of this software: VeryDOC Doc Converter COM, by which you can convert HTML to PDF from PHP code and output result UTF-8. When output UTF-8, there is no special parameters as it supports UTF-8 as default. UTF-8 (UCS Transformation Format—8-bit) is a variable-width encoding that can represent every character in the Unicode character set. It was designed for backward compatibility with ASCII and to avoid the complications of endianness and byte order marks in UTF-16 and UTF-32. So when you have UTF-8 requirement of output, this software can help you make that. Please check more related information of this software on its website, in the following part, let us check how to make it work.

Step 1. Free download Doc Converter COM

  • This is COM version and there is DLL Library, or Command Line available, enabling developers to access the converter via any programming or scripting languages, such as Visual Basic, C/C++, Delphi, ASP, PHP, C#, .NET, etc.
  • When downloading finishes, there will be a zip file. Please extract it to some folder then you can use it normally.

Step 2. Convert HTML to PDF using PHP

    • When you use this software, first you need to install it. Download PDFcamp Printer Pro and unzip "doc2pdf_com_trial.zip" package to a folder, and run "install_as_exe.bat" file to install the DocConverter COM into your system, then you can  run HTML2PDF.exe by script from MS Dos Windows.
    • When you call the conversion from PHP code, please refer to the following code template:

Example 1
<?php
$url = "http://www.verypdf.com";
$path = "C:\\test.pdf";
$com = new COM("PdfOut.PdfCreator");
$com->html2PDF = $url;
$com->fileName = $path;
$com->Doc2PDFViaSocket();
?>

Example 2:
<?php
$PdfCreator =new COM("PdfOut.PdfCreator") or die("Cannot start PdfCreator");
$PdfCreator->Doc2PDFCommandLine(' "c:\input.doc" "c:\output.pdf" ');
$PdfCreator = null;
?>
Example 3:
<?php
$url = "http://www.verypdf.com";
$path = "C:\\test.pdf";
$com = new COM("PdfOut.PdfCreator");
$com->Doc2PDFCommandLine("\"$url\" \"$path\" \"paperType=0,PrintHTMLBackground=yes,overwrite=yes\"");

During the using, if you have more questions about it, please contact us as soon as possible.

Image to XPS Converter

How to create XPS file from ASP?

In this article, I will share a method of creating XPS file and add company logo on output XPS file from ASP. The software I will use is named as VeryDOC Image to XPS Converter, by which you can create XPS file from image files easily. And this converter is command line version software, so you can call this software from ASP directly.  If you need, this software also allows you to call it from Visual Basic, C/C++, Delphi, ASP, PHP, C#, .NET, etc. Using the COM object (or DLL Library, or Command Line), file conversions can be done consecutively or simultaneously.

The XPS document format consists of structured XML markup that defines the layout of a document and the visual appearance of each page, along with rendering rules for distributing, archiving, rendering, processing and printing the documents. Notably, the markup language for XPS is a subset of XAML, allowing it to incorporate vector-graphic elements in documents, using XAML to mark up the Windows Presentation Foundation (WPF) primitives. Now this file formats is widely used in printing area. For creating XPS file, please refer to the following steps.

Step 1. Download Image to XPS Converter Command Line

  • When downloading finishes, you can find a zip file. Please unzip it and then check elements, usage, parameters carefully.
  • When you call this software from ASP, please refer to the example in user manual.

Step 2. Create XPS file from image together with ASP.

  • This software supports the following image file formats:TIF, TIFF, JPG, JPEG, GIF, PNG, BMP, TGA, WMF, EMF, PCX. You can create XPS from those image file.
  • Here is one code template about calling this software from ASP, please have a check.

Please by following steps to call img2xps.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 ASP code to run the conversion inside a special user account,
~~~~~~~~~~~~~~~~~
<%
Set comEXEShell = Server.CreateObject("exeshell.shell")
RootPath = Server.MapPath(".") & "\"
EXEFile = RootPath & "img2xps\img2xps.exe"
InFile = RootPath & "test.tif"
OutFile = RootPath & "out.xps"
strCommandLine = EXEFile & " " & InFile & " " & OutFile
response.write strCommandLine & "<br>"
comEXEShell.RunCommandLine "UserName", "Password", strCommandLine
Set comEXEShell = Nothing
%>
~~~~~~~~~~~~~~~~~

The above example can help you create XPS from tiff file. During the using, if you have any question, please contact us as soon as possible.