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.
URL: http://forums.planetpdf.com/forum_posts.asp?TID=2248
Printed Date: 24 Nov 2017 at 8:13pm
Software Version: Web Wiz Forums 11.10 - http://www.webwizforums.com


Topic: Insert tiff in pdf
Posted By: nicodemo60
Subject: Insert tiff in pdf
Date Posted: 20 Oct 2017 at 11:26am
Hi,
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
Nicola



Replies:
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 - http://www.webwizforums.com
Copyright ©2001-2017 Web Wiz Ltd. - https://www.webwiz.net