1. Vedant Patel
  2. PowerBuilder
  3. Friday, 30 December 2022 11:27 AM UTC

 

We are stuck in situation where we need PDF as end results and we have tiff file available.
I have tried many things but not able to achieve this.

We have tried following things.
1. Ghost script. But we are not going to use that as we found it is vulnerable while scanning.
2. Write code in python and make exe for that and use that one. ( Our last option)
3. We are using lead tool control in v14. And in that version we don't have support for this.
4. Used pdfsharp in C# and use that dll. ( Consuming too much memory when we have high dpi image.)
5. tried to read tiff file in bytes in PB and convert byte to blob and created pdf using that blob. ( not able to read tiff file)
 
Tomas Beran Accepted Answer Pending Moderation
  1. Monday, 2 January 2023 18:59 PM UTC
  2. PowerBuilder
  3. # 1

Hi

the problem is tiff is too complex. You can convert it to PNG with using ImageMagick, insert it to a datawindow and then convert to PDF. But don't expect all tiff options/formats will be available.

Comment
  1. Chris Pollach @Appeon
  2. Monday, 2 January 2023 20:28 PM UTC
FWIW: I have no issues converting TIFF files to PDF's using Tesseract. ;-)
  1. Helpful
There are no comments made yet.
Chris Pollach @Appeon Accepted Answer Pending Moderation
  1. Friday, 30 December 2022 13:10 PM UTC
  2. PowerBuilder
  3. # 2

Hi Vedant;

  I use the free & open source Tesseract software for that job. I just call Tesseract from my PB App's.

FYI: https://sourceforge.net/projects/tesseract-ocr.mirror

PB Example ... RUN ( " tesseract yourimage.tif out pdf" )

Regards .... Chris 

Comment
There are no comments made yet.
  • Page :
  • 1


There are no replies made for this question yet.
However, you are not allowed to reply to this question.