Re: [DNG] lpr print pdf file landscape orientation

2022-04-08 Thread william m. moss

On 4/8/22 16:12, radisson via Dng wrote:



Am 02.12.21 um 23:17 schrieb Marjorie Roome via Dng:

Hi Haines,

On Sun, 2021-11-28 at 15:12 -0500, Haines Brown wrote:

I have bsd-lpr. I can print a text file with landscape orientation
with  $ lpr -o landscape file.txt

My problem is that I cannot print pdf files in landscape
orientation. $ lpr -o landscape file.pdf does nothing.


you need some utility programm
the print spooler will only transferinformation
the -o opition will be transfered to a filter programm (if configured)

https://unix-stackexchange-com.translate.goog/questions/394065/command-line-how-do-you-rotate-a-pdf-file-90-degrees?_x_tr_sl=en&_x_tr_tl=de&_x_tr_hl=de&_x_tr_pto=sc 



alternative you can make a ps (pdf2ps) and use pstops from psutils.

hope that helps,



I don't want to make landscape the default CUPS orientation.

Atril rotates the display of the PDF, but not the content of the
file in relation to the page when printed.

The qpdfview utility also can rotate the display of text but
when printed the effect is simply move  text up on the page.

I don't see how poppler-utils can be of help.

How does one print a PDF with landscape orientattion?


Isn't the page orientation used encoded in the pdf?

To change it, other than by shrinking the page down so it fits on the
paper in landscape orientation I think you would need to use a pdf
editor to reflow the content.

If you have a document or image that you are converting to a pdf then
if you format the document or image landscape then the exported pdf
will also be landscape.



___
Dng mailing list
Dng@lists.dyne.org
https://mailinglists.dyne.org/cgi-bin/mailman/listinfo/dng


atril -- believe it is installed by default. Very easy to use and it works.



OpenPGP_0xF8317D97BF4DA69A.asc
Description: OpenPGP public key


OpenPGP_signature
Description: OpenPGP digital signature
___
Dng mailing list
Dng@lists.dyne.org
https://mailinglists.dyne.org/cgi-bin/mailman/listinfo/dng


Re: [DNG] lpr print pdf file landscape orientation

2022-04-08 Thread radisson via Dng



Am 02.12.21 um 23:17 schrieb Marjorie Roome via Dng:

Hi Haines,

On Sun, 2021-11-28 at 15:12 -0500, Haines Brown wrote:

I have bsd-lpr. I can print a text file with landscape orientation
with  $ lpr -o landscape file.txt

My problem is that I cannot print pdf files in landscape
orientation. $ lpr -o landscape file.pdf does nothing.


you need some utility programm
the print spooler will only transferinformation
the -o opition will be transfered to a filter programm (if configured)

https://unix-stackexchange-com.translate.goog/questions/394065/command-line-how-do-you-rotate-a-pdf-file-90-degrees?_x_tr_sl=en&_x_tr_tl=de&_x_tr_hl=de&_x_tr_pto=sc

alternative you can make a ps (pdf2ps) and use pstops from psutils.

hope that helps,



I don't want to make landscape the default CUPS orientation.

Atril rotates the display of the PDF, but not the content of the
file in relation to the page when printed.

The qpdfview utility also can rotate the display of text but
when printed the effect is simply move  text up on the page.

I don't see how poppler-utils can be of help.

How does one print a PDF with landscape orientattion?


Isn't the page orientation used encoded in the pdf?

To change it, other than by shrinking the page down so it fits on the
paper in landscape orientation I think you would need to use a pdf
editor to reflow the content.

If you have a document or image that you are converting to a pdf then
if you format the document or image landscape then the exported pdf
will also be landscape.



___
Dng mailing list
Dng@lists.dyne.org
https://mailinglists.dyne.org/cgi-bin/mailman/listinfo/dng


Re: [DNG] lpr print pdf file landscape orientation

2021-12-06 Thread Olaf Meeuwissen via Dng
Hi,

Marjorie Roome via Dng writes:

> Hi Haines,
>
> On Sun, 2021-11-28 at 15:12 -0500, Haines Brown wrote:
>> I have bsd-lpr. I can print a text file with landscape orientation
>> with  $ lpr -o landscape file.txt
>>
>> My problem is that I cannot print pdf files in landscape
>> orientation. $ lpr -o landscape file.pdf does nothing.
>>
>> I don't want to make landscape the default CUPS orientation.
>>
>> Atril rotates the display of the PDF, but not the content of the
>> file in relation to the page when printed.
>>
>> The qpdfview utility also can rotate the display of text but
>> when printed the effect is simply move  text up on the page.
>>
>> I don't see how poppler-utils can be of help.
>>
>> How does one print a PDF with landscape orientattion?
>>
> Isn't the page orientation used encoded in the pdf?
>
> To change it, other than by shrinking the page down so it fits on the
> paper in landscape orientation I think you would need to use a pdf
> editor to reflow the content.

