On 18/12/2019 21.40, jdd@dodin.org wrote:
Le 18/12/2019 à 21:30, Carlos E. R. a écrit :
How can I create a manual page size for the printer dialog?
dunno if this will solve your problem :-(
export to pdf and print the pdf.
I do not want to do that.
often problem come from printer minimum margin. A printer can't print on some surface around the paper, and software manage this in various manner...
No, the problem is setting a custom page size first. Once I do that, it can tell me my size is too small if it wishes. The first problem, the one that bothers me now, is setting a custom size. It has predefined and I used 4*6 (101,6 * 152,4), which is smaller than mine... I did manage to print the envelope, telling lies and adjusting the text position till it did it right. Export to PDF, open in evince and print works perfectly, though. 2nd cog wheel, print. paper handling tab: [ ] Auto rotate and center [X] select page size using document page size page setup: paper type: unspecified, better use "envelope". paper source: tray 1 manual (every single time I print, it resets to "auto" paper size: has C5, I hope it ignores it. Orientation: *portrait* (because papers enter the rolls in portrait orientation) There is custom size paper here, though. I can create several custom sizes, but I can not name them. Oh, I managed to rename the size to "hallmark". But now, it does not print. Goes through the motions, the paper is white (it does print on A4). Must be printing "outside" of the paper limits. Ok, got it. I had to use: [ ] select page size using document page size Custom size, width 120, height 174 (which is reversed) tray 1 *landscape* I try again reversing the size in the paper definition as before, and prints "blank". Even if I put a full A4, it prints nothing. Custom size, height 174, width 120 (which is reversed) tray 1 *portrait* And every single time I print I have to change tray and paper size to "Hallmark". Why doesn't it stick, at least for the current document? Confirm: [ ] select page size using document page size Custom size, width 120, height 174 (which is reversed) tray 1 *landscape* This time I have to concur with Per: Printing to envelopes is broken on openSUSE Leap. This is hell. I had to test printing a dozen times till I got the correct placing and orientation of the print on the "envelope". Good thing I was using paper cut to size, not real envelopes. For the kick of it, I opened the PDF again in Foxit. It says: Document: 6.85*4.72 inches (correct) paper: 8.26*11.69 inches and shows a photo of the result in portrait orientation, with the address inside in vertical. I do not see how to change the paper size to that of the document. Printer setup has a dialog for paper size, but none is the exact one, and there is no custom setting. Same problem as LO. It is possible I can print the PDF directly using lpr? Something like Foxit says it uses, to start with: "lpr -P cp1510n_ps -o PageSize=4x6 -o sides=one-sided -o Resolution=1200dpi" but corrected. First try: lpr -P cp1510n_ps -o PageSize=Custom.493x340 \ -o InputSlot=Tray1_Man env.pdf (size is in points) prints outside of paper, even if I put an A4 piece of paper. More or less: A4: ***************************************************************** * * * * * * * * * * * * * * * From: name ...... * * * * * ***************************************************************** envelope: ***************************************************************** * * * * * * * * * * * * * * * * * * * From: name ...... * ***************************************************************** The orientation of the text is correct. What if I exchange x·y? Wow, bingo! lpr -P cp1510n_ps -o PageSize=Custom.340x493 \ -o InputSlot=Tray1_Man envelope.pdf Perfect print! Repeatable at a click! AHHHH! :-D (I should add -o MediaType=Envelope, but I'm using plain paper for testing) Info links I used: <https://github.com/apple/cups/issues/1771> Easy way to set custom paper sizes #1771 https://www.linuxquestions.org/questions/linux-newbie-8/linux-lp-print-to-a-... Convert mm to points: <https://www.google.com/search?client=firefox-b-e&ei=wKL6XfbzAYqXlwSLxpmICA&q=convert+points+mm&oq=convert+points+mm&gs_l=psy-ab.3..0i22i30l10.24006.26922..28255...0.2..0.79.304.4......0....1..gws-wiz.......0i71j0i7i30j0.Rzx-2k10BHw&ved=0ahUKEwj20_qumsDmAhWKy4UKHQtjBoEQ4dUDCAo&uact=5> And this data: cer@Telcontar:~> lpoptions -d cp1510n_ps copies=1 device-uri=socket://bilbo.valinor:9100 finishings=3 InputSlot=Auto job-cancel-after=10800 job-hold-until=no-hold job-priority=50 job-sheets=none,none marker-change-time=1576705259 marker-colors=#000000,#00FFFF,#FF00FF,#FFFF00 marker-levels=0,0,0,0 marker-names='Black\ Cartridge\ HP\ CB540A,Cyan\ Cartridge\ HP\ CB541A,Magenta\ Cartridge\ HP\ CB543A,Yellow\ Cartridge\ HP\ CB542A' marker-types=toner,toner,toner,toner number-up=1 PageSize=A4 printer-commands=AutoConfigure,Clean,PrintSelfTestPage printer-info='HP Color LaserJet CP1510 Series Postscript (recommended)' printer-is-accepting-jobs=true printer-is-shared=true printer-is-temporary=false printer-location='Red local' printer-make-and-model='HP Color LaserJet CP1510 Series Postscript (recommended)' printer-state=3 printer-state-change-time=1576705259 printer-state-reasons=cups-missing-filter-warning,toner-empty-warning printer-type=8556620 printer-uri-supported=ipp://localhost/printers/cp1510n_ps cer@Telcontar:~> cer@Telcontar:~> lpoptions -p cp1510n_ps -l HPServicesWeb/Internet Services: *SupportAndTroubleshooting ProductManuals CheckForDriverUpdates OrderSupplies PageSize/Page Size: Letter Legal Executive w612h935 4x6 5x8 *A4 A5 A6 B5 w283h425 w553h765 w522h737 w558h774 Postcard DoublePostcard Env10 EnvMonarch EnvISOB5 EnvC5 EnvDL Custom.WIDTHxHEIGHT InputSlot/Paper Source: *Auto Tray1 Tray2 Tray1_Man HPRotate180/Rotate Page 180 deg: *False True MirrorPrint/Mirror Image: True *False MediaType/Media Type: *Unspecified Plain HPLaserJet90 HPColorLaserMatte105 HPPremiumChoiceMatte120 HPColorLaserBrochureMatte160 HPSuperiorLaserMatte160 HPCoverMatte200g HPMattePhoto200 HPPresentationGlossy130g HPProfessionalLaserGlossy130g HPTriFoldColorLaserBrochure160g HPColorLaserBrochureGlossy160 HPSuperiorLaserGlossy160 HPColorLaserPhotoGlossy220 HPColorLaserPhotoGlossyFast220 HPColorLaserPhotoGlossyHigh220 Light6074 MidWeight96110 Heavy111130 ExtraHeavy131175 MidWeightGlossy96110 HeavyGlossy111130 ExtraHeavyGlossy131175 CardGlossy176220 ColorLaserTransparency Labels Letterhead Envelope HeavyEnvelope Preprinted Prepunched Colored Bond Recycled Rough HeavyRough HPToughPaper HPColorSmart/Color Options: *Automatic Manual HPTextHalftone/Halftone: Detail *Smooth HPTextRGB/RGB Color: *sRGB Vivid PhotoQuality Adobe None HPTextNeutralGrays/Neutral Grays: *Black ProcessBlack HPGraphicsHalftone/Halftone: Detail *Smooth HPGraphicsRGB/RGB Color: *sRGB Vivid PhotoQuality Adobe None HPGraphicsNeutralGrays/Neutral Grays: *Black ProcessBlack HPPhotoHalftone/Halftone: Detail *Smooth HPPhotoRGB/RGB Color: *sRGB Vivid PhotoQuality Adobe None HPPhotoNeutralGrays/Neutral Grays: Black *ProcessBlack HPEdgeControl/Edge Control: Off Light *Normal Max ColorModel/Print Color as Gray: *CMYKImageRET3600 Gray600x600dpi cer@Telcontar:~> -- Cheers / Saludos, Carlos E. R. (from 15.1 x86_64 at Telcontar)