Viewing a multi-page .tif

This forum is for eXpress++ general support.
Message
Author
richardc
Posts: 21
Joined: Sat May 11, 2013 3:46 pm

Viewing a multi-page .tif

#1 Post by richardc »

I need to display multi-page .tif files I am using DCHTMLVIEWER but it only displays the first page. Does anyone know of a way to accomplish this using eXpress and/or xBase++.

Thanks,
Richard

User avatar
rdonnay
Site Admin
Posts: 4722
Joined: Wed Jan 27, 2010 6:58 pm
Location: Boise, Idaho USA
Contact:

Re: Viewing a multi-page .tif

#2 Post by rdonnay »

When I try to open the .TIF in Windows Edge Explorer, it reroutes it to the Windows Photo Viewer.

You may have to do it this way:

DC_SpawnUrl( 'c:\bhs\myfile.tif')
The eXpress train is coming - and it has more cars.

richardc
Posts: 21
Joined: Sat May 11, 2013 3:46 pm

Re: Viewing a multi-page .tif

#3 Post by richardc »

Thanks Roger.

I am trying to allow users to view the multi-page .TIF files within the DCHTMLVIEWER and not have to spawn a new window. Maybe a .TIF to a .PDF conversion, then to the DCHTMLVIEWER?

Richard

skiman
Posts: 1183
Joined: Thu Jan 28, 2010 1:22 am
Location: Sijsele, Belgium
Contact:

Re: Viewing a multi-page .tif

#4 Post by skiman »

Hi,

TIF isn't supported by most browsers, so it will be a problem with htmlviewer.

Converting to JPG, PNG or as you mentioned to PDF since it is a multi page will be the way to go.
Best regards,

Chris.
www.aboservice.be

User avatar
Auge_Ohr
Posts: 1405
Joined: Wed Feb 24, 2010 3:44 pm

Re: Viewing a multi-page .tif

#5 Post by Auge_Ohr »

hi,

have a look at "Freeimage"
there is a Xbase++ Wrapper using Ot4XB see this Attachmen
viewtopic.php?f=2&t=2862&p=17108
Purpose of FreeImage
A clear picture about a project is important, because it is that picture that defines which
features are implemented and which are not.
FreeImage supports:
 Loading and saving of as many bitmap types as possible
 Easy access to bitmap components, such as palettes and data bits
 Converting bitmap’s bit depths from one to another

 Accessing pages in a bitmap when there are multiple, such as in TIFF

 Basic manipulation of bitmaps, such as rotation, flipping and resampling or point
operations such as brightness and contrast adjustment
 Alpha compositing and alpha blending
greetings by OHR
Jimmy

richardc
Posts: 21
Joined: Sat May 11, 2013 3:46 pm

Re: Viewing a multi-page .tif

#6 Post by richardc »

Thanks Jimmy. I will check Freeimage out.

richardc
Posts: 21
Joined: Sat May 11, 2013 3:46 pm

Re: Viewing a multi-page .tif

#7 Post by richardc »

I found a command line free product that converts from multi-page tiffs to a pdf. It is called nconvert. I am running it via Runshell() from within my application, doing a pdf conversion and then sending it to DCHTMLVIEWER. It is fast and works perfect.

Thanks for everyone's help.

Richard

User avatar
rdonnay
Site Admin
Posts: 4722
Joined: Wed Jan 27, 2010 6:58 pm
Location: Boise, Idaho USA
Contact:

Re: Viewing a multi-page .tif

#8 Post by rdonnay »

It is fast and works perfect
I like quick, simple solutions. Good work.
The eXpress train is coming - and it has more cars.

User avatar
Eugene Lutsenko
Posts: 1649
Joined: Sat Feb 04, 2012 2:23 am
Location: Russia, Southern federal district, city of Krasnodar
Contact:

Re: Viewing a multi-page .tif

#9 Post by Eugene Lutsenko »

richardc wrote: Fri Sep 24, 2021 7:52 am I found a command line free product that converts from multi-page tiffs to a pdf. It is called nconvert. I am running it via Runshell() from within my application, doing a pdf conversion and then sending it to DCHTMLVIEWER. It is fast and works perfect.

Thanks for everyone's help.

Richard
Richard! You have found a very useful utility and an excellent solution. Thank you very much!

skiman
Posts: 1183
Joined: Thu Jan 28, 2010 1:22 am
Location: Sijsele, Belgium
Contact:

Re: Viewing a multi-page .tif

#10 Post by skiman »

Hi,
I found a command line free product that converts from multi-page tiffs to a pdf. It is called nconvert.
It is not free when you use it commercially!
Best regards,

Chris.
www.aboservice.be

Post Reply