Skip to contentSkip to conversation

CUPS Raster filter Question

Printing-architecture Shane Lin 2 participants 6 messages Jan 22, 2014 – Feb 27, 2014

lore
Share & tools
lore

Shane Lin

author
#0 lore raw

Dear List,

Are there other filters (other than the gstoraster) can generate CUPS raster in the Ubuntu system? What should I do to use them if there is any?

Thanks,

Shane

#1 lore raw
Quoted 8 lines · Shane Lin

Dear List,

Are there other filters (other than the gstoraster) can generate CUPS raster in the Ubuntu system? What should I do to use them if there is any?

Thanks,

Shane

Applications usually send print jobs in PDF, leading to a

pdftopdf -> gstoraster -> rasterto...

filter chain. gstoraster which uses Ghostscript can be replaced by pdftoraster which is Poppler-based:

pdftopdf -> pdftoraster -> rasterto...

This can be done by editing the file /usr/share/cups/mime/cupsfilters.convs, changing the line

application/vnd.cups-pdf application/vnd.cups-raster 100
pdftoraster

to

application/vnd.cups-pdf application/vnd.cups-raster 98
pdftoraster

Then gstoraster is not used any more but always pdftoraster instead.

There is also an imagetoraster filter which converts many image formats into CUPS Raster, but this does not work with multi-page jobs.

Till

author
#2 lore raw

Hi Till,
I tried to resolved the printing from the "Document Viewer" with custom paper size issue. Currently, if I open a PDF file in the Ubuntu 12.04 and print with a custom paper size, I always get the "Unrecoverable error: rangecheck in setpagedevice". I did not see the CUPS raster get generated. Other page sizes printed ok. I think my PPD for the page size should be good. it works well with the PS printer.
I thought using different filter may resolve the issue. But it looks like Poppler-based titer did not resolve the issue.
Do you have any suggestion?
Thanks,
Shane

Quoted 46 lines

Date: Wed, 22 Jan 2014 19:35:15 +0100
From: [email protected]
To: [email protected]
Subject: Re: [Printing-architecture] CUPS Raster filter Question

Quoted 8 lines · Shane Lin

Dear List,

Are there other filters (other than the gstoraster) can generate CUPS raster in the Ubuntu system? What should I do to use them if there is any?

Thanks,

Shane

Applications usually send print jobs in PDF, leading to a

pdftopdf -> gstoraster -> rasterto...

filter chain. gstoraster which uses Ghostscript can be replaced by pdftoraster which is Poppler-based:

pdftopdf -> pdftoraster -> rasterto...

This can be done by editing the file /usr/share/cups/mime/cupsfilters.convs, changing the line

application/vnd.cups-pdf application/vnd.cups-raster 100
pdftoraster

to

application/vnd.cups-pdf application/vnd.cups-raster 98
pdftoraster

Then gstoraster is not used any more but always pdftoraster instead.

There is also an imagetoraster filter which converts many image formats into CUPS Raster, but this does not work with multi-page jobs.

Till

_______________________________________________
Printing-architecture mailing list
[email protected]
https://lists.linuxfoundation.org/mailman/listinfo/printing-architecture

#3 lore raw

There is perhaps a bug in the Document viewer or the GTK print dialog, sending an incorrect option for the custom paper size. It has to send "PageSize=Custom.<width>x<length><unit>", with <width> being replaced by the width of the paper, <length> by the length, and <unit> by the unit in which the width and the length are expressed ("in", "cm", "mm", "pt"). If the unit is omitted the default unit "pt" (PostScript points, 1/72 inch) is used.

There were already reports that "PageSize=Custom" or "PageSize=Custom.Custom.<width>x<length><unit>" got sent.

Please follow the instructions of the section "CUPS error_log" on
https://wiki.ubuntu.com/DebuggingPrintingProblems and see in the error_log what gets actually sent.

Till

Quoted 73 lines · Shane Lin

Hi Till,

I tried to resolved the printing from the "Document Viewer" with custom paper size issue. Currently, if I open a PDF file in the Ubuntu 12.04 and print with a custom paper size, I always get the "Unrecoverable
error: rangecheck in setpagedevice". I did not see the CUPS raster get generated. Other page sizes printed ok.

I think my PPD for the page size should be good. it works well with the PS printer.

I thought using different filter may resolve the issue. But it looks like Poppler-based titer did not resolve the issue.

Do you have any suggestion?

Thanks,

Shane

<http://www.windowslive-hotmail.com/betathanks/?locale=en-us&ocid=TXT_PROED_thanks_HMWL_thanks_gifts_0507#>

Quoted 10 lines

Date: Wed, 22 Jan 2014 19:35:15 +0100
From: [email protected]
To: [email protected]
Subject: Re: [Printing-architecture] CUPS Raster filter Question

Quoted 4 lines · Shane Lin

Dear List,

Are there other filters (other than the gstoraster) can generate CUPS raster in the Ubuntu system? What should I do to use them if there

is any?

Quoted 36 lines
Quoted 4 lines

Thanks,

Shane

Applications usually send print jobs in PDF, leading to a

pdftopdf -> gstoraster -> rasterto...

filter chain. gstoraster which uses Ghostscript can be replaced by pdftoraster which is Poppler-based:

pdftopdf -> pdftoraster -> rasterto...

This can be done by editing the file /usr/share/cups/mime/cupsfilters.convs, changing the line

application/vnd.cups-pdf application/vnd.cups-raster 100 pdftoraster

to

application/vnd.cups-pdf application/vnd.cups-raster 98 pdftoraster

Then gstoraster is not used any more but always pdftoraster instead.

There is also an imagetoraster filter which converts many image formats into CUPS Raster, but this does not work with multi-page jobs.

Till

_______________________________________________
Printing-architecture mailing list
[email protected]
https://lists.linuxfoundation.org/mailman/listinfo/printing-architecture

author
#4 lore raw

[Printing-architecture] MediaPosition on RHEL 5.0

In reply to Till Kamppeter

All,
I have a question for the MediaPosition on RHEL 5.0:
When I check the cups raster file on the RHEL 5.0, it looks like the MediaPosition is always 0 on the cups raster header. The MediaPosition shows correctly (same as the value selected in the *InputSlot in the PPD) on the RHEL 5.10. Is this the issue in the "pstoraster" filter on the RHEL 5.0? Any suggestion?
Thanks,
Shane

author
#5 lore raw

Re: [Printing-architecture] MediaPosition on RHEL 5.0

All,

The "ghostscript-8.70-15.el5_9.3.x86_64.rpm" fixed the issue.

Thanks,

Shane

From: [email protected]
To: [email protected]; [email protected]
Date: Wed, 26 Feb 2014 14:07:50 -0800
Subject: [Printing-architecture] MediaPosition on RHEL 5.0

All,
I have a question for the MediaPosition on RHEL 5.0:
When I check the cups raster file on the RHEL 5.0, it looks like the MediaPosition is always 0 on the cups raster header. The MediaPosition shows correctly (same as the value selected in the *InputSlot in the PPD) on the RHEL 5.10. Is this the issue in the "pstoraster" filter on the RHEL 5.0? Any suggestion?
Thanks,
Shane

_______________________________________________
Printing-architecture mailing list
[email protected]
https://lists.linuxfoundation.org/mailman/listinfo/printing-architecture