I'm trying to move away from using a command line app to convert TIFF to PDF; in doing so, I've installed LibTiff.net and tried to convert a file using their provided example.
Even using the sample exactly as they put it, it seems like I can't find the Tiff2Pdf function. I've tried Tiff2Pdf, BitMiracle.Tiff2Pdf, BitMiracle.LibTiff.Classic.Tiff2Pdf, etc.
Imports System
Imports System.Diagnostics
Imports System.Drawing
Imports System.IO
Imports BitMiracle
Namespace BitMiracle.LibTiff.Samples
Public NotInheritable Class ConvertTiffToPdf
Public Shared Sub Main()
Dim inputFile As String = "Sample Data\multipage.tif"
Dim outputFile As String = "output.pdf"
Dim arguments As String() = New String() {"-o", outputFile, "-p", "A4", inputFile}
Tiff2Pdf.Program.Main(arguments)
Process.Start(outputFile)
End Sub
End Class
End Namespace
Is there another reason why this wouldn't be working?
Aucun commentaire:
Enregistrer un commentaire