PDF files fail to print (postscript error?) in 24.04, both from atril and evince. Print OK in 23.10.
Chris Green
cl at isbd.net
Thu Jun 6 20:55:39 UTC 2024
On Thu, Jun 06, 2024 at 02:50:02PM -0500, Tommy Trussell wrote:
> On Thu, Jun 6, 2024 at 2:48 PM Tommy Trussell
> <[1]tommy.trussell at gmail.com> wrote:
>
> On Wed, Jun 5, 2024 at 3:42 AM Chris Green <[2]cl at isbd.net> wrote:
>
> I have recently rebuilt my desktop system on new hardware and moved
> it
> from xubuntu 22.04 to xubuntu 22.10.
> When I try and print PDF files from either atril or evince (I've not
> tried anything else yet) they fail to print and the following
> appears
> on the printer:-
> ERROR:
> configurationerror
> OFFENDING COMMAND:
> setpagedevice
> STACK:
> --nostringval--
> false
> 792
> 612
> 0
> 0
> 792
> 612
> --nostringval--
> 5
> The output is identical whether I use atril or evince. It looks
> like
> some sort of postscript error to me.
> Printing the same file to the same printer from an xubuntu 23.10
> system works OK and the printer works OK from the 24.04 system when
> printing other files.
> The printer is an OKI MC342 and I just selected the offered drivers
> when I installed the xubuntu 24.04 system.
> Can anyone suggest what the problem might be, and/or how to fix it?
>
> It looks like the postscript setpagedevice call is looking for some
> values on the stack, but the top item on the stack is empty.
> The man page for pdftops includes the setpagedevice call, which
> confirms how it's used.
> [3]https://manpages.ubuntu.com/manpages/trusty/man1/pdftops.1.html
> SO
> The first thing I might try is to choose whichever printer you are
> trying to use in the Print General tab, click the Page Setup tab, and
> make sure the Paper Size is a reasonable choice, such as US Letter, A4,
> or whatever you normally use. Also see that the Scale and Orientation
> settings are reasonable.
> If there's garbage in the page data (such that you cannot change it to
> something that works), I wish I could say where to look -- there must
> be defaults loaded into CUPS (the printing back-end) from somewhere. If
> you use a PPD you might try deleting the PPD and reinstalling it.
> I just looked in /etc/cups and one of the config files pointed to
> /usr/share/cups, so those general locations are where I would dig
> around.
> I just realized you didn't say whether you are trying to print to a
> printer or to a PDF, but in either case it sounds like some glitches
> somewhere. If you're having trouble printing to a particular printer,
> you might, for example, try reinstalling the printer driver.
>
> CORRECTION: you DID say you were printing to a printer. Try
> reinstalling the driver!
>
It is a driver issue. I copied the .ppd file from the (working)
xubuntu 13.10 system to the xubuntu 14.04 system and now I can print
.pdf files.
--
Chris Green
More information about the ubuntu-users
mailing list