DOC to Any Converter

Proper MIME media type for PDF files

What is MIME media type PDF?

The MIME PDF media type indicates that an email’s attached file falls under the application MIME media type category. The file’s subtype is PDF, which stands for Portable Document File. The PDF format allows for the exchange of documents online and via E-mail despite compatibility issues between computers. The mime application/PDF was originally registered as a media type in 1993. A number of applications use the PDF format with Adobe Acrobat being the most prominent. When an email arrives as a mime application/PDF, it means that a PDF file is attached.

It is known to all that PDF contains text, graphics, metadata, annotations, hyperlinks, and bookmarks. For opening PDF file, we must have PDF reader installed and in order to open PDF file properly, we also develop PDF to internal standard which is intended as an electronic document file format for long term preservation. Because the MIME application/PDF is widely understood and the PDF format widely used, the MIME type is used in other Internet Engineering Task Force (IETF) specifications.

What are differences between MIME types Application/PDF and application/x-pdf?

The standard MIME type is application/PDF. The assignment is defined in RFC 3778, The application/PDF Media Type, referenced from the MIME Media Types registry.MIME types are controlled by a standards body, The Internet Assigned Numbers Authority (IANA). This is the same organization that manages the root name servers and the IP address space.The use of x-pdf predates the standardization of the MIME type for PDF. MIME types in the x- namespace are considered experimental, just as those in the vnd. namespace are considered vendor-specific. x-pdf might be used for compatibility with old software.

This is a convention defined in RFC 2045 - Multipurpose Internet Mail Extensions (MIME) Part One: Format of Internet Message Bodies.

  • Private [subtype] values (starting with "X-") may be defined bilaterally between two cooperating agents without outside registration or standardization. Such values cannot be registered or standardized.
  1. New standard values should be registered with IANA as described in RFC 2048.

  • A similar restriction applies to the top-level type. From the same source,

