Merge TIFF to PDF in Python
High-speed and cross-platform Python library for merging TIFF to PDF files using Python code
Merge TIFF to PDF using Aspose.Slides
Aspose.Slides for Python via .NET is a powerful Python library used to create, convert, merge, and manipulate presentations, PDFs, images, and other files. When you merge TIFF to PDF, you are effectively combining images to obtain a single PDF file.
Merge TIFF to PDF in Python
Using Aspose.Slides for Python via .NET , you can merge TIFF to PDF quickly with just a few lines of code
Python code for merging TIFF to PDF
import aspose.slides as slides
import aspose.pydrawing as drawing
with slides.Presentation() as pres:
slide = pres.slides[0]
image1 = pres.images.add_image(drawing.Bitmap("image1.tiff"))
slide.shapes.add_picture_frame(slides.ShapeType.RECTANGLE, 0, 0, 100, 100, image1)
image2 = pres.images.add_image(drawing.Bitmap("image2.tiff"))
slide.shapes.add_picture_frame(slides.ShapeType.RECTANGLE, 0, 200, 100, 100, image2)
pres.save("pres.pdf", slides.export.SaveFormat.PDF)
How to merge TIFF to PDF in Python
Install Aspose.Slides for Python via .NET. See Installation .
Add the library as a reference in your project.
Create an instance of the Presentation class.
Load the TIFF files you want to merge as picture frames.
Save the resulting PDF.
Merge other files
You can also combine files in other formats to get a single file