[opensuse] How to set paper size in both Libre Office page format and printer?
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hi, I have envelopes of 174 mm horizontal by 120 mm high. It is approxximately size DIN B6 (175*125) I want to set the exact same size in both page format and printer settings. If they are not the same, it does not print right (it prints out of the paper this moment). So, in page format I can set the exact size, no problem: width 17.4 cm height: 12.0 landscaope tray 1 (manual) Now, go to File printer setup. Options: change paper tray from printer settings to [ ] Properties: Tray 1 (manual) landscape Size: There is no B6, and no manual settings. On File/Print menu, Options, I unset: [ ] Use only paper size from printer preferences. Still, it says it is going to use #8 Monarch, 191mm wide by 98 mm heigh. The text overflows a bit to the left, out of the envelope (I'm testing with paper cut to size with scissors instead). Still, the printer dialog doesn't show the page size I wrote in Page/Format, nor the one in printer/properties. How can I create a manual page size for the printer dialog? Not in CUPS: http://localhost:631/printers/ I think that both page format and printer dialog have to match sizes for printing to work right. I managed to print by moving the text box and testing a few times... - -- Cheers Carlos E. R. (from 15.1 x86_64 at Telcontar) -----BEGIN PGP SIGNATURE----- iHoEARECADoWIQQZEb51mJKK1KpcU/W1MxgcbY1H1QUCXfqMVRwccm9iaW4ubGlz dGFzQHRlbGVmb25pY2EubmV0AAoJELUzGBxtjUfVmJIAnR6gWsS/w75xLDtJdG2N 9OTHOySpAJ9BxfPiqzlOAcF8CX2jF6p0UnoMfA== =E3wg -----END PGP SIGNATURE----- -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
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. 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... jdd -- http://dodin.org -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
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)
* Carlos E. R. <robin.listas@telefonica.net> [12-18-19 17:42]:
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. [...]
and you created a bug report for libreoffice on Leap <some version> to hopefully correct this? -- (paka)Patrick Shanahan Plainfield, Indiana, USA @ptilopteri http://en.opensuse.org openSUSE Community Member facebook/ptilopteri Photos: http://wahoo.no-ip.org/piwigo paka @ IRCnet freenode -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
On 18/12/2019 23.59, Patrick Shanahan wrote:
* Carlos E. R. <robin.listas@telefonica.net> [12-18-19 17:42]:
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. [...]
and you created a bug report for libreoffice on Leap <some version> to hopefully correct this?
No, I'm asking first. Maybe I have not seen the truth. -- Cheers / Saludos, Carlos E. R. (from 15.1 x86_64 at Telcontar)
Hello, On Wed, 18 Dec 2019, Carlos E. R. wrote: [..]
Convert mm to points: <https://www.google.com/search?...
$ units 120mm pspoint * 340.15748 / 0.0029398148 $ units 174mm pspoint * 493.22835 / 0.0020274585 HTH, -dnh -- /* After several hours of tedious analysis, the following hash * function won. Do not mess with it... -DaveM */ linux-2.2.16/fs/buffer.c -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On 19/12/2019 06.44, David Haller wrote:
Hello,
On Wed, 18 Dec 2019, Carlos E. R. wrote: [..]
Convert mm to points: <https://www.google.com/search?...
$ units 120mm pspoint * 340.15748 / 0.0029398148 $ units 174mm pspoint * 493.22835 / 0.0020274585
Thanks, but one has to remember those or use notes, while google has a converter or finds a converter, for whatever unit. Possibly there are also programs to do any type of unit conversion. - -- Cheers / Saludos, Carlos E. R. (from 15.1 x86_64 at Telcontar) -----BEGIN PGP SIGNATURE----- iF0EARECAB0WIQQZEb51mJKK1KpcU/W1MxgcbY1H1QUCXfu8EgAKCRC1MxgcbY1H 1bS1AJ4l49Lz2owcpg9F/HNt6BH1BAKyGwCdHnMQ+qQ/FlHQ/pe9+9VjKmX1sqM= =pGBz -----END PGP SIGNATURE----- -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
Hello, On Thu, 19 Dec 2019, Carlos E. R. wrote:
On 19/12/2019 06.44, David Haller wrote:
On Wed, 18 Dec 2019, Carlos E. R. wrote: [..]
Convert mm to points: <https://www.google.com/search?...
$ units 120mm pspoint * 340.15748 / 0.0029398148 $ units 174mm pspoint * 493.22835 / 0.0020274585
Thanks, but one has to remember those or use notes, while google has a converter or finds a converter, for whatever unit.
Possibly there are also programs to do any type of unit conversion.
And "units" is the one of those programs! And you don't have to remember the units, just search in /usr/share/units/definitions.units. You can also add your own, I e.g. have these (which are funnily not available by default): ==== /usr/share/units/dnh_defs.units ==== lighthour c hour lightday c day lightmonth lightyear/12 #[..] ==== These are the predefined ones: ==== light c lightyear c julianyear # The 365.25 day year is specified in ly lightyear # NIST publication 811 lightsecond c s lightminute c min ==== And you can combine units in every which way that makes sense, e.g. give speed in attoparsecs/microfortnight. Decide for yourself if 327 apc/µfortnight. Or give your weight in eV/c^2... ;) Lotsa fun to be had. HTH, -dnh -- Every time I hear someone whining about vi or emacs, I give them ed to play with. Shuts them up PDQ. -- stevo -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
participants (5)
-
Carlos E. R.
-
Carlos E.R.
-
David Haller
-
jdd@dodin.org
-
Patrick Shanahan