XnViewMP software error when saving to PDF [Bug]

*** Please report new bugs here! ***

Moderators: helmut, XnTriq, xnview, Dreamer

Post Reply
User avatar
52Konst
Posts: 9
Joined: Fri Oct 18, 2019 11:01 am

XnViewMP software error when saving to PDF [Bug]

Post by 52Konst »

Scan through XnViewMP -> Save PDF
Each PDF file individually opens.
But any manipulation of these files (combine files or insert a PDF page from another file), then the error “Invalid font object or font description object”.
There are several errors in the structure of the PDF file.


Files scanned by XnViewMP and saved in PDF format:
XnViewMP1.pdf
XnViewMP2.pdf
These are bad files.

Files scanned by FineReader and saved in PDF format:
FR1.pdf
FR2.pdf
These are good files.

***************
https://dropmefiles.com/cM4Tn
The link is valid until October 31
cday
XnThusiast
Posts: 4396
Joined: Sun Apr 29, 2012 9:45 am
Location: Cheltenham, U.K.

Re: XnViewMP software error when saving to PDF [Bug]

Post by cday »

If you are not using the latest version of XnView MP 0.93 (currently 0.93.1), please try again with 0.93.1 or any later version when released.

It was discovered last year that PDF files created by XnView software displayed in the file properties two fonts, when there were in fact no embedded fonts: Saving to pdf file - without font shown in file Properties .

One of your PDFs created using XnView when opened in Acrobat XI hung when I tried to view the fonts in the file properties, so the issue fixed in the latest XnView version is possibly the explanation for the issue you have experienced. :?:
User avatar
52Konst
Posts: 9
Joined: Fri Oct 18, 2019 11:01 am

Re: XnViewMP software error when saving to PDF [Bug]

Post by 52Konst »

My files were created by the latest version of XnView MP (v.0.93.1)/
There are NO fonts in both of my files:
https://dropmefiles.com/W2nh9
User avatar
xnview
Author of XnView
Posts: 46236
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Re: XnViewMP software error when saving to PDF [Bug]

Post by xnview »

There are several errors in the structure of the PDF file.
where?
52Konst wrote: Sat Oct 19, 2019 12:28 pm My files were created by the latest version of XnView MP (v.0.93.1)/
There are NO fonts in both of my files:
yes, is it a problem to not have font property?
Pierre.
User avatar
52Konst
Posts: 9
Joined: Fri Oct 18, 2019 11:01 am

Re: XnViewMP software error when saving to PDF [Bug]

Post by 52Konst »

xnview wrote: Mon Oct 21, 2019 2:44 pm
There are several errors in the structure of the PDF file.
where?
------------------
Hi, Pierre/.

These PDF files contain several different errors, that Acrobat cannot handle.
One of the errors is the absence of the “%” sign in the file header:
there is '% PDF-1.4 '
should be '% PDF-1.4 %'

52Konst wrote: Sat Oct 19, 2019 12:28 pm
My files were created by the latest version of XnView MP (v.0.93.1)/
There are NO fonts in both of my files:
yes, is it a problem to not have font property?
The absence of FONT in the file is not a problem.
FONTs should not be in the file, since the file contains only the image.
PROBLEM:
Why does Acrobat display an ERROR?
This is a mistake of the developers of XnViewMP (and XnView).
cday
XnThusiast
Posts: 4396
Joined: Sun Apr 29, 2012 9:45 am
Location: Cheltenham, U.K.

Re: XnViewMP software error when saving to PDF [Bug]

Post by cday »

52Konst wrote: Thu Oct 24, 2019 12:53 pm These PDF files contain several different errors, that Acrobat cannot handle.
One of the errors is the absence of the “%” sign in the file header:
there is '% PDF-1.4 '
should be '% PDF-1.4 %'

The PDF file properties in 0.93 now show no embedded fonts, which as you say is correct as the file is an image and there are none.

But are there other PDF file errors that you have identified?
User avatar
52Konst
Posts: 9
Joined: Fri Oct 18, 2019 11:01 am

Re: XnViewMP software error when saving to PDF [Bug]

Post by 52Konst »

cday wrote: Thu Oct 24, 2019 1:14 pm
52Konst wrote: Thu Oct 24, 2019 12:53 pm These PDF files contain several different errors, that Acrobat cannot handle.

One of the errors is the absence of the “%” sign in the file header:
there is '% PDF-1.4 '
should be '% PDF-1.4 %'
The PDF file properties in 0.93 now show no embedded fonts, which as you say is correct as the file is an image and there are none.
But are there other PDF file errors that you have identified?
This error was written to me on another forum.
I do not understand the structure of PDF files.
I believe that the developer of XnView software (and XnViewMP) should understand the file structure.
If necessary, I can turn to that forum with a request to indicate ALL errors found in the structure of PDF files.
cday
XnThusiast
Posts: 4396
Joined: Sun Apr 29, 2012 9:45 am
Location: Cheltenham, U.K.

