cannot show pdf file from one sender but WIN Acrobat reader can show.

Bug #838856 reported by Raivo Lill
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Chromium Browser
Unknown
Unknown
Poppler
Fix Released
Medium
poppler (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

evince %U
 Description: Ubuntu 11.04
Release: 11.04
Paigaldatud: 2.32.0-0ubuntu12.3
  Kandidaat: 2.32.0-0ubuntu12.3
  Versioonitabel:
 *** 2.32.0-0ubuntu12.3 0
        500 http://archive.ubuntu.com/ubuntu/ natty-proposed/main i386 Packages
        100 /var/lib/dpkg/status
     2.32.0-0ubuntu12.2 0
        500 http://archive.ubuntu.com/ubuntu/ natty-updates/main i386 Packages
     2.32.0-0ubuntu12 0
        500 http://archive.ubuntu.com/ubuntu/ natty/main i386 Packages
I expected to see document but only see in heater company name and in document lines

ProblemType: Bug
DistroRelease: Ubuntu 11.04
Package: evince 2.32.0-0ubuntu12.3
ProcVersionSignature: Ubuntu 2.6.38-11.49-generic 2.6.38.8
Uname: Linux 2.6.38-11-generic i686
NonfreeKernelModules: nvidia
Architecture: i386
Date: Thu Sep 1 17:14:31 2011
ExecutablePath: /usr/bin/evince
InstallationMedia: Ubuntu 9.10 "Karmic Koala" - Release i386 (20091028.5)
ProcCmdline_: BOOT_IMAGE=/boot/vmlinuz-2.6.38-11-generic root=UUID=41c17016-d3f9-4ebc-beee-81e34c8e0d84 ro vga=769 quiet splash vt.handoff=7
ProcEnviron:
 LANGUAGE=et_EE:en
 LANG=et_EE.UTF-8
 SHELL=/bin/bash
ProcVersionSignature_: Ubuntu 2.6.38-11.49-generic 2.6.38.8
SourcePackage: evince
UpgradeStatus: Upgraded to natty on 2011-05-18 (105 days ago)

Revision history for this message
Raivo Lill (raivo-h) wrote :
Revision history for this message
Raivo Lill (raivo-h) wrote :

If it needed I can send this document to you

Revision history for this message
madbiologist (me-again) wrote :

It would be better if you could attach the document to this bug report, please. Can you also please attach a screenshot of the problem?

Changed in evince (Ubuntu):
status: New → Incomplete
Revision history for this message
Raivo Lill (raivo-h) wrote : Re: [Bug 838856] Re: cannot show pdf file from one sender but WIN Acrobat reader can show.

In attach you find screenshots and problem file.

 Raivo

-------- Original Message --------
 From: "madbiologist" <email address hidden>
 To: "<email address hidden>" <email address hidden>
 Date: 07.09.2011 20:26:36
 Subject: Re: [Bug 838856] Re: cannot show pdf file from one sender but WIN Acrobat reader can show.

 It would be better if you could attach the document to this bug report,
 please. Can you also please attach a screenshot of the problem?

 ** Changed in: evince (Ubuntu)
 Status: New => Incomplete

 --
 You received this bug notification because you are subscribed to the bug
 report.
 https://bugs.launchpad.net/bugs/838856

 Title:
 cannot show pdf file from one sender but WIN Acrobat reader can show.

 Status in “evince” package in Ubuntu:
 Incomplete

 Bug description:
 evince %U
 Description: Ubuntu 11.04
 Release: 11.04
 Paigaldatud: 2.32.0-0ubuntu12.3
 Kandidaat: 2.32.0-0ubuntu12.3
 Versioonitabel:
 *** 2.32.0-0ubuntu12.3 0
 500 http://archive.ubuntu.com/ubuntu/ natty-proposed/main i386 Packages
 100 /var/lib/dpkg/status
 2.32.0-0ubuntu12.2 0
 500 http://archive.ubuntu.com/ubuntu/ natty-updates/main i386 Packages
 2.32.0-0ubuntu12 0
 500 http://archive.ubuntu.com/ubuntu/ natty/main i386 Packages
 I expected to see document but only see in heater company name and in document lines

 ProblemType: Bug
 DistroRelease: Ubuntu 11.04
 Package: evince 2.32.0-0ubuntu12.3
 ProcVersionSignature: Ubuntu 2.6.38-11.49-generic 2.6.38.8
 Uname: Linux 2.6.38-11-generic i686
 NonfreeKernelModules: nvidia
 Architecture: i386
 Date: Thu Sep 1 17:14:31 2011
 ExecutablePath: /usr/bin/evince
 InstallationMedia: Ubuntu 9.10 "Karmic Koala" - Release i386 (20091028.5)
 ProcCmdline_: BOOT_IMAGE=/boot/vmlinuz-2.6.38-11-generic root=UUID=41c17016-d3f9-4ebc-beee-81e34c8e0d84 ro vga=769 quiet splash vt.handoff=7
 ProcEnviron:
 LANGUAGE=et_EE:en
 LANG=et_EE.UTF-8
 SHELL=/bin/bash
 ProcVersionSignature_: Ubuntu 2.6.38-11.49-generic 2.6.38.8
 SourcePackage: evince
 UpgradeStatus: Upgraded to natty on 2011-05-18 (105 days ago)

 To manage notifications about this bug go to:
 https://bugs.launchpad.net/ubuntu/+source/evince/+bug/838856/+subscriptions

Revision history for this message
madbiologist (me-again) wrote :

Changing affected package to poppler, which is what Evince uses to render PDF documents.

Changed in evince (Ubuntu):
status: Incomplete → New
affects: evince (Ubuntu) → poppler (Ubuntu)
Revision history for this message
madbiologist (me-again) wrote :

I can reproduce this on Ubuntu 11.10 "Oneiric Ocelot" beta 1.

Packages: evince 3.1.2-0ubuntu4
                libpoppler13 0.16.7-2ubuntu2
                libcairo2 1.10.2-6ubuntu3

Running Evince from the command prompt produces the following error sequence (I have <snipped> some of it out so it is not so long):

Error: Unknown font tag 'F1'
Error (11028): No font in show
Error: Unknown font tag 'F1'
Error (11041): No font in show
Error: Unknown font tag 'F1'
Error (11070): No font in show
Error: Unknown font tag 'F2'
Error (11097): No font in show
Error: Unknown font tag 'F2'
Error (11117): No font in show
Error: Unknown font tag 'F2'
Error (11147): No font in show
Error: Unknown font tag 'F2'

<snip>

Error: Unknown font tag 'F1'
Error (12582): No font in show
Error: Unknown font tag 'F3'
Error (12607): No font in show
Error: Unknown font tag 'F3'
Error (12616): No font in show
Error: Unknown font tag 'F1'
Error (12722): No font in show

<snip>

Error: Unknown font tag 'F1'
Error (13971): No font in show
Error: Unknown font tag 'F1'
Error (14028): No font in show
Error: Bad descendant font in Type 0 font
Error: Bad descendant font in Type 0 font
Error: Bad descendant font in Type 0 font

This is repeated 2 or 3 times.

Attempting to run pdffonts and redirect the output to a file just results in a file with only the headings (attached) and produces 3 errors in the terminal:

Error: Bad descendant font in Type 0 font
Error: Bad descendant font in Type 0 font
Error: Bad descendant font in Type 0 font

Changed in poppler (Ubuntu):
status: New → Confirmed
Revision history for this message
In , madbiologist (me-again) wrote :

Created attachment 50979
Output of PDF fonts

Originally reported by Raivo Lill at https://bugs.launchpad.net/ubuntu/+source/poppler/+bug/838856

"I expected to see document but only see in header company name and in document lines."

I can reproduce this on Ubuntu 11.10 "Oneiric Ocelot" beta 1.

Packages: evince 3.1.2-0ubuntu4
                libpoppler13 0.16.7-2ubuntu2
                libcairo2 1.10.2-6ubuntu3

Running Evince from the command prompt produces the following error sequence (I have <snipped> some of it out so it is not so long):

Error: Unknown font tag 'F1'
Error (11028): No font in show
Error: Unknown font tag 'F1'
Error (11041): No font in show
Error: Unknown font tag 'F1'
Error (11070): No font in show
Error: Unknown font tag 'F2'
Error (11097): No font in show
Error: Unknown font tag 'F2'
Error (11117): No font in show
Error: Unknown font tag 'F2'
Error (11147): No font in show
Error: Unknown font tag 'F2'

<snip>

Error: Unknown font tag 'F1'
Error (12582): No font in show
Error: Unknown font tag 'F3'
Error (12607): No font in show
Error: Unknown font tag 'F3'
Error (12616): No font in show
Error: Unknown font tag 'F1'
Error (12722): No font in show

<snip>

Error: Unknown font tag 'F1'
Error (13971): No font in show
Error: Unknown font tag 'F1'
Error (14028): No font in show
Error: Bad descendant font in Type 0 font
Error: Bad descendant font in Type 0 font
Error: Bad descendant font in Type 0 font

This is repeated 2 or 3 times.

Attempting to run pdffonts and redirect the output to a file just results in a file with only the headings (attached) and produces 3 errors in the terminal:

Error: Bad descendant font in Type 0 font
Error: Bad descendant font in Type 0 font
Error: Bad descendant font in Type 0 font

Revision history for this message
In , madbiologist (me-again) wrote :

Created attachment 50980
the problem document

Revision history for this message
madbiologist (me-again) wrote :

I have reported this bug upstream. You can monitor it's progress at https://bugs.freedesktop.org/show_bug.cgi?id=40719

Changed in poppler:
importance: Unknown → Medium
status: Unknown → Confirmed
Revision history for this message
madbiologist (me-again) wrote :

This is still occurring on Ubuntu 12.04 "Precise Pangolin" beta 1.

Packages: evince 3.3.90-0ubuntu2
          libpoppler19 0.18.4-1ubuntu1
          libcairo2 1.10.2-6.1ubuntu2

Revision history for this message
In , thomasfr (thomas-freitag) wrote :

Created attachment 60610
Reconstruct xref table if xref needed but missing

The PDF is defect: It's xref table does only contain entries for obj's 1 to 11 (without any reference to another xref table), but it contains 23 objects and all of them are needed.
The patch now tries to reconstruct the xref table also in such a case, how obviously also done by acrobat.
But You should file a bug to the PDF creator (OJAMM?, I never heard about it)

Revision history for this message
In , thomasfr (thomas-freitag) wrote :

Created attachment 60611
PDF repaired with pdfseparate

For Your convenience, here the PDF repaired by pdfseparate (after applying the patch)

Revision history for this message
In , Albert Astals Cid (aacid) wrote :

This patch produces a change in http://svn.ghostscript.com/ghostscript/tests/Ghent_V3.0/072_OutputIntent_ISOCoated2-v1_x3.pdf I wouldn't say it's a regression because Adobe Reader does not render any of the X we render, but the change seems strange to me. Thomas do you think i should worry about this?

Revision history for this message
In , Albert Astals Cid (aacid) wrote :

Created attachment 60630
The patch also makes this file fail to pen

Revision history for this message
In , Albert Astals Cid (aacid) wrote :

And with fail to pen i mean fail to open, i.e. after using the patch suggested by thomas i can't open it anymore.

Revision history for this message
In , thomasfr (thomas-freitag) wrote :

Created attachment 60651
Reconstruct xref table if xref needed but missing

Sorry, I was a little bit too quick and dirty, and not cowardly enough: I missed a condition with splitted xref tables and run too early in trying to reconstruct a (valid) xref table.
This new patch should solve that, but I don't want to waste Your time: I plan to regtest the min linewidth this weekend, so if You haven't spare time to look into it, I'll give an additional comment if this patch is save after regtesting it by my own.

Revision history for this message
In , thomasfr (thomas-freitag) wrote :

Comment on attachment 60610
Reconstruct xref table if xref needed but missing

Sorry, forget to mark the former patch as obsolete and don't know how to do that without uploading a new attachement :-(

Revision history for this message
In , thomasfr (thomas-freitag) wrote :

Comment on attachment 60651
Reconstruct xref table if xref needed but missing

I regtested now this patch (of comment 7), I found no regressions.

Revision history for this message
In , Albert Astals Cid (aacid) wrote :

Pushed :-)

