EMF to PDF SDK or Command Line

VeryPDF has a EMF to PDF Converter Command Line software, this software can be downloaded from this web page,

http://www.verypdf.com/app/metafile-to-pdf-converter/index.html

The content has various shapes, sizes and formats. A particularly important format is EMF (Enhanced Metafile Format). EMF is designed as a native graphics format for Windows and can contain vector and bitmap components. The EMF format can be used to embed rich graphical content in documents or reports, or present content for viewing. Converting EMF to PDF may be important because it provides a simple and consistent viewing experience across the entire platform and system. If you need to programmatically convert EMF to PDF or even PDF to EMF, VeryPDF EMF to PDF Converter Command Line is good choice for you.

image

EMF to PDF Converter Command Line allows developers to build EMF-to-PDF conversion functionality into their own applications to facilitate reliable viewing. The Command Line can also be used to create PDF from a variety of other image formats including WMF, JPG, GIF, BMP, TIFF and PNG.

EMF to PDF Converter Command Line Feature Overview:
* Convert EMF (or WMF) to PDF
* Convert JPG, GIF, BMP and PNG to PDF
* Convert TIFF to PDF

Some examples of image/EMF/WMF to PDF Conversion using EMF to PDF Converter Command Line:
* Convert an image to PDF programmatically
* Add images to PDF programmatically
* Control the compression of JPG images during conversion to PDF

C:\>emf2pdf.exe
VeryPDF EMF/WMF/RTF to PDF Converter Command Line v3.5
Web: http://www.verypdf.com
Web: http://www.verydoc.com
Support: http://support.verypdf.com
Email: support@verypdf.com
Release Date: May  5 2020
-------------------------------------------------------
Description:
Convert *.EMF, *.WMF, *.RTF files to PDF files
Usage: emf2pdf [options] <emf-file> [<pdf-file>]
  -width <int>            : Set page width to PDF file
  -height <int>           : Set page height to PDF file
  -multipagetif           : Create multipage TIFF format
  -xres <int>             : Set X resolution to image file
  -yres <int>             : Set Y resolution to image file
  -bitcount <int>         : Set color depth for image conversion
  -rotate <int>           : Rotate pages, 90, 180, 270
  -margin <string>        : Set page margin to PDF file
        -margin 10          : Set margin to 10pt to left
        -margin 10x10       : Set margin to 10pt to left,top
        -margin 10x10x10    : Set margin to 10pt to left,top,right
        -margin 10x10x10x10 : Set margin to 10pt to left,top,right,bottom
  -view                   : View PDF file after creation
  -append <int>           :
        -append 0: Overwrite if PDF file exists
        -append 1: Insert before first page if PDF file exists
        -append 2: Append to last page if PDF file exists
        -append 3: Rename filename if PDF file exists
  -producer <string>      : Set 'producer' to PDF file
  -creator <string>       : Set 'creator' to PDF file
  -subject <string>       : Set 'subject' to PDF file
  -title <string>         : Set 'title' to PDF file
  -author <string>        : Set 'author' to PDF file
  -keywords <string>      : Set 'keywords' to PDF file
  -openpwd <string>       : Set 'open password' to PDF file
  -ownerpwd <string>      : Set 'owner password' to PDF file
  -keylen <int>           : Key length (40 or 128 bit)
        -keylen 0:  40 bit RC4 encryption (Acrobat 3 or higher)
        -keylen 1: 128 bit RC4 encryption (Acrobat 5 or higher)
        -keylen 2: 128 bit RC4 encryption (Acrobat 6 or higher)
  -encryption <int>       : Restrictions
        -encryption    0: Encrypt the file only
        -encryption 3900: Deny anything
        -encryption    4: Deny printing
        -encryption    8: Deny modification of contents
        -encryption   16: Deny copying of contents
        -encryption   32: No commenting
        ===128 bit encryption only -> ignored if 40 bit encryption is used
        -encryption  256: Deny FillInFormFields
        -encryption  512: Deny ExtractObj
        -encryption 1024: Deny Assemble
        -encryption 2048: Disable high res. printing
        -encryption 4096: Do not encrypt metadata
  -unicode                : Enable Unicode conversion
  -nofontembed            : Do not embed fonts in WMF/EMF to PDF conversion
  -reduceimgdpi <int>     : Specify whether images should be downscaled if the original resolution of the image is higher
  -norasteremf            : Disable raster EMF file during EMF to PDF conversion
  -rasteremf              : Raster EMF file before EMF to PDF conversion
  -imgfilter <int>        : Set compression filter which is used to compress images
   -1 : Set compression filter automatically, default
    0 : Flate compression
    1 : JPEG compression
    2 : B&W CCITT Fax G3 compression
    3 : B&W CCITT Fax G4 compression
    7 : JPEG 2000 compression
  -quality <int>          : Set quality which is used to compress images
  -rclbounds              : Use rclBounds instead of rclFrame
  -rclBoundsNoRes         : Use rclBounds without resolution instead of rclFrame
  -repairwmf              : Repair some special WMF files
  -emfgrayscale           : Create Grayscale EMF file
  -emfvector              : Create Vector EMF file
  -bookmark <int>         : Create bookmark to PDF file
        -bookmark 1: Use short filename as bookmarks
        -bookmark 2: Use full filename as bookmarks
        -bookmark 3: Use short filename without suffix as bookmarks
  -mergepdf <string>      : Merge two PDF files into one PDF file
        -mergepdf "file1|file2|file3|...": Merge several PDF files into one
        -mergepdf "C:\filelist.txt": Merge PDF files from a .txt file
        -mergepdf "C:\test.pdf*100-200*250-300": Extract page ranges from PDF file
        -mergepdf "C:\*.pdf": Merge PDF files into one PDF file
  -burstpdf <string>      : Burst PDF file into single page PDF files
  -pdfx                   : Create PDF/X compliance PDF file
  -pdfa                   : Create PDF/A compliance PDF file
  -psmode <int>           : Create vector Postscript file
    -psmode 0: create Postscript via printer driver
    -psmode 1: create Postscript via local interpreter 1 (slower)
    -psmode 2: create Postscript via local interpreter 2 (faster)
    default is "-psmode 2"
  -transparent            : Create transparent SWF file
  -svgnoclip              : Remove clipping during SVG output
  -svgscale <fp>          : Scale the elements in SVG file, default is 1.0
  -log <string>           : Output log into a file
  -useprinter             : Convert EMF file to PDF file by Windows Printer
  -eps                    : Generate Encapsulated PostScript (EPS)
  -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

