DOC to Any Converter

VeryDOC has Released DOC to Any Converter Command Line v3.0 today

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

VeryDOC has Released DOC to Any Converter Command Line v3.0 today, DOC to Any Converter Command Line v3.0 has following new features,

1. Add -useopenoffice parameter to use OpenOffice only, it will ignore MS Office even if MS Office is installed in your system,

-useopenoffice           : Only use OpenOfice to convert office documents to PDF files

Command Line Examples:

Convert documents to PDF and other formats using OpenOffice ONLY (ignore MS Office):
   doc2any.exe -useopenoffice "C:\test.doc" "C:\out.pdf"
   doc2any.exe -useopenoffice "C:\test.docx" "C:\out.pdf"
   doc2any.exe -useopenoffice "C:\test.xls" "C:\out.pdf"
   doc2any.exe -useopenoffice "C:\test.xlsx" "C:\out.pdf"
   doc2any.exe -useopenoffice "C:\test.ppt" "C:\out.pdf"
   doc2any.exe -useopenoffice "C:\test.pptx" "C:\out.pdf"
   doc2any.exe -useopenoffice "C:\test.doc" "C:\out.html"
   doc2any.exe -useopenoffice "C:\test.docx" "C:\out.html"
   doc2any.exe -useopenoffice "C:\test.xls" "C:\out.html"
   doc2any.exe -useopenoffice "C:\test.xlsx" "C:\out.html"
   doc2any.exe -useopenoffice "C:\test.ppt" "C:\out.html"
   doc2any.exe -useopenoffice "C:\test.pptx" "C:\out.html"
   doc2any.exe -useopenoffice "C:\test.docx" "C:\out.doc"
   doc2any.exe -useopenoffice "C:\test.odt" "C:\out.pdf"
   doc2any.exe -useopenoffice "C:\test.odt" "C:\out.html"

太阳 Note:

  1. You need install OpenOffice in order to use -useopenoffice parameter,
  2. You need install Java in order to use -useopenoffice parameter,
  3. With -useopenoffice parameter, you will able to obtain following powerful features,

doc2any automates conversions that are actually performed by OpenOffice.org. This means that if you can convert from format ABC to format XYZ from OpenOffice.org (by opening ABC and saving/exporting to XYZ) then you can do the same with doc2any. You just have to discover the magic string used by OpenOffice.org as the export filter name. A useful list can be found in the OpenOffice.org Wiki.

That said, doc2any maintains a registry of the most common formats, their associated file extensions, mime types, and OpenOffice.org filter names to simplify your life. These predefined conversions are shown in the following table:

From (any of) To (any of)
Text Formats
OpenDocument Text (*.odt)
OpenOffice.org 1.0 Text (*.sxw)
Rich Text Format (*.rtf)
Microsoft Word (*.doc)
WordPerfect (*.wpd)
Plain Text (*.txt)
HTML1 (*.html)
Portable Document Format (*.pdf)
OpenDocument Text (*.odt)
OpenOffice.org 1.0 Text (*.sxw)
Rich Text Format (*.rtf)
Microsoft Word (*.doc)
Plain Text (*.txt)
HTML2 (*.html)
MediaWiki wikitext (*.wiki)
Spreadsheet Formats
OpenDocument Spreadsheet (*.ods)
OpenOffice.org 1.0 Spreadsheet (*.sxc)
Microsoft Excel (*.xls)
Comma-Separated Values (*.csv)
Tab-Separated Values (*.tsv)
Portable Document Format (*.pdf)
OpenDocument Spreadsheet (*.ods)
OpenOffice.org 1.0 Spreadsheet (*.sxc)
Microsoft Excel (*.xls)
Comma-Separated Values (*.csv)
Tab-Separated Values (*.tsv)
HTML2 (*.html)
Presentation Formats
OpenDocument Presentation (*.odp)
OpenOffice.org 1.0 Presentation (*.sxi)
Microsoft PowerPoint (*.ppt)
Portable Document Format (*.pdf)
Macromedia Flash (*.swf)
OpenDocument Presentation (*.odp)
OpenOffice.org 1.0 Presentation (*.sxi)
Microsoft PowerPoint (*.ppt)
HTML2 (*.html)
Drawing Formats
OpenDocument Drawing (*.odg) Scalable Vector Graphics (*.svg)
Macromedia Flash (*.swf)

1 HTML can be used as an input format but you should not expect OpenOffice.org to properly render complex web pages as Firefox or IE7 do. Works reasonably well for simple and "printer friendly" web pages only.