2. If another top-level type is to be used for any reason, it must be given a name starting with "X-" to indicate its non-standard status and to avoid a potential conflict with a future official name.(Note that per RFC 2045, "[m]atching of media type and subtype is ALWAYS case-insensitive", so there's no difference between the interpretation of 'X-' and 'x-'.)

So it's fair to guess that "application/x-foo" was used before the IANA defined "application/foo". And it still might be used by folks who aren't aware of the IANA token assignment.

As Chris Hanson said MIME types are controlled by the IANA. This is detailed in RFC 2048 - Multipurpose Internet Mail Extensions (MIME) Part Four: Registration Procedures. According to RFC 3778, which is cited by the IANA as the definition for "application/PDF ",

The application/pdf media type was first registered in 1993 by Paul Lindner for use by the gopher protocol; the registration was subsequently updated in 1994 by Steve Zilles.The type "application/PDF " has been around for well over a decade. So it seems to me that wherever "application/x-PDF " has been used in new apps, the decision may not have been deliberate.

And we really would like to discuss more information about those two file formats. You can contact us as support@verydoc.com .

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

Failed to call doc2any.exe from C# or VB.NET source code

Hi. I try to call doc2any.exe from a PHP script using your exeshell class on a 64bit Windows Server 2008 R2 system. The exeshell-x64.dll was registered successfully - but I get the following error if I start the PHP script: PHP Fatal error: Uncaught exception 'com_exception' with message 'Failed to create COM object `exeshell.shell': Klasse nicht registriert.

What can I do to solve this problem?

Thanks in advance.
Regards
Customer
--------------------------------------
Hello.

Actually I'm evaluating your product and downloaded the latest version from your homepage.

Build: Nov 10 2012

The registration of the exeshell-x64.dll was successfull:

Furthermore I activated the php-extension "php_com_dotnet.dll" within the IIS-Manager.

But I still get this error.

Thanks in advance.
Customer
--------------------------------------
I suggest you may call doc2any.exe from your C# or PHP or ASP.NET or other languages directly on your Windows 2008 system, you can use CreateProcess() or Process.Start() to call doc2any.exe application.

You need also set MS Office DCOM run inside an interactive user account instead of system user account, please look at following web pages for more information,

https://www.verydoc.com/doc-to-any-faq.html
https://www.verydoc.com/blog/aspnet-account-dcom-permisson-for-ms-word.html
https://www.verydoc.com/blog/microsoft-excel-application-entry-missing-in-dcomcnfg.html
https://www.verydoc.com/blog/how-to-make-iis7-play-nice-with-office-interop.html
https://www.verydoc.com/others/configure-word-and-excel.htm
https://www.verydoc.com/others/configure%20office%20applications%20to%20run%20under%20the%20interactive%20user%20account.htm
http://www.verypdf.com/wordpress/201201/how-to-call-doc2any-exe-or-htmltools-exe-from-a-service-20896.html

You can also set more answers in our Knowledge Base,

https://www.verydoc.com/blog/category/doc-to-any-converter

If you still can not get it work, please feel free to let us know, we will assist you continue.

VeryDOC
--------------------------------------
Hello.

Thank you for the links to the different resources - but I get an error just during the calling/initialization of the EXEShell COM Library - far before doc2any/Excel/Word is started ....

My actual problem is, that I can't use your EXEShell class as mentioned on your page "CAll DOC to Any Converter Command Line from ..."

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

Special interest for me: calling it from a Windows 2008 Server with IIS 7 and PHP:

..."Example #6 (PHP example),

Customer
--------------------------------------
Windows 2008 Server is the 64bit system, so you need use 64bit EXEShell COM Library, you need use exeshell-x64.dll, but not the exeshell.dll library.

VeryDOC
--------------------------------------
If you check the whole support request/thread you will find my second email and the attachments ...

Of course I'm using exeshell-x64.dll ...

Customer
--------------------------------------
Sorry for the confusion, it seems this problem is caused by permission settings on your server.

The first, please to check, can you run doc2any.exe in CMD window to convert your DOC file to PDF file properly? e.g.,

doc2any.exe D:\test.doc D:\out.pdf

Can you get it work fine in CMD window by manual?

If you can run doc2any.exe in CMD window to convert DOC file to PDF file correctly, but failed when you call it from C#, it is indicate this problem caused by permission of your IIS Server, you need give enough permission to IIS Server, e.g.,

1. Allow IIS Server to launch EXE application,
2. Allow "Everyone" user account to "Full Control" the folder where doc2any.exe exist,
3. Arrange MS Word DCOM Run inside "Administrator" user account instead of default system user account,

IIS_Permission_1

IIS_Permission_2

Once above three permission issues are resolved, I think you should no problem to call doc2any.exe or exeshell-x64.dll from C# to convert DOC files to PDF files.

If you still can not get it work on your server, you may create a remote desktop account on your test machine, send to us the user name and password, we will arrange our engineer to login your test machine and research this problem for you asap.

We suggest you may share your PC or Server by TeamViewer, TeamViewer can be downloaded from following website,

http://www.teamviewer.com

after you installed TeamViewer, please send to us your TeamViewer’s ID and Password, please also arrange your test machine running at 24 hours, after we logged into your test machine and solved the problem, we will send an email to you, then you can close the TeamViewer application.

By the way, we will release a VeryPDF Cloud API Service within a few weeks, with VeryPDF Cloud API Service, you can convert office documents to PDF files easily over the internet, you need install nothing to your Server System, you can just send a HTTP post to convert a DOC, DOCX, PPT, PPTX, XLS, XLSX, RTF file to PDF file, for example,

http://online.verypdf.com/api/?apikey=XXXXXXX&app=doc2any
&infile=https://dl.dropboxusercontent.com/u/5570462/SPAIN.docx

after you execute above URL, you will get a “http://online.verypdf.com/u/public/api/20130711-020606-rta622ohvn.pdf” file, you can download it to your local disk easily.

You can pass “infile” parameter to “  http://online.verypdf.com/api/  ”, our Cloud API Service will convert it to PDF file automatically.

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

The GUI version of DOC to Any Converter-Convert Office to PDF, image in batch

VeryDOC DOC to Any Converter is a professional tool of converting DOC, DOCX, DOCM, RTF, TXT, PPT, PPTX, XLS, XLSX, OpenOffice ODT, HTML, MHTML files to PDF, Postscript, PS, EPS, SVG, SWF, XPS, PCL, HPGL, HTML, MHTML, RTF, Text, XML, JPG, TIFF, EMF, WMF, BMP, GIF, PNG, TGA, PCX, etc.  But as this is command line version software, for those who do not have too much knowledge on command line, this software will be useless for them. 

Actually there is GUI version of DOC to Any Converter on our website, which also can be used to convert Office file to PDF and image in batch. Please check more information of this software on homepage. In the following part, I will show you how to use the GUI version.

Step 1. Download Office to PDF Converter

  • Office to PDF Converter is the GUI version of DOC to Any Converter. As it is GUI version, when downloading finishes, there will be an exe file. You need to install this software by double clicking the exe file and following installation message.
  • When installation finishes, there will be an icon on the desktop by which you can launch this software quickly. The following snapshot is from the software interface, please have a check.

software interface of DOC to Any Converter

Step 2. Add Files—> do setting—> run conversion.

  • The GUI version of this software is extremely easy to use, simply add files, do setting and then run the conversion. Totally three steps, the conversion could be done.
  • When adding files, you can drag all the Office files needed conversion to software interface, or you can click button Add File to add files to software interface. When adding finishes, all the files will be shown on the file list with detail information.
  • Click Setting button at the bottom then you will enter the setting menu option which looks like the following snapshot.

menu options

  • There are five tabs in the menu options. In the Properties tab, you can add basic information to output PDF, in the Security tab, you can add password to protect output PDF from two levels by two kinds of password. In the Viewer tab, you can set PDF viewer options. In the page number tab, you can add page number to the output PDF file.
  • In the Watermark tab, we can add various watermark to PDF file. And you can control watermark style, type, color, size and applied page range.
  • When you finish setting part, please click button OK to back to the main interface.
  • On the software interface, please click button Convert to PDF and Save as, then you will be reminded to choose output folder. Meanwhile the conversion will be launched at once.

The GUI version of Doc to Any Convert not cover all the functions of command line version, but most. For those who need to run the conversion through GUI version, this one is a solution. 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

Run doc2any on Windows 2003 or Windows 2008 system

hi, As per your support suggestion I am using this SDK in my asp.net application.But It's getting problem in IIS. So please suggest to us for how to resolve this issue. After resolved this issue I will be go for purchase option. ). DOC to Any Converter SDK DOC to Any Converter (DOC2Any) is need following software environments,

1. Windows 2003 or Windows 2008 or Windows 2010 server,

2. You need install MS Office or OpenOffice to convert office documents to PDF files,

3. You needn’t install PDFcamp Printer, doc2any is not require PDFcamp Printer,

4. You needn’t install Adobe Reader or Adobe Acrobat, doc2any is not require Adobe Reader and Adobe Acrobat applications, MS Office or OpenOffice is the only requirement to run doc2any to convert office documents to PDF files.

Customer

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

We suggest you may download "DOC to Any Converter Command Line" product from following URL first,

https://www.verydoc.com/doc2any_cmd.zip

you can try to run following command line to convert your DOC file to PDF file,

doc2any.exe D:\test.doc D:\out.pdf

Can you convert your DOC file to PDF file properly by above command line? if yes, you can try to convert call doc2any.exe from your C# code to convert DOC files to PDF files easily.

If you can run doc2any.exe to convert DOC files to PDF files correctly in command line window by manual, but failed to call it from C# code, you need configure Microsoft Word and Excel to run under Interactive User's Account, please look at following web pages for more information,

https://www.verydoc.com/doc-to-any-faq.html
https://www.verydoc.com/others/configure-word-and-excel.htm
https://www.verydoc.com/others/configure%20office%20applications%20to%20run%20under%20the%20interactive%20user%20account.htm
http://www.verypdf.com/wordpress/201106/doc2any-dcom-permissions-232.html
https://www.verydoc.com/blog/run-doc2any-exe-from-windows-service-and-without-ms-office-installed.html

If you still can not get it work on your server, you may create a remote desktop account on your test machine, send to us the user name and password, we will arrange our engineer to login your test machine and research this problem for you asap.

We suggest you may share your PC or Server by TeamViewer, TeamViewer can be downloaded from following website,

http://www.teamviewer.com

after you installed TeamViewer, please send to us your TeamViewer's ID and Password, please also arrange your test machine running at 24 hours, after we logged into your test machine and solved the problem, we will send an email to you, then you can close the TeamViewer application.

By the way, we will release a VeryPDF Cloud API Service within a few weeks, with VeryPDF Cloud API Service, you can convert office documents to PDF files easily over the internet, you need install nothing to your Server System, you can just send a HTTP post to convert a DOC, DOCX, PPT, PPTX, XLS, XLSX, RTF file to PDF file, for example,

http://online.verypdf.com/api/?apikey=XXXXXXX&app=doc2any
&infile=https://dl.dropboxusercontent.com/u/5570462/SPAIN.docx

after you execute above URL, you will get a "http://online.verypdf.com/u/public/api/20130711-020606-rta622ohvn.pdf" file, you can download it to your local disk easily.

You can pass "infile" parameter to "http://online.verypdf.com/api/", our Cloud API Service will convert it to PDF file automatically.

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)
PostScript to Image Converter

