~ubuntu-branches/debian/experimental/cups-filters/experimental

« back to all changes in this revision

Viewing changes to pdftopdf/P2PCatalog.h

  • Committer: Package Import Robot
  • Author(s): Till Kamppeter
  • Date: 2012-07-28 11:54:32 UTC
  • mfrom: (1.1.17) (22 sid)
  • mto: This revision was merged to the branch mainline in revision 28.
  • Revision ID: package-import@ubuntu.com-20120728115432-p5fgn9hv6du22cqa
Tags: 1.0.20-1
* New upstream release
   - pdftops: Added another workaround for Kyocera printers: Some
     models get very slow on images which request interpolation,
     so now we remove the image interpolation requests by additional
     PostScript code only inserted for Kyocera printers (LP: #1026974).
   - Made the Poppler-based filters pdftopdf and pdftoopvp build with
     both Poppler 0.18.x and 0.20.x (Upstream bug #1055).
   - Fixes according to Coverity scan results (Upstream bug #1054).
   - Switched build system to autotools. This especially fixes several
     build problems in Gentoo. Also build-tested with CUPS 1.6.0b1.
   - Fixes for compatibility with clang/gcc-4.7.
   - textonly: Filter did not work as a pipe with copies=1 (Upstream bug
     #1032).
   - texttopdf: Avoid trimming the results of FcFontSort(), as this may
     miss some reasonable candidates under certain circumstances. BTW,
     fix passing a non-pointer as a pointer to "result" (Closes: #670055).
   - Corrected documentation. The option for the maximum image rendering
     resolution in pdftops is "pdftops-max-image-resolution", not
     "pdftops-max-image-resolution-default".
* debian/patches/fcfontsort-no-trim.patch: Removed, fixed upstream.
* debian/rules: Updated options for ./configure and make for the new autotools
  build system.
* debian/watch: Switched to bz2 upstream packages.
* debian/rules, debian/copyright, debian/cups-filters.docs: Updated for
  renamed documentation files.
* debian/control, debian/libfontembed1.install,
  debian/libfontembed-dev.install: Added new binary packages for libfontembed.
* debian/copyright: Updated for recent file additions, and rearrangement of
  directories.
* debian/control: Added missing build dependency on libpoppler-cpp-dev.
* debian/copyright: Corrections (Closes: #682752).

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