From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:content-type:content-transfer-encoding; bh=wexPwoVHmi1+NZj0pknpDGD1u3jUXElJyU1i1jcDB3A=; b=SXv1UqWPLJo0DMa6whKqrnVXUeY4BbZJLrf5OJyKsaSxB7F39Wmrd3z7ZcZX3M2ZV3 a1o19flKYQ2tIv+0yA1QJ76+sTOTkEikGcUnAnTW0+u/VOvkAtDgMrjh1erm5WIqS3e9 L27pO4kgr01wfwbth4luQ4thAJffqCKdEx9xdo8W9RMfmJZ0hZX3+W5YMDmBKHcupSuO NoyFh9uD8kXaljVmBjXf5Fr8zHPQ99yo6pp2gNS49m8sQI47z+kjpoPIqLZgTMOr/LY0 +G28uXgzgcRibbjbTGvbL7oBcAv6Y9lJMIVrOy3ZYC6TszOwPDl1vBrma/5Hj33YG2cD Ta6g== Message-ID: <52E0290B.3050502@gmail.com> Date: Wed, 22 Jan 2014 21:24:43 +0100 From: Till Kamppeter MIME-Version: 1.0 References: , <52E00F63.3060001@gmail.com> In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Subject: Re: [Printing-architecture] CUPS Raster filter Question List-Id: Printing architecture under linux List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Shane Lin , "printing-architecture@lists.linux-foundation.org" 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.x", with being replaced by the width of the paper, by the length, and 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.x" 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 On 01/22/2014 08:58 PM, Shane Lin wrote: > 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 > > > > > > > >> Date: Wed, 22 Jan 2014 19:35:15 +0100 >> From: till.kamppeter@gmail.com >> To: printing-architecture@lists.linux-foundation.org >> Subject: Re: [Printing-architecture] CUPS Raster filter Question >> >> On 01/22/2014 06:45 PM, Shane Lin wrote: >> > 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 >> Printing-architecture@lists.linux-foundation.org >> https://lists.linuxfoundation.org/mailman/listinfo/printing-architecture