LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   cups generic text only doesn't print 255 characters (https://www.linuxquestions.org/questions/linux-newbie-8/cups-generic-text-only-doesnt-print-255-characters-852418/)

nawal 12-26-2010 03:07 AM

cups generic text only doesn't print 255 characters
 
I configured cups and I managed to print successfully with generic text only but my problem is that the printout always comes out as 80 columns. anything more than 80 colums wraps on the next page. I tried changing the pagesize at the textonly.ppd but it didn't work.

my textonly.ppd is




*PPD-Adobe: "4.3"
*%
*% Text-only printer definition
*%
*FormatVersion: "4.3"
*FileVersion: "1.1"
*LanguageVersion: English
*LanguageEncoding: ISOLatin1
*PCFileName: "TEXTONLY.PPD"
*Manufacturer: "Generic"
*Product: "(Generic)"
*cupsVersion: 1.0
*cupsManualCopies: True
*cupsModelNumber: 2
*cupsFilter: "text/plain 0 textonly"
*ModelName: "Generic text-only printer"
*ShortNickName: "Generic text-only printer"
*NickName: "Generic text-only printer"
*PSVersion: "(2017.000) 0"
*LanguageLevel: "2"
*ColorDevice: False
*DefaultColorSpace: Gray
*FileSystem: False
*Throughput: "8"
*LandscapeOrientation: Plus90
*VariablePaperSize: False
*TTRasterizer: Type42
*DefaultImageableArea: Letter
*ImageableArea Letter/US Letter: "18 36 594 756"
*DefaultPaperDimension: Letter
*PaperDimension Letter/Letter: "612 792"
*OpenUI *PageSize/Media Size: PickOne
*OrderDependency: 10 AnySetup *PageSize
*DefaultPageSize: Letter
*PageSize Letter/Letter: "<</PageSize[612 792]/ImagingBBox null>>setpagedevice"
*CloseUI: *PageSize
*OpenUI *PageRegion: PickOne
*OrderDependency: 10 AnySetup *PageRegion
*DefaultPageRegion: Letter
*PageRegion Letter/Letter: "<</PageSize[612 792]/ImagingBBox null>>setpagedevice"
*CloseUI: *PageRegion

*OpenUI *SendFF: Boolean
*DefaultSendFF: False
*SendFF True/True: ""
*SendFF False/False: ""
*CloseUI: *SendFF

bigrigdriver 12-26-2010 12:11 PM

I've looked through the CUPS documentation, and all I can find that might help refers to fitting the print to the page. There is nothing that specifically refers to setting the number of characters per line.

You have to keep in mind that the numbers of chars per line in the print are limited by font size and page margins. So, set your margins to minimum values, and your font size to something small enough to fit 132 per line.

Then try setting the fit-to-page option in your CUPS config.

The doc gives an example for printing from the command-line.
Quote:

Scaling to Fit

The -o fitplot option specifies that the document should be scaled to fit on the page:
lp -o fitplot filename
lpr -o fitplot filename
You can also try settings for landscape mode printing, as discovered by this user:
http://www.linuxforums.org/forum/red...cape-mode.html


All times are GMT -5. The time now is 04:03 AM.