How to convert PS to vector image by command line?

When you need to convert Postscript to vector image TIFF, JPG, GIF, PNG, BMP, EMF, WMF, PCX, TGA and so on by command line, the following article will be helpful for you. VeryDOC Postscript to Image Converter has such function. And by this software, you can also render text, line, arc, ellipse, Bezier, color, image, form and any other elements from PS and EPS files to image formats quickly.  Please check more information of this software on homepage, in the following part, I will show you how to use this software.

Step 1. Download Postscript to Image Converter

  • As this is command line version software, when downloading finishes, there will be a zip file. Please extract it to some folder then you can check its elements and call it from MS Dos Windows.
  • There are only developer version and server version available. If you are laptop or computer user, please choose the server version as it can also work under computer system.

Step 2. Convert Postscript to vector by command line.

  • When you use this software, please refer to the usage and examples.
  • Here is the usage for your reference: ps2img [options] <-i PS File> [-o Output]
  • When converting Postscript to vector image, please refer to the following command line templates.
    ps2img -i C:\input.ps -o C:\output.tif
    By this command line, we can convert Postscript to vector tiff file.
    ps2img -i C:\input.eps -o C:\output.gif
    This software also can help you convert EPS file to vector image file.
    ps2img -m -i C:\input.ps -o C:\output.bmp
    By this command line, we can convert Postscript to vector BMP file.
    ps2img -c lzw -i C:\input.ps -o C:\output.tif
    By this command line, we convert Postscript to vector tiff and compress tiff file using LZW arithmetic.
    ps2img -q 80 -i C:\input.ps -o C:\output.jpg
    This command line template can help you convert Postscript to vector Jpg and set quality in created image files.
    ps2img -b 4 -i C:\input.ps -o C:\output.emf
    ps2img -i C:\input.ps -o C:\output.tif -b 1 -c ClassF -r 204x98 –m
    By this command line, we can convert Postscript to vector tiff file and set bit count as 1, compress TIFF into Fax compatible ClassF 204x98 format.
    ps2img -f 1 -l 9 C:\input.ps -o C:\output.wmf
    When converting Postscript to vector image, this software also allows you to choose conversion page range.
    ps2img -i C:\*.ps -o C:\*.pcx
    By this command line, we can convert Postscript to vector using wild character in batch.

Now let us check related parameters:

-r [resolution]      : Set resolution in generated image files
    -r 300           : Set horizontal and vertical resolution to 300 DPI
    -r 200x300       : Set horizontal and vertical resolution to 200x300 DPI
    -r 204x98        : Set horizontal and vertical resolution to 204x98 DPI
-f [first Page]      : First page to convert
-l [last Page]       : Last page to convert
-c [compress]        : Set compression method in generated image
-q [quality]         : Set quality in created image files(for jpeg image only)
-t                   : Enable transparent background
-b [bit count]       : Set bit count in generated image files

By this software, you can convert Postscript to some of vector image files. 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)