bardecode.com

  • Increase font size
  • Default font size
  • Decrease font size
Home Knowledge Base Converting from TIFF to PDF Format

Converting from TIFF to PDF Format

The SDK can be used to convert from TIF to PDF format as part of the "tiff split" functionality. If the input file for the ScanBarCode method is in TIF format and the TifSplitPath property is set to a value ending with ".pdf", then the toolkit will split the input file into sub-files in PDF format, depending on the barcode positions in the document. If you don't want to split the input file then you can set the ScanDirection property to 0 - which means that no barcodes will be recognized and so no split will occur.

For example:

barcode.ScanDirection = 0
barcode.TifSplitPath = "output.pdf"
barcode.ScanBarCode("input.tif")

...will create a file called output1.pdf, which is a conversion of the input tif document.