G
G
Godless2020-01-23 19:19:17
TIFF
Godless, 2020-01-23 19:19:17

Is there an application with printing multi-page TIFF from the context menu?

Good day.
Is there software for editing and/or viewing multi-page TIFF files that registers itself as a print application, ie. so that when you click "print" from the context menu, the file would go to print immediately without additional settings windows (software calls ShellExecute (print) or whatever it is in WinAPI)?
This is necessary for the operation of one corporate application ... (Directum 5.4, transformation services)
Google did not give a clear answer. You can print an infraview, but it's paid for the corporate segment...
our friend mspaint can do this - but only the first page...
Can he code something tricky? You can offer recipes in C#.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
G
Godless, 2020-01-30
@Godless

The answer is simple. There is no application. But the problem is solved:


[HKEY_CLASSES_ROOT\.tif]
@="TIFImage.Document"
[HKEY_CLASSES_ROOT\.tiff]
@="TIFImage.Document"
[HKEY_CLASSES_ROOT\TIFImage.Document\shell\print\command]
@="\"C:\\Directum\ \print_tiff.cmd\" \"%1\""

+ file
@echo off
C:\Directum\ImageMagick\magick.exe convert -compress lzw -quality 85 "%1" "%1.tmp.pdf"
C:\Directum\ShellPrint.exe "%1.tmp.pdf"
del /y %1.tmp.pdf

+ ShellPrint.exe (.NET 2.0)
using System;
using System.Diagnostics;

namespace ShellPrint
{
    class Program
    {
        static void Main(string[] args)
        {

            if (args.Length > 0)
            {
                //MessageBox.Show(args[0]);
                try
                {
                    ProcessStartInfo psi = new ProcessStartInfo();
                    psi.FileName = args[0];
                    psi.Verb = "printto";
                    //psi.Arguments = "\\\\ComputerName\\PrinterName";
                    psi.UseShellExecute = true;
                    psi.WindowStyle = ProcessWindowStyle.Normal;
                    Process.Start(psi);
                }
                catch (Exception e)
                {
                    System.Diagnostics.Debug.WriteLine("Exception: " + e.Message);
                }
            }
        }
    }
}

A
Adamos, 2020-01-23
@Adamos

Try PDF viewers - they know the format and might suit your needs.
https://pdfreaders.org/

Similar questions

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question