* [Printing-architecture] What should the "landscape" and "orientation-requested" options exactly do?
@ 2013-12-05 22:44 Till Kamppeter
2013-12-06 23:01 ` Tobias Hoffmann
0 siblings, 1 reply; 4+ messages in thread
From: Till Kamppeter @ 2013-12-05 22:44 UTC (permalink / raw)
To: Michael Sweet; +Cc: Open Printing
Hi,
I got the following bug report on Ubuntu:
https://bugs.launchpad.net/ubuntu/+source/poppler/+bug/1243484
a user complais that when he sends a job with the "landscape" option it
does not come out correctly.
Now I want to know exactly what "landscape" and "orientation-requested"
should do exactly, to fix cups-filters.
There is some discussion in the bug report and following RFC 2911 I come
to the conclusion that PDF files and also PostScript files which come
from apps as a print job have their layout and page geometry already
determined by the app and so a filter like pdftopdf should ignore
"landscape" and "orientation-requested". For PostScript files (filters
pstopdf and pstops) the given "PageSize", "landscape", and
"orientation-requested" settings should only be used as default for
pages without geometry definition (like the old PostScript CUPS test
page) and be ignored by pages which already come with complete geometry
info (like pages of a usual print job from an app). Filters for text and
image jobs (texttopdf, imagetopdf) should use "landscape" and
"orientation-requested" for the layout of the output.
Am I correct?
Till
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [Printing-architecture] What should the "landscape" and "orientation-requested" options exactly do?
2013-12-05 22:44 [Printing-architecture] What should the "landscape" and "orientation-requested" options exactly do? Till Kamppeter
@ 2013-12-06 23:01 ` Tobias Hoffmann
2013-12-09 15:55 ` Michael Sweet
2013-12-09 16:32 ` Till Kamppeter
0 siblings, 2 replies; 4+ messages in thread
From: Tobias Hoffmann @ 2013-12-06 23:01 UTC (permalink / raw)
To: Till Kamppeter; +Cc: Open Printing
[-- Attachment #1: Type: text/plain, Size: 2103 bytes --]
Am 05.12.2013 23:44 schrieb "Till Kamppeter" <till.kamppeter@gmail.com>:
>
> Hi,
>
> I got the following bug report on Ubuntu:
>
> https://bugs.launchpad.net/ubuntu/+source/poppler/+bug/1243484
>
> a user complais that when he sends a job with the "landscape" option it
> does not come out correctly.
>
> Now I want to know exactly what "landscape" and "orientation-requested"
> should do exactly, to fix cups-filters.
>
> There is some discussion in the bug report and following RFC 2911 I come
> to the conclusion that PDF files and also PostScript files which come
> from apps as a print job have their layout and page geometry already
> determined by the app and so a filter like pdftopdf should ignore
> "landscape" and "orientation-requested". For PostScript files (filters
> pstopdf and pstops) the given "PageSize", "landscape", and
> "orientation-requested" settings should only be used as default for
> pages without geometry definition (like the old PostScript CUPS test
> page) and be ignored by pages which already come with complete geometry
> info (like pages of a usual print job from an app). Filters for text and
> image jobs (texttopdf, imagetopdf) should use "landscape" and
> "orientation-requested" for the layout of the output.
>
> Am I correct?
I don't think so.
E.g. for N-up, fitplot, adding of borders the pdftopdf filter looks at the
final destination size. This size is determined by page-size, *together*
with orientation-requested. pdftopdf also makes sure that filters like
pdftoXYZ only get portrait pdfs as input, so that these can rasterize from
to bottom and get the correct raster pixel ordering without thinking about
rotations (e.g. an inkjet still prints along the short edge, regardless
whether the input is landscape or not).
Two examples with texttopdf:
1) A4, portrait: output pdf has (roughly) 21x29 cm, pdftopdf keeps it,
pdftoijs renders (e.g.) 1000x1400 pixel output "image" for the printer.
2) A4, landscape: output pdf has 29x21 cm, pdftopdf rotates it (in the
ppd-specified normal_landscape direction), pdftoijs renders 1000x1400
pixels.
Tobias
[-- Attachment #2: Type: text/html, Size: 2665 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [Printing-architecture] What should the "landscape" and "orientation-requested" options exactly do?
2013-12-06 23:01 ` Tobias Hoffmann
@ 2013-12-09 15:55 ` Michael Sweet
2013-12-09 16:32 ` Till Kamppeter
1 sibling, 0 replies; 4+ messages in thread
From: Michael Sweet @ 2013-12-09 15:55 UTC (permalink / raw)
To: Tobias Hoffmann
Cc: printing-architecture@lists.linux-foundation.org, Till Kamppeter
[-- Attachment #1: Type: text/plain, Size: 2423 bytes --]
Till,
What Tobias said...
On Dec 6, 2013, at 6:01 PM, Tobias Hoffmann <lprint-list@thax.hardliners.org> wrote:
>
> Am 05.12.2013 23:44 schrieb "Till Kamppeter" <till.kamppeter@gmail.com>:
> >
> > Hi,
> >
> > I got the following bug report on Ubuntu:
> >
> > https://bugs.launchpad.net/ubuntu/+source/poppler/+bug/1243484
> >
> > a user complais that when he sends a job with the "landscape" option it
> > does not come out correctly.
> >
> > Now I want to know exactly what "landscape" and "orientation-requested"
> > should do exactly, to fix cups-filters.
> >
> > There is some discussion in the bug report and following RFC 2911 I come
> > to the conclusion that PDF files and also PostScript files which come
> > from apps as a print job have their layout and page geometry already
> > determined by the app and so a filter like pdftopdf should ignore
> > "landscape" and "orientation-requested". For PostScript files (filters
> > pstopdf and pstops) the given "PageSize", "landscape", and
> > "orientation-requested" settings should only be used as default for
> > pages without geometry definition (like the old PostScript CUPS test
> > page) and be ignored by pages which already come with complete geometry
> > info (like pages of a usual print job from an app). Filters for text and
> > image jobs (texttopdf, imagetopdf) should use "landscape" and
> > "orientation-requested" for the layout of the output.
> >
> > Am I correct?
>
> I don't think so.
> E.g. for N-up, fitplot, adding of borders the pdftopdf filter looks at the final destination size. This size is determined by page-size, *together* with orientation-requested. pdftopdf also makes sure that filters like pdftoXYZ only get portrait pdfs as input, so that these can rasterize from to bottom and get the correct raster pixel ordering without thinking about rotations (e.g. an inkjet still prints along the short edge, regardless whether the input is landscape or not).
>
> Two examples with texttopdf:
> 1) A4, portrait: output pdf has (roughly) 21x29 cm, pdftopdf keeps it, pdftoijs renders (e.g.) 1000x1400 pixel output "image" for the printer.
> 2) A4, landscape: output pdf has 29x21 cm, pdftopdf rotates it (in the ppd-specified normal_landscape direction), pdftoijs renders 1000x1400 pixels.
>
> Tobias
>
_______________________________________________________________
Michael Sweet, Senior Printing System Engineer, PWG Chair
[-- Attachment #2: Type: text/html, Size: 3511 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [Printing-architecture] What should the "landscape" and "orientation-requested" options exactly do?
2013-12-06 23:01 ` Tobias Hoffmann
2013-12-09 15:55 ` Michael Sweet
@ 2013-12-09 16:32 ` Till Kamppeter
1 sibling, 0 replies; 4+ messages in thread
From: Till Kamppeter @ 2013-12-09 16:32 UTC (permalink / raw)
To: Tobias Hoffmann; +Cc: Open Printing
On 12/07/2013 12:01 AM, Tobias Hoffmann wrote:
> I don't think so.
> E.g. for N-up, fitplot, adding of borders the pdftopdf filter looks at
> the final destination size. This size is determined by page-size,
> *together* with orientation-requested. pdftopdf also makes sure that
> filters like pdftoXYZ only get portrait pdfs as input, so that these can
> rasterize from to bottom and get the correct raster pixel ordering
> without thinking about rotations (e.g. an inkjet still prints along the
> short edge, regardless whether the input is landscape or not).
>
> Two examples with texttopdf:
> 1) A4, portrait: output pdf has (roughly) 21x29 cm, pdftopdf keeps it,
> pdftoijs renders (e.g.) 1000x1400 pixel output "image" for the printer.
> 2) A4, landscape: output pdf has 29x21 cm, pdftopdf rotates it (in the
> ppd-specified normal_landscape direction), pdftoijs renders 1000x1400
> pixels.
>
> Tobias
>
Thank you very much for your help. So now the handling of "landscape"
and "orientation-requested" in cups-filters should be correct: ...topdf
filters use it for generating layout, pdftopdf for n-up and fitplot. My
recent test files also show that pdftopdf does not break anything when
landscape" or "orientation-requested" is supplied and not n-up or fitplot.
Tobias, can you also have a look into fixing the handling of collate by
pdftopdf (see the other thread on this list)? Thanks.
Till
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2013-12-09 16:32 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-12-05 22:44 [Printing-architecture] What should the "landscape" and "orientation-requested" options exactly do? Till Kamppeter
2013-12-06 23:01 ` Tobias Hoffmann
2013-12-09 15:55 ` Michael Sweet
2013-12-09 16:32 ` Till Kamppeter
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.