Re: XnViewMP software error when saving to PDF [Bug]

Post by cday »

cday wrote: Thu Oct 24, 2019 1:14 pm ... are there other PDF file errors that you have identified?
52Konst wrote: Sat Oct 26, 2019 1:48 pm This error was written to me on another forum.
I do not understand the structure of PDF files.
...
If necessary, I can turn to that forum with a request to indicate ALL errors found in the structure of PDF files.
That could be helpful for Pierre, would you please...
User avatar
xnview
Author of XnView
Posts: 46236
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Re: XnViewMP software error when saving to PDF [Bug]

Post by xnview »

52Konst wrote: Thu Oct 24, 2019 12:53 pm These PDF files contain several different errors, that Acrobat cannot handle.
One of the errors is the absence of the “%” sign in the file header:
there is '% PDF-1.4 '
should be '% PDF-1.4 %'
No, it's '% PDF-1.4 '
52Konst wrote: Sat Oct 19, 2019 12:28 pm The absence of FONT in the file is not a problem.
FONTs should not be in the file, since the file contains only the image.
PROBLEM:
Why does Acrobat display an ERROR?
This is a mistake of the developers of XnViewMP (and XnView).
I've tried with Acrobat, but no error. Which errors do you have with Acrobat?
Pierre.
User avatar
52Konst
Posts: 9
Joined: Fri Oct 18, 2019 11:01 am

Re: XnViewMP software error when saving to PDF [Bug]

Post by 52Konst »

Look at the file header of a bad file
https://i.imgur.com/HE28bhs.png
The same file header, corrected by another program
https://i.imgur.com/A9WUUYb.png

PDF/A Manager from pdftron shows a few more errors, but some of them belong to the standard PDF/A:
- e_PDFA11: Corrupt document
- e_PDFA122: File header line not followed by % and 4 characters > 127
- e_PDFA131: The trailer dictionary does not contain ID
- e_PDFA173: The value of Length does not match the number of bytes
Obj Refs:5
- e_PDFA721: The document catalog does not contain Metadata stream
Obj Refs:2
- e_PDFA2331: Device-specific color space used, but no GTS_PDFA1 OutputIntent
Obj Refs:4
cday
XnThusiast
Posts: 4396
Joined: Sun Apr 29, 2012 9:45 am
Location: Cheltenham, U.K.

Re: XnViewMP software error when saving to PDF [Bug]

Post by cday »

XnView software doesn't convert to the PDF/A standard so only non-PDF/A errors are relevant, if you could ensure those are clearly identified please... :D
User avatar
52Konst
Posts: 9
Joined: Fri Oct 18, 2019 11:01 am

Re: XnViewMP software error when saving to PDF [Bug]

Post by 52Konst »

Here is another proof of the PDF conversion error:

- open the PNG file (for example, downloaded A9WUUYb.png) with the XnViewMP program
- save it as a PDF
- Open the PDF file with Acrobat

(I have an error:
“An error occurred while processing the page. An error occurred while reading the document (14) »
)
User avatar
xnview
Author of XnView
Posts: 46236
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Re: XnViewMP software error when saving to PDF [Bug]

Post by xnview »

yes output file is not in PDF/A, could you send me a pdf file not opened by acrobat?
Pierre.
User avatar
52Konst
Posts: 9
Joined: Fri Oct 18, 2019 11:01 am

Re: XnViewMP software error when saving to PDF [Bug]

Post by 52Konst »

1) I downloaded from the links (given above) 2 files: A9WUUYb.png and HE28bhs.png
2) I make various transformations by your program:

2a) open PNG --> save PDF
Get:
A9WUUYb=(PNG--PDF)=No_open.pdf
HE28bhs=(PNG--PDF)=No_open.pdf

(Acrobat does not open this files).

2b) open PNG --> save GIF open GIF --> save PDF
Get:
A9WUUYb=PNG--GIF--PDF.pdf

2с) open PNG --> save JPG open JPG --> save PDF
Get:
A9WUUYb=PNG--JPG--PDF.pdf

Files A9WUUYb=PNG--GIF--PDF.pdf and A9WUUYb=PNG--JPG--PDF.pdf are opened by Acrobat, but it is still impossible to combine them into one file.
Link: https://dropmefiles.com/mCXH0
User avatar
xnview
Author of XnView
Posts: 46236
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Re: XnViewMP software error when saving to PDF [Bug]

Post by xnview »

Ok, it seems that the problem comes with 32bits image. Remove alpha channel or convert or 24bits before to save in PDF
Pierre.
Post Reply