I don't do a lot of printing and even less modifying of PDF files but
perhaps pdftopdf can be of help here.

It's in the cups-filters-core-drivers package.

> If you have a document or image that you are converting to a pdf then
> if you format the document or image landscape then the exported pdf
> will also be landscape.

Hope this helps,
--
Olaf Meeuwissen, LPIC-2FSF Associate Member since 2004-01-27
 GnuPG key: F84A2DD9/B3C0 2F47 EA19 64F4 9F13  F43E B8A4 A88A F84A 2DD9
 Support Free Softwarehttps://my.fsf.org/donate
 Join the Free Software Foundation  https://my.fsf.org/join
___
Dng mailing list
Dng@lists.dyne.org
https://mailinglists.dyne.org/cgi-bin/mailman/listinfo/dng


Re: [DNG] lpr print pdf file landscape orientation

2021-12-05 Thread Simon
Marjorie Roome via Dng  wrote:

>> How does one print a PDF with landscape orientattion? 
>> 
> Isn't the page orientation used encoded in the pdf?
> 
> To change it, other than by shrinking the page down so it fits on the
> paper in landscape orientation I think you would need to use a pdf
> editor to reflow the content.
> 
> If you have a document or image that you are converting to a pdf then
> if you format the document or image landscape then the exported pdf
> will also be landscape.

Yes, the PDF is a complete description of a number of pages.

It is possible to change some things by pre-pending some Postscript to change 
the meaning of some verbs, though it’s so long (couple of decades) since I last 
fiddled at this level that I can’t remember the details. So you could turn 
pages around (rotate the content by 90˚), but that won’t reflow any 
text/re-arrange the contents.

One trick I do recall doing was where we printed inbound faxes on our SCO 
OpenServer system at a previous job. I changed the meaning of the “showpage” 
operator so that instead of just printing the currently imaged page, it would 
add a header to the page with key details (date, time, number, etc) and then 
print the imaged page.
At the same place I also did a custom text-ps script, adding in options to use 
some of the printer specific features we had on our printers - like doing A3 
landscape on a laser instead of printing to the old green lined fanfold.

Simon

___
Dng mailing list
Dng@lists.dyne.org
https://mailinglists.dyne.org/cgi-bin/mailman/listinfo/dng


Re: [DNG] lpr print pdf file landscape orientation

2021-12-02 Thread Marjorie Roome via Dng
Hi Haines,

On Sun, 2021-11-28 at 15:12 -0500, Haines Brown wrote:
> I have bsd-lpr. I can print a text file with landscape orientation 
> with  $ lpr -o landscape file.txt
> 
> My problem is that I cannot print pdf files in landscape 
> orientation. $ lpr -o landscape file.pdf does nothing.
> 
> I don't want to make landscape the default CUPS orientation.
> 
> Atril rotates the display of the PDF, but not the content of the 
> file in relation to the page when printed. 
> 
> The qpdfview utility also can rotate the display of text but 
> when printed the effect is simply move  text up on the page.
> 
> I don't see how poppler-utils can be of help.
> 
> How does one print a PDF with landscape orientattion? 
> 
Isn't the page orientation used encoded in the pdf?

To change it, other than by shrinking the page down so it fits on the
paper in landscape orientation I think you would need to use a pdf
editor to reflow the content.

If you have a document or image that you are converting to a pdf then
if you format the document or image landscape then the exported pdf
will also be landscape.

-- 
Marjorie

___
Dng mailing list
Dng@lists.dyne.org
https://mailinglists.dyne.org/cgi-bin/mailman/listinfo/dng


[DNG] lpr print pdf file landscape orientation

2021-11-28 Thread Haines Brown
I have bsd-lpr. I can print a text file with landscape orientation 
with  $ lpr -o landscape file.txt

My problem is that I cannot print pdf files in landscape 
orientation. $ lpr -o landscape file.pdf does nothing.

I don't want to make landscape the default CUPS orientation.

Atril rotates the display of the PDF, but not the content of the 
file in relation to the page when printed. 

The qpdfview utility also can rotate the display of text but 
when printed the effect is simply move  text up on the page.

I don't see how poppler-utils can be of help.

How does one print a PDF with landscape orientattion? 


-- 
Haines Brown  
___
Dng mailing list
Dng@lists.dyne.org
https://mailinglists.dyne.org/cgi-bin/mailman/listinfo/dng