Changed in poppler:
status: Confirmed → Fix Released
Revision history for this message
Michael Adams (unquietwiki) wrote :

Glad to see folks are working on Poppler. Something happened between 11.10 and 12.04 that breaks printing of some PDFs on Brother printers. Reverting to Poppler 0.16.x (from 11.10) seems to help, but I have to document the proper workaround; still verifying if Ghostscript also has to be reverted from 9.05 to 9.04 (from 11.10), since 9.05 has some different font behavior. Google Chrome / Chromium is an app I use that has had problems printing to Brother lately.

http://code.google.com/p/chromium/issues/detail?id=89122

Revision history for this message
Michael Adams (unquietwiki) wrote :

I have a fix for the PDF printing issue! http://unquietwiki.blogspot.com/2012/05/fixing-pdf-printing-problems-on-ubuntu.html

Procedure

1. In a terminal, sudo bash or login as root.
2. Make the /usr/lib/cups/filters/pdfwash file with your favorite text editor (nano or leafpad works).
3. Using the text editor, change the lines in the /usr/share/cups/mime/cupsfilters.convs file to look like what I posted.
4. chmod a+x /usr/lib/cups/filters/pdfwash
5. /etc/init.d/cups/restart
6. Exit the terminal.

Files

/usr/lib/cups/filters/pdfwash

    #!/bin/bash
    # CUPS filter to wash PDF output for printing

    #jobid="$1"
    #user="$2"
    #title="$3"
    #copies="$4"
    #options="$5"
    #file="$6"

    temp_pdf=`mktemp /tmp/XXXXXX.pdf`
    pdftocairo -q -pdf -origpagesizes $6 $temp_pdf
    cat $temp_pdf
    rm $temp_pdf
    exit 0

/usr/share/cups/mime/cupsfilters.convs

    application/postscript application/pdf 0 pstopdf
    application/vnd.adobe-reader-postscript application/vnd.cups-postscript 0 pstops
    application/pdf application/vnd.cups-pdf 0 pdfwash
    application/vnd.cups-pdf-banner application/vnd.cups-pdf 33 bannertopdf
    #application/pdf application/vnd.cups-postscript 0 pdftops
    #application/vnd.cups-pdf application/vnd.cups-postscript 0 pdftops
    application/postscript application/vnd.cups-postscript 66 pstops

madbiologist (me-again)
Changed in poppler (Ubuntu):
status: Confirmed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.