2
HTML can be used as an output format but while all other formats always generate a single output file, HTML can produce multiple files. In addition to the HTML file in fact, any images contained in the input document will also be saved in the same directory. This requires extra care in your code, especially in a web environment.

Overview of -useopenoffice parameter:

-useopenoffice parameter in doc2any converts documents between different office formats. It leverages OpenOffice.org, which provides arguably the best import/export filters for OpenDocument and Microsoft Office formats available today.

doc2any automates all conversions supported by OpenOffice.org, including

  • Microsoft Office to OpenDocument, and viceversa
    • Word to OpenDocument Text (odt); OpenDocument Text (odt) to Word
    • Excel to OpenDocument Spreadsheet (ods); OpenDocument Spreadsheet (ods) to Excel
    • PowerPoint to OpenDocument Presentation (odp); OpenDocument Presentation (odp) to PowerPoint
  • Any format to PDF
    • OpenDocument (Text, Spreadsheet, Presentation) to PDF
    • Word to PDF; Excel to PDF; PowerPoint to PDF
    • RTF to PDF; WordPerfect to PDF; ...
  • And more
    • OpenDocument Presentation (odp) to Flash; PowerPoint to Flash
    • RTF to OpenDocument; WordPerfect to OpenDocument
    • Any format to HTML (with limitations)
    • Support for OpenOffice.org 1.0 and old StarOffice formats
    • ...

doc2any can be used in many different ways

  • As a command line tool, possibly invoked from your own scripts
  • As a simple web application: upload your input document, select the desired format and download the converted version
  • As a web service, invoked from your own application written in your favorite language (.NET, PHP, Python, Ruby, ...)

2. Improve the function for -watermarkfile parameter, this parameter does allow you to add more watermarks to PDF file by a .ini file,

  -watermarkfile <string>  : a .ini file which contain information for multiple watermarks

e.g.,

doc2any.exe -watermarkfile "C:\test\watermark.ini" "C:\test\example.doc" "C:\test\_watermark.pdf"

The following is an example of watermark.ini file,

[watermark1]
; 0 : normal text watermark, rotate 45 angle on the page center
; 1 : text watermark on header
; 2 : text watermark on footer
; 3: image watermark

type=3
text=image-stamp1.jpg
x=200
y=200
width=80
height=80
opacity=50
; The angle option is not supported for image stamping in the current version,
; we will support it in the next minor update version

angle=45
; First page and last page, if you set them to zero, stamp will apply for all pages
firstpage=0
lastpage=0

[watermark2]
type=3
text=image-stamp2.jpg
x=100
y=100
width=80
height=80
opacity=50
angle=45
firstpage=0
lastpage=0

[watermark3]
type=1
text=Demo watermark 3
fontname=Times New Roman
x=200
y=200
height=20
width=0
fontbold=0
fontitalic=0
fontunderline=0
fontstrikeout=0
opacity=90
angle=0
color=FF0000
firstpage=1
lastpage=1

[watermark4]
type=2
text=Demo watermark 4
fontname=Times New Roman
x=200
y=0
height=20
width=0
fontbold=0
fontitalic=0
fontunderline=0
fontstrikeout=0
opacity=100
angle=0
color=FF0000
firstpage=1
lastpage=1

[watermark5]
type=0
text=Demo watermark 5
fontname=Times New Roman
x=50
y=50
height=100
width=0
fontbold=0
fontitalic=0
fontunderline=0
fontstrikeout=0
opacity=50
angle=30
color=FF0000
firstpage=1
lastpage=2

3. VeryDOC will include following features in the next version of doc2any software

  • Convert DOC, DOCX, RTF to PDF, HTML files without MS Office and OpenOffice installed. (This function is already be done in the current version of doc2any software)
  • Convert XLS, XLSX to PDF, HTML files without MS Office and OpenOffice installed.
  • Convert PPT, PPTX to PDF, HTML files without MS Office and OpenOffice installed.
DWG to Image Converter

Is there an API or library for converting DWG to any standard image format?

Question: I am building a back-end management application for an architect company, and they work with DWG files. I am looking for a library that can convert DWG into any image format, preferably in PHP, but I am open to finding a work around in another language and connecting to what I've built so far. Is there any solution on VeryDOC?

