Page MenuHomePhabricator

Rendering of file-info-size message broken for a corrupted PDF
Closed, ResolvedPublic


Author: M8R-udfkkf

Shows what's broken.

For the corrupted pdf file at:,_Army_Corps_of_Engineers-_Puerto_Rico_-_Compact_of_Permanent_Union_%281%29%28Gerald_Ford_Library%29%281554455%29.pdf

The portion which normally says:
Size of this preview: ...
Full resolution ‎...

appears to have the formatting wrong for this portion. It is highlighted in the screenshot.

Version: unspecified
Severity: normal




Event Timeline

bzimport raised the priority of this task from to Normal.
bzimport set Reference to bz41281.
bzimport added a subscriber: Unknown Object (MLST).

sumanah wrote:

I can reproduce the issue. I used,_Army_Corps_of_Engineers-_Puerto_Rico_-_Compact_of_Permanent_Union_%281%29%28Gerald_Ford_Library%29%281554455%29.pdf?uselang=qqx to determine that the specific message that isn't being rendered correctly is:

(file-info-size: , , (size-megabytes), application/pdf)

alexthepuffin wrote:

Another example showing the import of a PDF


alexthepuffin wrote:

I have the same problem also, it seems to be with all PDFs and not just this one.

I'm wondering about my version of gs or pdfinfo (8.70 and 3.03).

So 2 issues here.

*when metadata fails to be extracted, dimensions should default to 0×0 so the failure is graceful.

  • metadata extraction fails for that image (you can tell by looking at iiprop=metadata in the api). This could hust be a broken image but should investigate.

Re comment 3 - if it happens for all pdfs for you probably an issue with pdfinfo command

alexthepuffin wrote:

Ah, I think I figured it out.

Most of my problems went away when I went from pdfinfo 0.22 to 0.12.4.

My next problem was dealing with an out of memory error when running gs, but messing with ulimit helped with that too.

  • A

Related URL: (Gerrit Change I1a49474309e15808928f877dfc29ae366d028928)

Related URL: (Gerrit Change I8c956da326e5dc339893a010370d399e97e204fd)

patches were merged.

Gilles moved this task from Untriaged to Done on the Multimedia board.
Gilles raised the priority of this task from Normal to Unbreak Now!.
Gilles lowered the priority of this task from Unbreak Now! to Normal.Dec 4 2014, 11:23 AM