Print Page | Close Window

Insert tiff in pdf

Printed From: Foxit's Planet PDF Forum
Category: Lets Talk PDF
Forum Name: [Commercial] Foxit SDK / Foxit Library
Forum Description: High performance PDF libraries to render PDF pages, page objects, annotations, and forms the way they were intended to be viewed: sharp, clear, accurate, and easy to read.
Printed Date: 18 Oct 2019 at 10:08pm
Software Version: Web Wiz Forums 11.10 -

Topic: Insert tiff in pdf
Posted By: nicodemo60
Subject: Insert tiff in pdf
Date Posted: 20 Oct 2017 at 11:26am
i have a problem with size of my pdf after the AddImageFromFile.
The tiff image have 29kb and my pdf after add has 140kb.
Below my source in vb:

nomefile = "c:\1072503.tif"
num = DPL.GetImagePageCount(nomefile)
For i = 1 To num
    xx = DPL.CompressImages(1)
    id1 = DPL.AddImageFromFile(nomefile, -i)
    xx = DPL.SelectImage(id1)
    xx = DPL.FitImage(0, 790, 650, 790, 1, 0, 0)
    If i = num Then Exit For
    'xx = DPL.NewPage
Next i
nomefileout = Left(nomefile, Len(nomefile) - 3)
xx = DPL.SaveToFile(nomefileout & "pdf")

Have nobody same problem?
Thanks for help

Posted By: Derico
Date Posted: 25 Oct 2017 at 1:17pm
Hi Nicola,

Nicolas Derico from Debenu here. Your code looks good, so the size difference may have something to do with the TIFF file. Can you attach both files as well as the output file? I'll put our devs on the case.

Thank you.

Print Page | Close Window

Forum Software by Web Wiz Forums® version 11.10 -
Copyright ©2001-2017 Web Wiz Ltd. -