Wrong PDF properties in XnView?
Moderators: XnTriq, helmut, xnview
-
- Posts: 61
- Joined: Tue Aug 02, 2016 8:13 am
Wrong PDF properties in XnView?
Hello,
I am not shure if the following is a bug:
I open the following PDF-file with XnView MP: This is a 1 bit b/w document with 72dpi.
But according to XnView MP it is 300dpi, 24bit and RGB. (properties).
Isn't this a bug?
Thank you.
I am not shure if the following is a bug:
I open the following PDF-file with XnView MP: This is a 1 bit b/w document with 72dpi.
But according to XnView MP it is 300dpi, 24bit and RGB. (properties).
Isn't this a bug?
Thank you.
You do not have the required permissions to view the files attached to this post.
-
- XnThusiast
- Posts: 4110
- Joined: Sun Apr 29, 2012 9:45 am
- Location: Cheltenham, U.K.
Re: Bug? PDF, properties
Opening your file in a text editor, it appears to consist of vector text (a scaleable outline font as used in a word processor), rather than an image (as produced by a scanner) file... [If you save a Word document as a PDF, it will be saved as vector text.]IxenPDF wrote:I open the following PDF-file with XnView MP:
This is a 1 bit b/w document with 72dpi.
But according to XnView MP it is 300dpi, 24bit and RGB. (properties).
The DPI value displayed in XnView MP (or other image viewer) is the DPI value at which the file contents have been rasterised when it was opened: in XnView MP that value is set in: Viewer > File > Format settings... > Read tab -- PS/PDF
But there is clearly a problem somewhere, as the text doesn't reproduce well at even 300DPI and does indeed look like text reproduced at 72 DPI...
Can you provide any background to the origin of the file?
-
- Posts: 61
- Joined: Tue Aug 02, 2016 8:13 am
Re: Bug? PDF, properties
Thank you for your reply.
This is not a vector text. It was produced with gImageReader (https://github.com/manisandro/gImageReader) I use this gImageReader to make PDF's with hidden text from pictures.
And yes, the quality of this picture is rather bad. But do not take care of the quality. It's just an example. I am only interestet in the dpi and other property information. I want to find out the dpi of this picture (and of other pictures).
This is not a vector text. It was produced with gImageReader (https://github.com/manisandro/gImageReader) I use this gImageReader to make PDF's with hidden text from pictures.
And yes, the quality of this picture is rather bad. But do not take care of the quality. It's just an example. I am only interestet in the dpi and other property information. I want to find out the dpi of this picture (and of other pictures).
-
- XnThusiast
- Posts: 4110
- Joined: Sun Apr 29, 2012 9:45 am
- Location: Cheltenham, U.K.
Re: Bug? PDF, properties
The file seems to contain font information, but I only had at a quick look and a little knowledge can be dangerous...IxenPDF wrote:This is not a vector text.
OCR the image to a searchable image file?It was produced with gImageReader (https://github.com/manisandro/gImageReader) I use this gImageReader to make PDF's with hidden text from pictures.
A settings problem, or does it really not matter?And yes, the quality of this picture is rather bad.
Images in PDF files have a fixed number of pixels, but DPI is not itself a measure of quality, for example. If the original image was scanned, then the DPI could be determined from the overall pixel dimensions and the print size shown in the file properties.But do not take care of the quality. It's just an example. I am only interested in the dpi and other property information. I want to find out the dpi of this picture (and of other pictures).
Anyway, no reason to suspect a bug in XnView MP...
Edit:
The PDF file is indeed searchable [the word 'den' just discernable in the image is found correctly], which presumably accounts for the font information contained in it...
-
- Posts: 8705
- Joined: Sun Oct 12, 2003 6:47 pm
- Location: Frankfurt, Germany
Re: Bug? PDF, properties
To me this looks as if someone generated this document using a special font to make the document unreadable.
Open the PDF, Ctrl+A (Select all), Ctrl+C (Copy) and the Ctrl+V (Paste) in Notepad reveals the full text.
Open the PDF, Ctrl+A (Select all), Ctrl+C (Copy) and the Ctrl+V (Paste) in Notepad reveals the full text.
-
- Posts: 61
- Joined: Tue Aug 02, 2016 8:13 am
Re: Bug? PDF, properties
Yes.cday wrote:OCR the image to a searchable image file?
I did not found "Format settings" in this menu:cday wrote: The DPI value displayed in XnView MP (or other image viewer) is the DPI value at which the file contents have been rasterised when it was opened: in XnView MP that value is set in: Viewer > File > Format settings... > Read tab -- PS/PDF
@helmut:
What I am interested in:
How can I find out the picture settings of a PDF. For example: Width, Height , # of bits, Color model, DPI, Compression? I thought maybe I can get this information with the help of XnView. So I tryed Menu->Edit->Properties in the hope to get this information. But if this is really not a bug of XnView, it seems that here I can not get this information.
Is there no way to get this information with XnView?
Please take this file. I have created it with XnView himself. It is 600dpi und 1bit b/w. How can I get this information from XnView for any PDF and for this PDF?
You do not have the required permissions to view the files attached to this post.
-
- XnThusiast
- Posts: 4110
- Joined: Sun Apr 29, 2012 9:45 am
- Location: Cheltenham, U.K.
Re: Bug? PDF, properties
It's in the Viewer: File > Format settings... > Read tab -- PS/PDFIxenPDF wrote:I did not found "Format settings" ...cday wrote: The DPI value displayed in XnView MP (or other image viewer) is the DPI value at which the file contents have been rasterised when it was opened: in XnView MP that value is set in: Viewer > File > Format settings... > Read tab -- PS/PDF
See in the Viewer Edit > Properties...IxenPDF wrote: @helmut:
What I am interested in:
How can I find out the picture settings of a PDF. For example: Width, Height , # of bits, Color model, DPI, Compression? I thought maybe I can get this information with the help of XnView. So I tryed Menu->Edit->Properties in the hope to get this information.
You do not have the required permissions to view the files attached to this post.
-
- XnThusiast
- Posts: 4110
- Joined: Sun Apr 29, 2012 9:45 am
- Location: Cheltenham, U.K.
Re: Bug? PDF, properties
Note that the properties shown in Edit > Properties... are the properties of the image after it is opened in XnView, and so are the pixel dimensions (for example) after the image has been rasterised at the DPI value set in the program as above.
To obtain details of the PDF file itself it would be necessary to inspect the code in the original file opened in a text editor, and refer to the PDF standard, 756 pages long...
At a quick look (again...) the image in the file is black and white saved with CCITT 'Fax' compression, which accounts for its very reasonable file size, not 24-bit colour as shown for the file opened in XnView MP (and another freeware viewer).
To obtain details of the PDF file itself it would be necessary to inspect the code in the original file opened in a text editor, and refer to the PDF standard, 756 pages long...
At a quick look (again...) the image in the file is black and white saved with CCITT 'Fax' compression, which accounts for its very reasonable file size, not 24-bit colour as shown for the file opened in XnView MP (and another freeware viewer).
-
- Posts: 61
- Joined: Tue Aug 02, 2016 8:13 am
Re: Bug? PDF, properties
Thank you. So it seems there is no possibility to get this information with XnView. It's a pity.cday wrote:Note that the properties shown in Edit > Properties... are the properties of the image after it is opened in XnView, and so are the pixel dimensions (for example) after the image has been rasterised at the DPI value set in the program as above.
At a quick look (again...) the image in the file is black and white saved with CCITT 'Fax' compression, which accounts for its very reasonable file size, not 24-bit colour as shown for the file opened in XnView MP (and another freeware viewer).
I renamed the file name.PDF to name.TXT to open it with Microsoft Editor. But this way I only got a featureless character string.cday wrote:To obtain details of the PDF file itself it would be necessary to inspect the code in the original file opened in a text editor, and refer to the PDF standard, 756 pages long...
-
- XnThusiast
- Posts: 4110
- Joined: Sun Apr 29, 2012 9:45 am
- Location: Cheltenham, U.K.
Re: Bug? PDF, properties
There may well be utilities that show that information, but I don't currently know of any...IxenPDF wrote:Thank you. So it seems there is no possibility to get this information with XnView. It's a pity.cday wrote:Note that the properties shown in Edit > Properties... are the properties of the image after it is opened in XnView, and so are the pixel dimensions (for example) after the image has been rasterised at the DPI value set in the program as above.
At a quick look (again...) the image in the file is black and white saved with CCITT 'Fax' compression, which accounts for its very reasonable file size, not 24-bit colour as shown for the file opened in XnView MP (and another freeware viewer).
When the file is opened in a text editor much of the contents will be incomprehensible, but there will also be small amounts of text that can give important clues as to the contents, for example:IxenPDF wrote:I renamed the file name.PDF to name.TXT to open it with Microsoft Editor. But this way I only got a featureless character string.cday wrote:To obtain details of the PDF file itself it would be necessary to inspect the code in the original file opened in a text editor, and refer to the PDF standard, 756 pages long...
Code: Select all
obj << /Type /XObject /Subtype /Image /Name /Im0 /Filter [ /CCITTFaxDecode ] /DecodeParms [ << /K -1 /Columns 2835 /Rows 2209 >> ] /Width 2835 /Height 2209 /ColorSpace 11 0 R /BitsPerComponent 1 /Length 10 0 R >>
Here is a link to the basic PDF spec : PDF Reference 1.7 : let me make absolutely clear that I only understand a very small subset!!
You could also no doubt find more information on line.
-
- Posts: 61
- Joined: Tue Aug 02, 2016 8:13 am
Re: Bug? PDF, properties
Thank you @cday for this. Now I found the string also in my own name.txt
If anybody knows a little tool which can simply show this information: Please let me know.
If anybody knows a little tool which can simply show this information: Please let me know.
-
- Moderator & Librarian
- Posts: 6363
- Joined: Sun Sep 25, 2005 3:00 am
- Location: Ref Desk
Re: Wrong PDF properties in XnView?
There are obviously several problems with Das_erfolgreiche_Bewerbungsgespräch-72 s-w extr 11.pdf: One is the font encoding, …
… was placed on top of the selectable text…
… by the OCR software.
- Arial Narrow (Embedded Subset)
- Type: TrueType (CID)
- Encoding: Identity-H
- Object Number: 4
… was placed on top of the selectable text…
Code: Select all
10 Das erfolgreiche Bewerbungsgespräch
wörtlich?Was steckte wirklich hinter der Frage?Wie hätte sie antworten sol-
len, um in die engereWahl zu kommen? Klare Antworten darauf finden Sie
in diesem Buch.
Das Bewerbungsgespräch hat viele Ähnlichkeiten mit einer gepflegten
Konversation. Letztlich erhält der Bewerber ein Vertragsangebot, dem es
gelingt, eine einseitige Prüfung seiner KompetenZen in einen dynamischen
Gedankenaustau sch zwischen zwei Profis zu verwandeln. Hier lernen Sie die
Techniken, mit denen Sie das Interesse Ihres Gesprächspartners wecken,
dauerhaft fesseln und sich als bester Bewerber für die Zu besetZende Position
empfehlen können.
Das efiblgreiche Bewerbunggesprcich ist Ihr Schlüssel zur erfolgreichen
Bewältigung selbst der schwierigsten Einstellungsgespräche. Das Buch
besteht aus vierTeilen.]ederTeil bereitet Sie in unterschiedlicherWeise auf
das Bewerbungsgespräch und den AuswahlproZess vor. »Umfassende Vorbe-
reitung, komplette Unterlageme macht Sie kampfbereit.Anschließend wer-
den Sie lernen, einen überZeugenden Lebenslaufzu schreiben, der Sie aus der
Masse der Bewerber herausragen lässt. Weiterhin werden Sie lernen, fi:eie
Stellen, die in keiner Zeitung erscheinen, ausfindig zu machen.
Wir leben in einer Gesellschaft, die von Berufsarbeit geprägt ist. Oft wird
beklagt, es gebe zu wenig Stellenangebote.Tatsächlich gibt esMenschen, die
es aus Furcht vor der Mühe und den Anstrengungen, die mit einer aktiven
Stellensuche verbunden sind, vorziehen, in Passivität zu verharren und zu
klagen. Wenn Sie wissen, wo und wie Sie vorgehen müssen, werden Sie
offene Stellen aufspüren, die nie in den Zeitungen auftauchen. Sie werden
lernen, den verborgenen Stellenmarkt zu erschließen.
Nachdem Sie sich umfassend vorbereitet haben, folgt »Das Startsignalcr.
Dieser Buchabschnitt beschreitiorgehensweisen, mit deren Hilfe Sie Ein-
ladungen zu Bewerbungsgesprächen erhalten, und bringt Ihnen einfache
und wirkungsvolle Methoden bei, um möglichst viele Bewerbungsgespräche
zu vereinbaren. Der Abschnitt endet mitTechniken, die Sie dabei unterstüt-
Zen, auch eine telefonischeVorselektion —die eine zunehmendeVerbreitung
findet —glänZend zu bestehen.
Das egfialgreicheBewerbungsgesprächvermittelt Ihnen das Wissen sowie die
Techniken und Methoden, die Sie für eine Stellensuche brauchen. Darüber
hinaus lehrt es Sie einige wertvolle Lektionen aus dem Berufsleben, die zu
Ihrem zukünftigen Erfolg beitragen werden. Alle erfolgreichen Unterneh-
men legen bei ihren Mitarbeitern auf die gleichen Dinge Wert.Aber auch
You do not have the required permissions to view the files attached to this post.
-
- Moderator & Librarian
- Posts: 6363
- Joined: Sun Sep 25, 2005 3:00 am
- Location: Ref Desk
Re: Bug? PDF, properties
IxenPDF wrote:If anybody knows a little tool which can simply show this information: Please let me know.
- EDP Sciences: Free online PDF documents analyser
- O2 solutions: PDFXplorer
Update:
- SourceForge: Poppler Win32
- Todd Hubers: Poppler for Windows
Code: Select all
page num type width height color comp bpc enc interp object ID x-ppi y-ppi size ratio
--------------------------------------------------------------------------------------------
1 0 image 550 851 gray 1 1 ccitt no 3 0 72 72 12.9K 23%
[color=green]pdfimages.exe -list [/color][url=http://newsgroup.xnview.com/download/file.php?id=3687][color=green]lösch.pdf[/color][/url] wrote:Code: Select all
page num type width height color comp bpc enc interp object ID x-ppi y-ppi size ratio -------------------------------------------------------------------------------------------- 1 0 image 2835 2209 gray 1 1 ccitt no 9 0 300 300 71.9K 9.4%
-
- XnThusiast
- Posts: 4110
- Joined: Sun Apr 29, 2012 9:45 am
- Location: Cheltenham, U.K.
Re: Wrong PDF properties in XnView?
Based on what IxenPDF has written earlier in the thread he is trying to produce a searchable image PDF file using freeware software, so I think the image is supposed to be in the foreground: the problem is that something seems to have gone wrong when the file was created...
Looking at the file opened in a text editor, I think all the parameters requested are there if the code can be understood; the page size for this single-image file is given in the 'MediaBox' & 'CropBox' values based on a scale of 1/72 inch [I'm fairly sure], and the image pixel dimensions are given by the 'Columns' and 'Rows' values following the 'CCITTFaxDecode' parameter. That information could be checked or refined by [very] selective reference to the PDF specification. [For reference, as a croos-check the page dimensions can be read directly in the File > Properties... > Description tab [Ctrl + D] in Adobe Acrobat]
For the lösch.pdf, the second file uploaded, I calculated a DPI value of 300 rather than the 600 stated by IxenPDF, but that was only a quick calculation so I might be wrong.
Edit:
I see that XnTriq has updated his earlier post and and that my 300 DPI is correct, and more usefully he seems to have found just the tool required to obtain the required information the easy way...
Looking at the file opened in a text editor, I think all the parameters requested are there if the code can be understood; the page size for this single-image file is given in the 'MediaBox' & 'CropBox' values based on a scale of 1/72 inch [I'm fairly sure], and the image pixel dimensions are given by the 'Columns' and 'Rows' values following the 'CCITTFaxDecode' parameter. That information could be checked or refined by [very] selective reference to the PDF specification. [For reference, as a croos-check the page dimensions can be read directly in the File > Properties... > Description tab [Ctrl + D] in Adobe Acrobat]
For the lösch.pdf, the second file uploaded, I calculated a DPI value of 300 rather than the 600 stated by IxenPDF, but that was only a quick calculation so I might be wrong.
Edit:
I see that XnTriq has updated his earlier post and and that my 300 DPI is correct, and more usefully he seems to have found just the tool required to obtain the required information the easy way...
-
- Moderator & Librarian
- Posts: 6363
- Joined: Sun Sep 25, 2005 3:00 am
- Location: Ref Desk
Re: Wrong PDF properties in XnView?
You do not have the required permissions to view the files attached to this post.