Re: configuring zathura's print preview
On 2023-07-11, Brian wrote: >> >> https://github.com/rrthomas/pdfjam >> >> https://github.com/rrthomas/pdfjam/blob/master/pdfjam-help.txt > > I do not use anything for scaling, but pdfarranger offers the facility. > GUI only. > --scale 0.7 (to scale all input pages to 70% size)
Re: configuring zathura's print preview
On Mon 10 Jul 2023 at 15:07:13 -0500, David Wright wrote: > On Mon 10 Jul 2023 at 10:41:36 (-0700), Paul Scott wrote: > > On 7/10/23 5:06 AM, Brian wrote: > > > Look carefully. I think you mean > > > > > >lp -o media=letter > > > > > > This sets the page size and does not do scaling. > > > > > Of course you're correct. My mistake. > > > > This still leaves me with finding a way to scale. I'm sure there are > > several PDF tools that do it and I will use those when whichever print > > dialog Zathura uses fails me with font problems. > > I use pdfjam from texlive-extra-utils. It can scale, shift, rotate, > etc. It has rather a lot of options, so I use it through scripts. > Commandline recall (ie readline) is also useful for trial and error. > > https://github.com/rrthomas/pdfjam > > https://github.com/rrthomas/pdfjam/blob/master/pdfjam-help.txt I do not use anything for scaling, but pdfarranger offers the facility. GUI only. -- Brian.
Re: configuring zathura's print preview
On Mon 10 Jul 2023 at 10:41:36 (-0700), Paul Scott wrote: > On 7/10/23 5:06 AM, Brian wrote: > > Look carefully. I think you mean > > > >lp -o media=letter > > > > This sets the page size and does not do scaling. > > > Of course you're correct. My mistake. > > This still leaves me with finding a way to scale. I'm sure there are > several PDF tools that do it and I will use those when whichever print > dialog Zathura uses fails me with font problems. I use pdfjam from texlive-extra-utils. It can scale, shift, rotate, etc. It has rather a lot of options, so I use it through scripts. Commandline recall (ie readline) is also useful for trial and error. https://github.com/rrthomas/pdfjam https://github.com/rrthomas/pdfjam/blob/master/pdfjam-help.txt Cheers, David.
Re: configuring zathura's print preview
On 7/10/23 5:06 AM, Brian wrote: On Sun 09 Jul 2023 at 12:31:21 -0700, Paul Scott wrote: On 7/9/23 12:00 PM, Brian wrote: On Sun 09 Jul 2023 at 10:42:52 -0700, Paul Scott wrote: (snip) Does lp -o "letter" scale the document? This is an option unknown to CUPS. It will be ignored. I found that in man lp Look carefully. I think you mean lp -o media=letter This sets the page size and does not do scaling. Of course you're correct. My mistake. This still leaves me with finding a way to scale. I'm sure there are several PDF tools that do it and I will use those when whichever print dialog Zathura uses fails me with font problems. Thank you, Paul
Re: configuring zathura's print preview
On 7/9/23 12:00 PM, Brian wrote: On Sun 09 Jul 2023 at 10:42:52 -0700, Paul Scott wrote: (snip) Does lp -o "letter" scale the document? This is an option unknown to CUPS. It will be ignored. I found that in man lp Paul
Re: configuring zathura's print preview
On 7/9/23 12:16 PM, debian-u...@howorth.org.uk wrote: Brian wrote: On Sun 09 Jul 2023 at 10:42:52 -0700, Paul Scott wrote: On 7/9/23 4:40 AM, Brian wrote: [...] The file displayed by zathura is not the file that is sent to the printing system. The latter can be viewed by using Print to File. The print dialog converts your PDF to a new PDF with Cairo Graphics. Scaling is also done by Cairo Graphics. CUPS is not involved. That's good to know and seems somewhat illogical! Would it be reasonable to ask if you know why? (snip) Now that I know that the paper size is correct I see that "lp" prints my file perfectly. The fonts are embedded in the original PDF. CUPS prints what it is given. If the file were not the correct size I would have liked to use the scaling and page choices in the print dialog. Does lp -o "letter" scale the document? This is an option unknown to CUPS. It will be ignored. I don't use lp very much but according to https://www.cups.org/doc/options.html#OPTIONS $ lp -o fit-to-page -o media=Letter filename should do what the OP wants. fit-to-page reduces too much. Page Setup/Scale in the print dialog gives me what I want. Paul
Re: configuring zathura's print preview
Brian wrote: > On Sun 09 Jul 2023 at 10:42:52 -0700, Paul Scott wrote: > > > On 7/9/23 4:40 AM, Brian wrote: > > [...] > > > > The file displayed by zathura is not the file that is sent to the > > > printing system. The latter can be viewed by using Print to File. > > > > > > The print dialog converts your PDF to a new PDF with Cairo > > > Graphics. Scaling is also done by Cairo Graphics. CUPS is not > > > involved. > > > > That's good to know and seems somewhat illogical! Would it be > > reasonable to ask if you know why? > > Zathura uses the GTK print dialog, as do many other applications. GTK > has to deal with a variety of file formats that the application can > dispay. > > Let's take firefox. It can display html files. Sending an html file to > the printing system is a recipe for disappointment (usually). CUPS is > unable to process and render it as displayed. GTK produces a PDF of > the page. CUPS is happy. > > The same comment also applies to PNG files. > > > Pdffonts does indeed tell me that there are illegal characters in > > the PDF created by Print to File. > > > > Now that I know that the paper size is correct I see that "lp" > > prints my file perfectly. > > The fonts are embedded in the original PDF. CUPS prints what it is > given. > > > If the file were not the correct size I would have liked to use the > > scaling and page choices in the print dialog. > > > > Does > > > > lp -o "letter" > > > > scale the document? > > This is an option unknown to CUPS. It will be ignored. I don't use lp very much but according to https://www.cups.org/doc/options.html#OPTIONS $ lp -o fit-to-page -o media=Letter filename should do what the OP wants.
Re: configuring zathura's print preview
On Sun 09 Jul 2023 at 10:42:52 -0700, Paul Scott wrote: > On 7/9/23 4:40 AM, Brian wrote: [...] > > The file displayed by zathura is not the file that is sent to the printing > > system. The latter can be viewed by using Print to File. > > > > The print dialog converts your PDF to a new PDF with Cairo Graphics. Scaling > > is also done by Cairo Graphics. CUPS is not involved. > > That's good to know and seems somewhat illogical! Would it be reasonable to > ask if you know why? Zathura uses the GTK print dialog, as do many other applications. GTK has to deal with a variety of file formats that the application can dispay. Let's take firefox. It can display html files. Sending an html file to the printing system is a recipe for disappointment (usually). CUPS is unable to process and render it as displayed. GTK produces a PDF of the page. CUPS is happy. The same comment also applies to PNG files. > Pdffonts does indeed tell me that there are illegal characters in the PDF > created by Print to File. > > Now that I know that the paper size is correct I see that "lp" prints my > file perfectly. The fonts are embedded in the original PDF. CUPS prints what it is given. > If the file were not the correct size I would have liked to use the scaling > and page choices in the print dialog. > > Does > > lp -o "letter" > > scale the document? This is an option unknown to CUPS. It will be ignored. -- Brian.
Re: configuring zathura's print preview
On 7/9/23 4:40 AM, Brian wrote: On Sat 08 Jul 2023 at 22:28:52 -0700, Paul Scott wrote: On 7/8/23 3:58 PM, Charles Curley wrote: On Sat, 8 Jul 2023 13:35:43 -0700 Paul Scott wrote: Can someone please direct me to documentation for or tell me how to set what program does print preview for Zathura? I would Zathura would be a possibility. charles@jhegaala:~$ apt-cache show zathura | grep -i homepage Homepage: https://pwmt.org/projects/zathura charles@jhegaala:~$ Their documentation is being updated and I didn't see anything about print preview and I now realize that my question may be a question about CUPS and/or the print dialog. (see below) (snip) My problem is discovering whether a PDF will fit well enough on an 8"x11" sheet of paper. Most PDF viewers will let you see the properties, which should include the page size. And, depending on your printer software (CUPS on Debian), you may be able to scale a document. So far I have found the Zathura "info" command but it doesn't tell me the page size. Install poppler-utils and use pdfinfo and pdffonts. I have those and that helps a lot. Thank you! The print dialog does indeed give me the ability to scale. Another problem I am now having looks like a missing font. Zathura displays the document (music) fine but when I print (CUPS) some of the graphical information is missing. The file displayed by zathura is not the file that is sent to the printing system. The latter can be viewed by using Print to File. The print dialog converts your PDF to a new PDF with Cairo Graphics. Scaling is also done by Cairo Graphics. CUPS is not involved. That's good to know and seems somewhat illogical! Would it be reasonable to ask if you know why? Pdffonts does indeed tell me that there are illegal characters in the PDF created by Print to File. Now that I know that the paper size is correct I see that "lp" prints my file perfectly. If the file were not the correct size I would have liked to use the scaling and page choices in the print dialog. Does lp -o "letter" scale the document? Thank you, Paul
Re: configuring zathura's print preview
On Sat 08 Jul 2023 at 22:28:52 -0700, Paul Scott wrote: > > On 7/8/23 3:58 PM, Charles Curley wrote: > > On Sat, 8 Jul 2023 13:35:43 -0700 > > Paul Scott wrote: > > > > > Can someone please direct me to documentation for or tell me how to > > > set what program does print preview for Zathura? I would Zathura > > > would be a possibility. > > charles@jhegaala:~$ apt-cache show zathura | grep -i homepage > > Homepage: https://pwmt.org/projects/zathura > > charles@jhegaala:~$ > Thank you! > > > > > My problem is discovering whether a PDF will fit well enough on an > > > 8"x11" sheet of paper. > > Most PDF viewers will let you see the properties, which should include > > the page size. And, depending on your printer software (CUPS on > > Debian), you may be able to scale a document. > > > So far I have found the Zathura "info" command but it doesn't tell me the > page size. Install poppler-utils and use pdfinfo and pdffonts. > The print dialog does indeed give me the ability to scale. > > Another problem I am now having looks like a missing font. Zathura displays > the document (music) fine but when I print (CUPS) some of the graphical > information is missing. The file displayed by zathura is not the file that is sent to the printing system. The latter can be viewed by using Print to File. The print dialog converts your PDF to a new PDF with Cairo Graphics. Scaling is also done by Cairo Graphics. CUPS is not involved. -- Brian.
Re: configuring zathura's print preview
On 7/8/23 3:58 PM, Charles Curley wrote: On Sat, 8 Jul 2023 13:35:43 -0700 Paul Scott wrote: Can someone please direct me to documentation for or tell me how to set what program does print preview for Zathura? I would Zathura would be a possibility. charles@jhegaala:~$ apt-cache show zathura | grep -i homepage Homepage: https://pwmt.org/projects/zathura charles@jhegaala:~$ Thank you! My problem is discovering whether a PDF will fit well enough on an 8"x11" sheet of paper. Most PDF viewers will let you see the properties, which should include the page size. And, depending on your printer software (CUPS on Debian), you may be able to scale a document. So far I have found the Zathura "info" command but it doesn't tell me the page size. The print dialog does indeed give me the ability to scale. Another problem I am now having looks like a missing font. Zathura displays the document (music) fine but when I print (CUPS) some of the graphical information is missing. Paul Paul
Re: configuring zathura's print preview
On Sat, 8 Jul 2023 13:35:43 -0700 Paul Scott wrote: > Can someone please direct me to documentation for or tell me how to > set what program does print preview for Zathura? I would Zathura > would be a possibility. charles@jhegaala:~$ apt-cache show zathura | grep -i homepage Homepage: https://pwmt.org/projects/zathura charles@jhegaala:~$ > > My problem is discovering whether a PDF will fit well enough on an > 8"x11" sheet of paper. Most PDF viewers will let you see the properties, which should include the page size. And, depending on your printer software (CUPS on Debian), you may be able to scale a document. -- Does anybody read signatures any more? https://charlescurley.com https://charlescurley.com/blog/
configuring zathura's print preview
Can someone please direct me to documentation for or tell me how to set what program does print preview for Zathura? I would Zathura would be a possibility. My problem is discovering whether a PDF will fit well enough on an 8"x11" sheet of paper. TIA, Paul