Answer: Now on VeryDOC there is command line software which can help you convert DWG to image in any standard image format without any third party installed. However, now there is no API or library which can help you do that. If you need, please tell us then we can customize one API to library quite fast. By the command line version software, you can also run the conversion from the PHP code. In the following part, I will take the command line version for example to show you how it works. If you feel it is good then we will make the API or library for you.

  The software I refer to is named as VeryDOC DWG to Image Converter by which you can convert DWG and DXF files to Raster BMP, JPG, PNG, TIFF, GIF formats. This converter can help you create output file for each view, one output file per view. It supports all version DWG files and allows you to run the conversion in batch.

Step 1. Free download DWG to Image Converter Command Line

  • When downloading finishes, there will be a zip file. Please extract it to some folder then you can call it from MS Dos Windows.
  • When you run the conversion, please refer to the usage and example.
  • Please note this is Window version application, for now it only can work under Window system.

Step 2. Convert DWG to image.

  • Usage: dwg2img [options] <dwg-file> [<out-file>]
  • For converting DWG to image, please refer to the following command line template and parameters:
  • fontdir <string>  : a folder contain .ctb, .shx, etc. files
      -dpi <int>         : set DPI to output file
      -width <int>       : set width, unit is point
      -height <int>      : set height, unit is point
      -linewidth <string>: set line width, unit in mm
      -colormode <int>   : set color mode, 0 is color and 1 is black and white
      -bgcolor <int>     : set background color, same as AutoCAD color index
      -zoomtype <int>    : set zoom type, 1 is 'Zoom All' and 2 is 'Zoom Extend'
      -$ <string>        : input registration key
    Examples:
    dwg2img.exe C:\test.dwg C:\out.bmp
    dwg2img.exe C:\test.dwg C:\out.jpg
    dwg2img.exe C:\test.dwg C:\out.gif
    dwg2img.exe C:\test.dwg C:\out.png
    dwg2img.exe C:\test.dwg C:\out.tif
    dwg2img.exe C:\*.dwg C:\*.png

  • When you call it from PHP code, please refer to the following code template:
  • <?php
        $exeshell =new COM("exeshell.shell") or die("Can't start exeshell");
        $exeshell->RunCommandLine("UserName", "Password", ' "C:\dwg2img.exe" "C:\test.dwg" "C:\out.tif" ');
        $exeshell = null;
    ?>

During the using, if you have new idea or problem, please contact us as soon as possible.

PCL, PS, PDF Page Counter

How to embed PCL file into website by iframe?

    In this article, I will show you one method of embedding PCL file to website, blog or other places through iframe code. The software I use is VeryDOC Tiff Toolkit by which you can also view PCL file without PCL reader installed. It can help you view PCL file within browser.

This PCL viewer is cloud based, so no matter what kind of your computer system is, you can use it without any problem. And in the future, we will publish the COM version, by which enable developers to access the toolkit via any programming or scripting languages, such as Visual Basic, C/C++, Delphi, ASP, PHP, C#, .NET, etc. Using the COM object (or DLL Library, or Command Line), file printing can be done consecutively or simultaneously. Please check more information of this software on homepage. In the following part, I will show you how to embed PCL file into website then you can view PCL file without PCL reader installed.

Step 1. Please go to website of PCL Toolkit

  • When you go to its website then you will see website like the following snapshot. Here you can upload PCL file to website.

website of PCL Toolkit

  • By this online converter, you can either upload local PCL file and online PCL file. Click button browse to add local PCL file to website. Enter the URL of online PCL file then you can embed online PCL file.
  • If you have API code, please input. Or else the embedded code only available in 7 days.
  • Then click button view online then you will enter another tab where you can get the embedded code.

Step 2. Embed PCL

  • After clicking View Online then you will enter another tab where you can get the embedded code by which you can embed PCL file to any website.
  • The following information is from the newly tab, please have a check:

    [ViewAsPDFPaper] http://online.verypdf.com/app/reader/?url=http://online.verypdf.com/u/41/api/20131113-022800-2267533300.pdf
    [iframe Embed Code] <iframe src="http://online.verypdf.com/app/reader/?url=http://online.verypdf.com/u/41/api/20131113-022800-2267533300.pdf" width="100%" height="600px"></iframe>

  • By the view URL, you can check the uploaded PCL at any place. Actually this API has converted PCL to PDF and then produce the PDF URL.
  • By the iframe embedded code, you can embed PCL file to any website. Now I will embed it to this blog, you can have a check.

    By this online API, we can embed PCL file to any website. During the using, if you have any question, please contact us as soon as possible.

PCL to PDF and Image Converter

Searching for the best PCL profile for cross-platform development

