3
Copyright (c) 2006-2007, BBR Inc. All rights reserved.
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:
13
The above copyright notice and this permission notice shall be included
14
in all copies or substantial portions of the Software.
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.
27
pdftopdf document catalog
29
#ifndef _P2PCATALOG_H_
30
#define _P2PCATALOG_H_
32
#include "goo/gtypes.h"
36
#include "P2PObject.h"
37
#include "P2PPageTree.h"
38
#include "P2POutputStream.h"
43
class P2PCatalog: public P2PObject {
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);
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();
63
P2PPageTree *pageTree;
64
void outputSelf(P2POutputStream *str);