Universal Document Converter
Información general
Descargas
Comprar
Tutoriales
Desarrolladores
Soporte técnico
Acerca de fCoder SIA


      Búsqueda en el sitio
   


      Conversiones populares
Adobe PDF a JPEG
Word Document a PDF
Hojas de cálculo Excel a PDF
PowerPoint a JPEG
Diseño Visio a PDF
Diseño AutoCAD a TIFF
Página web a JPEG
Convertir de cálculo Excel a PDF
Convertir DjVu a PDF
Convertir una página web a PDF

      Tutorial de vídeo
Ver el tutorial



Página principal>Developer Solutions>Popular Applications as COM-servers

Print Documents to Images in Batch Mode


Universal Document Converter is virtual printer software that saves any document you print as an image file. Below is a source code example that can help you to accomplish your task with Universal Document Converter. Please let us know if you cannot find the solution you need.

  1. Open printer settings panel: Start=>Settings=>Printers.
  2. If Universal Document Converter is not your default printer, right-click it and select
    Set as Default Printer option from the menu.
  3. Open Universal Document Converter Settings window, activate the required profile or adjust settings manually.
  4. Press OK.
  5. Press Start=>Run and enter command line for your task:

    • PDF file
      • If you have Acrobat Reader installed:
        AcroRd32.exe /p /h "C:\My Documents\PDF\filename.pdf"
      • If you have Acrobat Writer (Acrobat full version) installed:
        Acrobat.exe /p /h "C:\My Documents\PDF\filename.pdf"
    • Text file
      notepad.exe /p "C:\My Documents\RTF\filename.txt"
    • RTF file
      WORDPAD.EXE /p "C:\My Documents\RTF\filename.rtf"
    • Microsoft Outlook file
      OUTLOOK.EXE /p "C:\My Documents\OUTLOOK\filename.msg"
    • Microsoft Visio file
      visio.exe /pt "C:\My Documents\Visio\filename.vsd" "Universal Document Converter"
    • HTM or HTML file
      rundll32.exe MSHTML.DLL,PrintHTML "C:\My Documents\HTM\filename.htm"
    • URL file (e.g. from Favorites folder)
      rundll32.exe MSHTML.DLL,PrintHTML "C:\My Documents\Favorites\filename.url"
    • Font file
      fontview.exe /p Arial.ttf
    • Microsoft PowerPoint file
      POWERPNT.EXE -p "C:\My Documents\Presentations\filename.ppt"
You can also:

  • Use OpenPrinter, DocumentProperties, CreateDC and BitBlt Windows API functions for sending your own graphic data to Universal Document Converter device context;
  • Or print documents to images from your program with the help of ShellExecute(...) function. Here is a code example for Visual C++:
    ShellExecute( 0, "print", "C:\\Documents\\letter.doc", 0, 0, SW_HIDE );
    



Related topics
Popular pages
Popular solutions


© fCoder SIA Acerca de fCoder SIA | Mapa del sitio