Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
What happened to rastertopdf and how do I get it back?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
mgnut57
Guru
Guru


Joined: 12 Jan 2008
Posts: 308

PostPosted: Sat Jul 27, 2024 10:22 pm    Post subject: What happened to rastertopdf and how do I get it back? Reply with quote

The last time I did a full update and depclean seems to have removed the file
/usr/libexec/cups/filter/rastertopdf

This is causing failures when printing, depending on the setup of the printer (HP Colorlaser M255).

How do I fix this?
Back to top
View user's profile Send private message
Hu
Administrator
Administrator


Joined: 06 Mar 2007
Posts: 22618

PostPosted: Sat Jul 27, 2024 10:24 pm    Post subject: Reply with quote

This file is owned by net-print/cups-filters. Did you remove that package?
Back to top
View user's profile Send private message
mgnut57
Guru
Guru


Joined: 12 Jan 2008
Posts: 308

PostPosted: Sat Jul 27, 2024 11:04 pm    Post subject: Reply with quote

Hu wrote:
This file is owned by net-print/cups-filters. Did you remove that package?


I think it was removed by emerge --depclean, but then I reinstalled it.

Code:
equery files cups-filters | grep rasterto
/usr/libexec/cups/filter/rastertoescpx
/usr/libexec/cups/filter/rastertopclx
/usr/libexec/cups/filter/rastertops

# equery list cups-filters
 * Searching for cups-filters ...
[IP-] [  ] net-print/cups-filters-2.0.0-r1:0

# equery uses !$
equery uses cups-filters
[ Legend : U - final flag setting for installation]
[        : I - package is installed with flag     ]
[ Colors : set, unset                             ]
 * Found these USE flags for net-print/cups-filters-2.0.0-r1:
 U I
 + + foomatic : Build the included foomatic-rip printer driver. Strongly recommended.

# genlop -t cups-filters | tail

     Sun Mar 26 22:10:57 2023 >>> net-print/cups-filters-1.28.17
       merge time: 47 seconds.

     Thu Jun 22 04:16:33 2023 >>> net-print/cups-filters-1.28.17-r2
       merge time: 39 seconds.

     Sat Jul 27 15:33:28 2024 >>> net-print/cups-filters-2.0.0-r1
       merge time: 45 seconds.

Back to top
View user's profile Send private message
eschwartz
Developer
Developer


Joined: 29 Oct 2023
Posts: 214

PostPosted: Sun Jul 28, 2024 4:54 am    Post subject: Reply with quote

https://github.com/OpenPrinting/cups-filters/commit/0aad4d5bb6c8bb9d4ad72e93b18582811c8a6681

The filename was changed by upstream -- it is now called pwgtopdf since they decided it is more accurate to call it a pwg converter as it doesn't work with all raster inputs, but only the pwg variety.

Interestingly, it doesn't appear they ever actually mentioned this in the changelog for cups-filters 2.0.0.

If you have a custom printer driver that requires rastertopdf, you can simply edit it to use the new name.
Back to top
View user's profile Send private message
mgnut57
Guru
Guru


Joined: 12 Jan 2008
Posts: 308

PostPosted: Sun Jul 28, 2024 4:30 pm    Post subject: Reply with quote

eschwartz wrote:
https://github.com/OpenPrinting/cups-filters/commit/0aad4d5bb6c8bb9d4ad72e93b18582811c8a6681

The filename was changed by upstream -- it is now called pwgtopdf since they decided it is more accurate to call it a pwg converter as it doesn't work with all raster inputs, but only the pwg variety.

Interestingly, it doesn't appear they ever actually mentioned this in the changelog for cups-filters 2.0.0.

If you have a custom printer driver that requires rastertopdf, you can simply edit it to use the new name.


I have had some success with restarting cupsd. This fixed issues on my Gentoo desktop. I should have done that before posting! Now, when printing from a Linux Mint desktop, I see the following on the server:
[code]
"cfFilterUniversal: Unsupported combination of input and output formats: application/vnd.cups-raster -> application/vnd.cups-pdf"
[code]
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum