skrivardriver  
edsg.se edsg.se Home Home Products Products tiffSTAMP tiffSTAMP Visual C 
Home tiff Products bildhantering Sitemap bmp Search gif Downloads pcl Contact
Language swedish
Drucken Print
     
 Content

Home

  Products

    directBATCH

    directBAR

    directBAR Fonts

    directCONNECT

    directCONVERT V4

    directESC

    directEXTRACT

    directINF

    directJOB

    directMON V3

    directPCL

    directPREVIEW

    directPRINT

    directPRINT/Office

    directPRINT/Service

    directSTAMP

    directVIEW

    tiffADDPAGE

    tiffCONVERT

    tiffSHIFT

    tiffSTAMP

      Visual Basic

      Visual C

    tiffTEXT

    tiff2fax

    PS-RIP

    Supported file formats

    Converter Matrix

  Development

  Download

  Contact

  About us

 
 Overview

  Sitemap

  Search

 
 Contact

  Online Message


  Hotline: +46 8 5592 5980

 
 Language
English

tiffSTAMP with Microsoft Visual C

The following example shows how to use the tiffSTAMP ActiveX interface together with Microsoft Visual C.

 


#define INPUT_FILE "in.tif"

//Add basic COM-functionality
#include <objbase.h>

//Just used for this example here (printf):
#include <stdio.h>

//Import the interface table. Tiffstamp provides the table in the
//DLL itself, no further files needed. In the ./Debug - subdirectory
//the compiler creates the files "dcstmp10.tlh" and "dcstmp10.tli".
//Read "./Debug/dcstmp10.tlh" to learn more about tiffstamp.
//All declarations are available in the namespace "dcstmp10" now.

//TODO: Provide a path to the DLL-file here:
#import "dcstmp10.dll"

void main()
{

  //Enable COM in this application
  CoInitialize(NULL);

  printf("Running...\n");


  //Create a smart pointer to ITiffStamp.
  //ItiffstampPtr is not the actual interface, but a template C++ class
  //(_com_ptr_t) that contains an embedded instance of the raw Itiffstamp pointer.
  //While destructing, the destructor makes sure to invoke Release() on the internal
  //raw interface pointer. Further, the operator -> has been overloaded to direct all
  //method invocations to the internal raw interface pointer.
  //Learn more about smart pointers reading the help under "_COM_SMARTPTR_TYPEDEF",
  //"#import" and "_com_ptr_t".

  dcstmp10::ItiffstampPtr pTiffStamp;


  //Now create a real instance of tiffstamp using a "progid".

  pTiffStamp.CreateInstance("dcstmp10.tiffstamp");


  //Now all properties of TiffSTAMP are available. Read the tiffSTAMP helpfile
  //to learn more. Note: Constants are declared in the dcstmp10-namespace only.
  pTiffStamp->CopyMode = dcstmp10::cmXOR;
  pTiffStamp->DefaultDPI = 300;
  pTiffStamp->CreateDirectories = false;
  pTiffStamp->ScanSubdirectories = false;
  pTiffStamp->Fontname = "Arial";
  pTiffStamp->Halftone = false;
  pTiffStamp->Page = 0;

  //Create Text-Label
  pTiffStamp->Labeled = true;
  pTiffStamp->LabelMacro = "@-100,50P@4,0C@270A@18HSTAMPED!";

  //Create no Watermark
  pTiffStamp->Stamped   = false;
  pTiffStamp->StampLeft = 10;
  pTiffStamp->StampTop  = 10;
  pTiffStamp->Stretched = false;
  //pTiffStamp->Stamp = "stamp.tif";

  //I/O - filenames
  pTiffStamp->Source = INPUT_FILE;
  pTiffStamp->Target = "out.tif";

  //Execute and show errors
  if (pTiffStamp->Run())
  printf("Ok.\n");
  else
  printf("Error: " + pTiffStamp->ErrorMsg + "\n");


  //Add a breakpoint here to view console output
  printf(".\n");
}

Create Multipaged Tiff Faster
tiffADDPAGE adds different file formats to multipaged Tiff files. With Release V2.0 the FAST-Mode provides a very fast way to accumulate pages in a multipaged Tiff, also in case of large documents containing thousands of pages.
Read more about Create Multipaged Tiff Faster
 
Text printer driver
directLABEL NT extracts all text out of your printjobs and saves better formatted textfiles using heuristic algorithms. The text printer driver can be used by software integrators to provide interfaces to third party products.
Read more about Text printer driver
 
New release of directVIEW
Our favourite image viewer supports now more file formats than ever. We added the english language as well as an interface to our archiving solution directINDEX.
Read more about New release of directVIEW
 
Convert Text to Tiff?
With tiffTEXT/Pro 2.0 you can easily convert any ASCII text files to TIFF. A DLL-interface for C/C++ and Delphi as well as a commandline tool is available now. We deliver also some demo applications with sourcecode for you, which makes your integration much more easier and faster.
Read more about Convert Text to Tiff?
 
skrivardriver tiff bildhantering skrivardriver bmp gif

© 2010 EDSG european data systems groupContent checked by ICRA