Examples:
emf2pdf.exe C:\in.emf C:\out.pdf
emf2pdf.exe -nofontembed D:\in.emf D:\out.pdf
emf2pdf.exe -unicode D:\in.emf D:\out.pdf
emf2pdf.exe -norasteremf D:\in.emf D:\out.pdf
emf2pdf.exe -useprinter D:\in.emf D:\out.pdf
emf2pdf.exe -pdfa C:\in.emf C:\out.pdf
emf2pdf.exe -pdfx C:\in.emf C:\out.pdf
emf2pdf.exe C:\*.emf C:\*.pdf
emf2pdf.exe -margin 100x100x100x100 C:\in.rtf C:\out.pdf
emf2pdf.exe -append 2 -width 612 -height 792 C:\*.emf C:\out.pdf
emf2pdf.exe -append 2 C:\*.emf C:\out.pdf
emf2pdf.exe C:\filelist.txt C:\out.pdf
emf2pdf.exe -width 612 -height 792 C:\in.emf C:\out.pdf
emf2pdf.exe -append 1 C:\in.emf C:\out.pdf
emf2pdf.exe -append 2 C:\in.emf C:\out.pdf
emf2pdf.exe -subject "subject" C:\in.emf C:\out.pdf
emf2pdf.exe -ownerpwd 123 -keylen 2 -encryption 3900 C:\in.emf C:\out.pdf
emf2pdf.exe -bookmark 3 C:\in.emf C:\out.pdf
emf2pdf.exe -mergepdf "C:\1.pdf|C:\2.pdf|C:\3.pdf" C:\out.pdf
emf2pdf.exe -uniqueformname -mergepdf "C:\1.pdf|C:\2.pdf|C:\3.pdf" C:\out.pdf
emf2pdf.exe -mergepdf "C:\*.pdf" C:\out.pdf
emf2pdf.exe -mergepdf "C:\filelist.txt" C:\out.pdf
emf2pdf.exe -mergepdf "C:\test-extraction.pdf*10-15 C:\out10-15.pdf
emf2pdf.exe -mergepdf "C:\test-extraction.pdf*500-501 C:\out500-501.pdf
emf2pdf.exe D:\in.emf D:\out.pdf
emf2pdf.exe -repairwmf D:\in.wmf D:\out.pdf
emf2pdf.exe -repairwmf D:\in.emf D:\out.emf
emf2pdf.exe -emfvector D:\in.emf D:\out.emf
emf2pdf.exe -emfgrayscale D:\in.emf D:\out.emf

