~ubuntu-branches/ubuntu/jaunty/cups/jaunty

« back to all changes in this revision

Viewing changes to debian/local/filters/pdf-filters/pdftopdf/P2PCatalog.h

  • Committer: Bazaar Package Importer
  • Author(s): Martin Pitt, Till Kamppeter, Martin Pitt
  • Date: 2009-02-15 18:39:03 UTC
  • mfrom: (6.1.30 jaunty)
  • Revision ID: james.westby@ubuntu.com-20090215183903-i0nhvqyqj4vyn52a
Tags: 1.3.9-13
[ Till Kamppeter ]
* debian/local/filters/pdf-filters/filter/imagetopdf.c: Added support for
  the new "fit-to-page" option (new, more intuitive name for "fitplot").
* debian/filters/pstopdf: Only apply paper size if the "fitplot" or the
  "fit-to-page" option is set.
* debian/local/filters/cpdftocps: Only the last digit of the number of
  copies was used (LP: #309314).
* debian/local/filters/pdf-filters/pdftopdf/pdftopdf.cxx: Do not preceed the
  PDF output with a newline (LP: #303691). Only impose the page size from
  the PPD file to all pages if the "fitplot" or the "fit-to-page" option is 
  set. This prevented from automatic paper tray switching to the correct paper
  sizes when a multiple-page-size document is printed (partial fix for
  LP: #310575).
* debian/patches/pdftops-cups-1.4.dpatch: Updated from CUPS 1.4 SVN. Contains
  fixes for multiple-page-size document printing (partial fix for
  LP: #310575).
* debian/patches/pdftops-dont_fail_on_cancel.dpatch: Removed, should be
  fixed in the new upstream version of pdftops.

[ Martin Pitt ]
* debian/patches/pdftops-cups-1.4.dpatch: Add definition of
  HAVE_PDFTOPS and CUPS_PDFTOPS, so that the filter actually gets
  again built with pdftops support. (Fixes Till's change from above).

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
 
 
3
Copyright (c) 2006-2007, BBR Inc.  All rights reserved.
 
4
 
 
5
Permission is hereby granted, free of charge, to any person obtaining
 
6
a copy of this software and associated documentation files (the
 
7
"Software"), to deal in the Software without restriction, including
 
8
without limitation the rights to use, copy, modify, merge, publish,
 
9
distribute, sublicense, and/or sell copies of the Software, and to
 
10
permit persons to whom the Software is furnished to do so, subject to
 
11
the following conditions:
 
12
 
 
13
The above copyright notice and this permission notice shall be included
 
14
in all copies or substantial portions of the Software.
 
15
 
 
16
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
 
17
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
 
18
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
 
19
IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
 
20
CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
 
21
TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
 
22
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 
23
 
 
24
*/
 
25
/*
 
26
 P2PCatalog.h
 
27
 pdftopdf document catalog
 
28
*/
 
29
#ifndef _P2PCATALOG_H_
 
30
#define _P2PCATALOG_H_
 
31
 
 
32
#include "goo/gtypes.h"
 
33
#include "goo/gmem.h"
 
34
#include "Object.h"
 
35
#include "Catalog.h"
 
36
#include "P2PObject.h"
 
37
#include "P2PPageTree.h"
 
38
#include "P2POutputStream.h"
 
39
#include "XRef.h"
 
40
#include "Page.h"
 
41
#include "P2PDoc.h"
 
42
 
 
43
class P2PCatalog: public P2PObject {
 
44
public:
 
45
  P2PCatalog(Catalog *orgCatalogA, XRef *xrefA);
 
46
  virtual ~P2PCatalog();
 
47
  /* output self and all pages */
 
48
  virtual void output(P2POutputStream *str, int copies, GBool collate);
 
49
  int nup(int n, PDFRectangle *box, unsigned int borderFlag,
 
50
    unsigned int layout, int xpos, int ypos);
 
51
  void select(const char *pageSet, const char *pageRanges);
 
52
  void fit(PDFRectangle *box, double zoom);
 
53
  void mirror();
 
54
  void rotate(int orientation);
 
55
  void position(PDFRectangle *box, int xpos, int ypos);
 
56
  void scale(double zoom);
 
57
  void autoRotate(PDFRectangle *box);
 
58
  void setMediaBox(PDFRectangle *mediaBoxA);
 
59
  int getNumberOfPages();
 
60
private:
 
61
  XRef *xref;
 
62
  Catalog *orgCatalog;
 
63
  P2PPageTree *pageTree;
 
64
  void outputSelf(P2POutputStream *str);
 
65
};
 
66
 
 
67
#endif