← Back to team overview

linux-traipu team mailing list archive

[Bug 838856] Re: cannot show pdf file from one sender but WIN Acrobat reader can show.

 

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

-- 
You received this bug notification because you are a member of UBUNTU -
AL - BR, which is subscribed to Chromium Browser.
https://bugs.launchpad.net/bugs/838856

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

Status in Chromium Browser:
  Unknown
Status in Poppler:
  Fix Released
Status in “poppler” package in Ubuntu:
  Confirmed

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/chromium-browser/+bug/838856/+subscriptions