emf2pdf.exe "D:\example.emf" "D:\example-emf.pdf"
emf2pdf.exe -append 2 -width 612 -height 792 "D:\example.emf" "D:\example-emf.pdf"
emf2pdf.exe -ownerpwd owner -keylen 2 -encryption 3900 "D:\example.emf" "D:\example-emf-encrypted.pdf"
emf2pdf.exe -bookmark 3 "D:\example.emf" "D:\example-emf-bookmark.pdf"
emf2pdf.exe -mergepdf "D:\example-emf.pdf|D:\example-emf-encrypted.pdf" "D:\example-emf-merged.pdf"
emf2pdf.exe -pdfa "D:\example.emf" "D:\example-emf-pdfa.pdf"
emf2pdf.exe -pdfx "D:\example.emf" "D:\example-emf-pdfx.pdf"

img2pdf.exe -r -1 -o "D:\example001.pdf" "D:\example.tif"
img2pdf.exe -r -1 -b -1 -o "D:\example002.pdf" "D:\example.tif"
img2pdf.exe -r -1 -b -1 -u "Test Producer" -d "Test Creator" -t "Test Title" -a "Test Author" -o "D:\example003.pdf" "D:\example.tif"
img2pdf.exe -r -1 -b -1 -p 1 -o "D:\example004.pdf" "D:\example.tif"
img2pdf.exe -r -1 -c -o "D:\example005.pdf" "D:\example.tif"

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 Metafile to PDF | Tagged , , , , | Leave a comment

File not Found PDF2Txt.dll problem with PDF to Text Converter SDK product

When I attempt to run the sample program it give an error when it get to program line,

PDF2TXTSetLicenseCode "XXXXXXXXX"

The error is "File not Found PDF2Txt.dll"

The DLL is located in same directory as the sample program.

Please advise.
Thanks!
Customer
-------------------------------

http://www.verypdf.com/app/pdf-to-txt-converter/try-and-buy.html#buy-cvt

image
Please make sure your EXE and following DLL files are exist in the same folder,

encryptpdf.dll
pdf2txt.dll
pdfsdk.dll

Please also compile your EXE to a 32bit EXE application, the pdf2txt.dll is a 32bit DLL library, it couldn't be called from 64bit EXE application directly. If you wish to call pdf2txt.dll from 64bit EXE application, you need to call PDF2TXTCOM.exe instead of pdf2txt.dll library.

VeryPDF

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 PDF to Text Converter | Tagged , , , , | Leave a comment

How to extract some PDF pages from a PDF file and save to a new PDF file using Python?

VeryUtils has a Python-related PDF library, PythonPDF Library, you can use this Python PDF Library to execute splitting, merging, rotation, u-up pages, watermarking and stamping options to your PDF files easily. PythonPDF Library is a pure Python PDF Library, it's a standalone library, and without depend on any other third party applications.

image

PythonPDF Library can be purchased from this web page,

https://veryutils.com/pythonpdf-library-source-code

after you purchase it online, you will get a download URL for the latest version, please download and unzip it to a folder, then you can use it without any restrictions.

Please by following steps to use VeryUtils PythonPDF Library to extract some PDF pages from an existing PDF file and save them to a new PDF file,

1. Please unzip PythonPDF Library to a folder, such as D:\downloads\python-pdfrw folder,

2. Please run following command line to set the main folder to "PYTHONPATH" environment variable,

set PYTHONPATH=D:\downloads\python-pdfrw

3. Please go to "examples" folder, you can run following command line to extract pages "1-3 5 7-9" from testcmd.pdf file and save them to a new PDF file,

python subset.py testcmd.pdf 1-3 5 7-9

subset.py is a simple python script, you can run it in Command Line window to extract some pages from a PDF file and save to a new PDF file,
------------------------
usage:   subset.py my.pdf page[range] [page[range]] ...
         eg. subset.py 1-3 5 7-9

Creates subset.my.pdf
------------------------
The following is the source code of subset.py file,
------------------------
import sys
import os

from pdfrw import PdfReader, PdfWriter

inpfn = sys.argv[1]
ranges = sys.argv[2:]
assert ranges, "Expected at least one range"

ranges = ([int(y) for y in x.split('-')] for x in ranges)
outfn = 'subset.%s' % os.path.basename(inpfn)
pages = PdfReader(inpfn).pages
outdata = PdfWriter(outfn)

for onerange in ranges:
    onerange = (onerange + onerange[-1:])[:2]
    for pagenum in range(onerange[0], onerange[1]+1):
        outdata.addpage(pages[pagenum-1])
outdata.write()
------------------------

If you have any question for "PythonPDF Library", please feel free to let us know, we are glad to assist you asap.

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 PDF Split-Merge, VeryPDF SDK & COM | Tagged , , , , , , , , , | Leave a comment

