I understand this question is asked a lot, but I'm getting 

Warning. Invalid resolution 0 dpi. Using 70 instead.
when I set --psm to 0.

I used ImageMagick to convert the PDF to a tif, and as required, I did set 
the units and density:

convert -density 300 -units PixelsPerCentimeter InputPdf.pdf -depth 8 -
strip -background white -alpha off file.tiff

>From there, I try and run tesseract as follows:

tesseract file.tiff searchable-pdf -l eng --psm 0 pdf 
tesseract_parsley_config.txt 

This produces the error message. Running `magick identify` produces the 
following and confirms that the metadata is set.

 Format: TIFF (Tagged Image File Format)

  Mime type: image/tiff

  Class: DirectClass

  Geometry: 2550x3300+0+0

  Resolution: 300x300

  Print size: 8.5x11

  Units: PixelsPerCentimeter

How can I remove the error?

-- 
You received this message because you are subscribed to the Google Groups 
"tesseract-ocr" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tesseract-ocr+unsubscr...@googlegroups.com.
To post to this group, send email to tesseract-ocr@googlegroups.com.
Visit this group at https://groups.google.com/group/tesseract-ocr.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tesseract-ocr/b0743d45-6fa6-4e3c-9b43-6943f7adc8a3%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to