Automatisez la conversion des vos images TIFF, PNG, JPEG en PDF
Java | C# | .NET Core | nuget | COM | Ligne de commande | Dossiers surveillés
Le 3-Heights™ Image to PDF est un module pour la conversion d’images tramées telles que TIFF, PNG ou JPEG en des documents PDF et PDF/A - par programme ou en ligne de commande. Image to PDF Converter sert à transformer des images tramées en une forme standardisée (ISO 19005, ISO 32000), par exemple pour l’archivage électronique ou l’échange électronique de données. Des métadonnées de sources externes peuvent également être intégrées lors de la conversion. Pour la création de fichiers de sortie interrogeables, un add-on OCR (en option) est disponible.
Thanks to its streamlined, virtual platform using a single CPU, the conversion solution provided by PDF Tools AG enabled the company to replace obsolete architecture based across several CPU cores. Since its introduction, the new solution has been extremely efficient and stable.
By integrating the 3-Heights™ components, the Volkswagen Foundation achieved a standardization of the different PDF variants in their DMS. As well, the conversion of different image formats into full-text indexed PDF documents is possible.
Formats d’entrée
Formats de sortie
Les documents scannés peuvent être convertis des formats JPEG et TIFF vers PDF/A, PDF ou d’autres formats d’image, ce qui assure un traitement ultérieur unifié dans le processus de l’entreprise et un archivage sûr des documents entrants. La préparation des textes contenus se fait au moyen de la fonction de OCR (en option).
Convert an image to a PDF/A-1a document. Optionally set a different compliance level.
// Create the converter
using (Img2Pdf converter = new Img2Pdf())
{
// Set PDF Compliance level
converter.Compliance = compliance;
// Create output file
if (!converter.Create(outPath, "", "", PDFPermission.ePermNoEncryption))
throw new Exception(String.Format("Output file {0} cannot be created. {1} "+
"(ErrorCode: 0x{2:x})", outPath, converter.ErrorMessage, converter.ErrorCode));
// Convert pages from input image to PDF
if (!converter.CreatePageFromImage(inPath))
throw new Exception(String.Format("Pages cannot be created from image input {0}. " +
"{1} (ErrorCode: 0x{2:x})", inPath, converter.ErrorMessage, converter.ErrorCode));
// Close output file
if (!converter.Close())
throw new Exception(String.Format("Output file {0} cannot be closed. " +
"{1} (ErrorCode: 0x{2:x})", outPath, converter.ErrorMessage, converter.ErrorCode));
}
// Create the converter
converter = new Img2Pdf();
// Set PDF Compliance level
converter.setCompliance(compliance);
// Create output file
if (!converter.create(outPath, "", "", NativeLibrary.PERMISSION.ePermNoEncryption))
throw new Exception(String.format("Output file %s cannot be created. %s (ErrorCode: 0x%08x).",
outPath, converter.getErrorMessage(), converter.getErrorCode()));
// Convert pages from input image to PDF
if (!converter.createPageFromImage(inPath))
throw new Exception(String.format("Pages cannot be created from image input %s. %s " +
"(ErrorCode: 0x%08x).", inPath, converter.getErrorMessage(), converter.getErrorCode()));
// Close output file
if (!converter.close())
throw new Exception(String.format("Output file %s cannot be closed. %s (ErrorCode: 0x%08x).",
outPath, converter.getErrorMessage(), converter.getErrorCode()));
// Create the converter
pConverter = Img2PdfCreateObject();
// Set PDF Compliance level
Img2PdfSetCompliance(pConverter, eCompliance);
// Create output file
if (!Img2PdfCreate(pConverter, szOutPath, _T(""), _T(""), ePermNoEncryption))
{
_tprintf(_T("Output file %s cannot be created. %s (ErrorCode: 0x%08x).\n"), szOutPath, Img2PdfGetErrorMessage(pConverter), Img2PdfGetErrorCode(pConverter));
iReturnValue = 1;
goto cleanup;
}
// Convert pages from input image to PDF
if (!Img2PdfCreatePageFromImage(pConverter, szInPath))
{
_tprintf(_T("Pages cannot be created from image input %s. %s (ErrorCode: 0x%08x).\n"), szInPath, Img2PdfGetErrorMessage(pConverter), Img2PdfGetErrorCode(pConverter));
iReturnValue = 1;
goto cleanup;
}
// Close output file
if (!Img2PdfClose(pConverter))
{
_tprintf(_T("Output file %s cannot be closed. %s (ErrorCode: 0x%08x).\n"), szOutPath, Img2PdfGetErrorMessage(pConverter), Img2PdfGetErrorCode(pConverter));
iReturnValue = 1;
goto cleanup;
}