Question: I am working on extending number of supported platforms for my app, it used to support .NET4/Windows Store/Windows Phone, but I hope to also cover Mono for Android and iOS. I've put all business logic, models and view models to portable class libraries (PCL) but it's a big dilemma what subset of platforms I should target. Each combination causes something to fail. I am try to find a solution which can help me view PCL under .NET4/Windows Store/Windows Phone without system limitation. Is there such application on VeryDOC?

Answer: When you need to view PCL without computer system and device system limitation, maybe you can have a free trial of VeryDOC PCL Toolkit, by which you can preview PCL and Print PCL to Non-PCL Printers, Integrate into your Windows applications that use PCL form overlays for previewing and printing to non-PCL printers like: HP DeskJets®, Canon BubbleJets®, GDI, PostScript®, Acrobat® PDF file format and other printers. The most important is that there is no system limitation of this software, it is cloud based. The preview process undergoes within browser, so it can overcome platform problem. Please check more information of this software on homepage, in the following part, I will show you a demo of how to make it work. If you need to customize one like this, please contact us then we will give the source developing code to you.

Step 1. Upload PCL file.

  • The following website is from the software interface, please have a check. This interface states in the website of the software.

upload PCL file

  • All the usage and steps have been marked on the website. All you need to do is that click option Choose File to upload the local PCL file to online website.
  • Please choose the view formats , flash paper viewer or HTML 5 paper viewer. If you need to view it within Android based device, please choose the HTML 5 Paper Viewer.
  • The click button View Online you can view PCL directly now.

Step 2. Check view PCL effect.

  • After clicking button View Online then you will enter another tab which looks like the following snapshot.

view PCL free online

  • Here you can view PCL file directly within the browser. When view it, you can download it, view it in screen, adjust the zoom rate to adopt the different devices.
  • When view it, you can do copy and paste of the content in viewer.
  • Meanwhile this software can also help you convert PCL to PDF file with the embedded code by which you can embed the PCL file to any website, blog or others place.
  • You can try to view it in any browser or small device there is no problem.

By this mode we can overcome platform problem. During the using, if you have any question, please contact us as soon as possible.

HTML Print

How to design an application for printing HTML to PDF directly?

Question:Website printing HTML Code Help? I am designing a website in Dreamweaver CS5, and I am novice in website development. I am needing a website that, when a button is clicked, it will print a different file. For example, I have a calendar in word that I can make a PDF, but I want a button on the site that will print the PDF without having to open it. Is this possible and if so, what is the code? Is there VeryDOC such application which I can develop software based on it?

Answer: When you need to develop an application which can help you print HTML to PDF directly, maybe you can have a free trial of this software VeryDOC HTMLPrint, by which you can also batch print html, mhtml files or Web URLs to Windows Printer, it is print the whole web page's content to Windows Printer without user interaction, you can use it to full control printer's capability by members of DEVMODE structure. If you need to customize application, please contact us we can make for you in a short time. Or you can develop one by yourself based on functions of this software. Please check more information of this software on homepage, in the following part, I will show you how to use this software.

Step 1. Free download HTMLPrint Command Line

  • This software is command line version, when downloading finishes, there will be a zip file. You need to extract it to some folder then you can use it normally.
  • By the command line version, you can also use it together with Visual Basic, C/C++, Delphi, ASP, PHP, C#, .NET, etc.

Step 2. Print HTML to PDF.

  • When you use this software, please refer to its usage and command line templates:
    Here is the usage for your reference:Visual Basic, C/C++, Delphi, ASP, PHP, C#, .NET, etc.
  • As you need to print HTML through website, maybe you can install an virtual printer. When click the button on website, then the virtual printer will be launched. By this method, you can print HTML to PDF through website.
  • The following parameters you may use during the conversion.
  • -listprinter    : list printers in system
    -listbins       : list bins/trays of a printer
    -chgbin <int>   : change bin/tray for printer
    -restoreprinter : restore original settings to printer after printing
    -checkjobstatus : check status for print jobs
    -checkjobtime <int> : delay some time before check status for print jobs,
        in seconds
    -nodelfailjobs      : don't delete failed print jobs
    -printbgcolor <int> : enable or disable print background color and images
    -marginleft <int>   : set left margin when print HTML file, unit is point
    -margintop <int>    : set top margin when print HTML file, unit is point
    -marginright <int>  : set right margin when print HTML file, unit is point
    -marginbottom <int> : set bottom margin when print HTML file, unit is point

  • If you feel this one is not good for you, maybe you can have a free trial of DocConverter COM, by which you can also print HTML to PDF.

I guess by those software you can develop an application for printing HTML to PDF easily. During the using, if you  have any question, please contact us as soon as possible.