How to convert scanned PDF and Image files to AutoCAD DWG and DXF files with VeryPDF Scan2CAD software?

VeryPDF Scan2CAD software is a professional software to convert scanned PDF files to vector DWG and DXF files. Scan2CAD is not only a raster to vector converter ,but also convert your vector files such as PDFs for CAD. Scan2CAD can convert any popular file-type such as images and PDFs to industry standard file-types such as DXF and DWG.

VeryPDF Scan2CAD software is a Command Line software, you can integrate it into your application to convert from scanned PDF and Image files to Vector DWG and DXF files easily.

image

VeryPDF Scan2CAD software is also named Raster to Vector Converter Command Line.

Please by following steps to convert a scanned PDF or Image file to vector AutoCAD DXF or DWG file,

1. Please download Raster to Vector Converter Command Line from this web page,

http://www.verypdf.com/raster-to-vector/try-and-buy.html#buy_cmd

2. After you download and unzip it to a folder, you can run following command lines to convert your scanned PDF and Image files to vector DWG, DXF and other formats,

Raster2Vector.exe test-cad.pdf _test-cad.dxf
Raster2Vector.exe test-cad.pdf _test-cad.svg
Raster2Vector.exe test-cad.pdf _test-cad.ps
Raster2Vector.exe -method2 test-cad.pdf _test-cad.emf
Raster2Vector.exe -tight test-cad.pdf _test-cad1.pdf
Raster2Vector.exe -pdfres 300 -tight test-cad.pdf _test-cad2.pdf

Raster2Vector.exe software supports following command line options,

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
  -addcmd <string>     : Reserved parameter
  -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

This is the screenshot of original PDF file,

image

This is converted vector AutoCAD DXF file,

image

Raster2Vector.exe can't create DWG file in the default, however, you may download VeryDOC PDF to DWG Converter Command Line from this web page to convert from DXF format to DWG format,

https://www.verydoc.com/pdf-to-dwg-dxf.html

You can use "-ver" parameter in VeryDOC PDF to DWG Converter Command Line software to set the version number to output DWG format,

-ver <int>  : set output format for DXF and DWG files, it can be selected from following values:
    1: dxf R21 file format (*.dxf)
    2: dxf R18 file format (*.dxf)
    3: dxf R15 file format (*.dxf)
    4: dxf R14 file format (*.dxf)
    5: dxf R13 file format (*.dxf)
    6: dxf R12 file format (*.dxf)
    7: dxf R10 file format (*.dxf)
    8: dxf R9 file format (*.dxf)
    9: binary dxf R21 file format (*.dxf)
    10: binary dxf R18 file format (*.dxf)
    11: binary dxf R15 file format (*.dxf)
    12: binary dxf R14 file format (*.dxf)
    13: binary dxf R13 file format (*.dxf)
    14: binary dxf R12 file format (*.dxf)
    15: binary dxf R10 file format (*.dxf)
    16: dwg R21 file format (*.dwg)
    17: dwg R18 file format (*.dwg)
    18: dwg R15 file format (*.dwg)
    19: dwg R14 file format (*.dwg)
    20: dwg R13 file format (*.dwg)
    21: dwg R12 file format (*.dwg)

For example,

pdf2dwg.exe -ver 10 C:\test.dxf C:\test.dwg
pdf2dwg.exe -ver 16 C:\test.dxf C:\test.dwg
pdf2dwg.exe -ver 16 C:\test.pdf C:\test.dwg
pdf2dwg.exe -ver 16 C:\test.dwg C:\test.dwg

See Also:
Scan2CAD - Convert Any Image To CAD - PDF To CAD & More
http://www.verypdf.com/wordpress/201405/scan2cad-convert-any-image-to-cad-pdf-to-cad-more-40471.html

Image to Raster Vectorize -- Convert image to vector formats, include Metafile EMF, WMF, PDF, DWG, DXF, EPS, SVG etc. formats
http://www.verypdf.com/wordpress/201607/image-to-raster-vectorize-convert-image-to-vector-formats-include-metafile-emf-wmf-pdf-dwg-dxf-eps-svg-etc-formats-42752.html

Category Archives: Raster to Vector Converter:
http://www.verypdf.com/wordpress/category/raster-to-vector-converter

Raster to Vector Converter GUI Version,
http://www.verypdf.com/raster-to-vector/try-and-buy.html#buy

Raster to Vector Converter Command Line,
http://www.verydoc.com/raster-to-vector-converter-command-line/index.html

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 Raster to Vector Converter | Tagged , , , , , , , , , , , , , , | Leave a comment
Page 7 of 1,457« First...56789...203040...Last »