Code

Require a pageBox in the constructor for GfxState so that we do not always need to...
authormiklosh <miklosh@users.sourceforge.net>
Sun, 19 Aug 2007 11:42:24 +0000 (11:42 +0000)
committermiklosh <miklosh@users.sourceforge.net>
Sun, 19 Aug 2007 11:42:24 +0000 (11:42 +0000)
src/extension/internal/pdfinput/pdf-parser.cpp
src/extension/internal/pdfinput/pdf-parser.h

index 49c551be5efd32528d6faf6a64282fa68cf3eea6..121e6aa471b54d265508ff6929c7b3b012039913 100644 (file)
@@ -257,7 +257,8 @@ PdfOperator PdfParser::opTab[] = {
 //------------------------------------------------------------------------
 
 PdfParser::PdfParser(XRef *xrefA, Inkscape::Extension::Internal::SvgBuilder *builderA,
-                     int pageNum, int rotate, Dict *resDict, PDFRectangle *cropBox) {
+                     int pageNum, int rotate, Dict *resDict,
+                     PDFRectangle *box, PDFRectangle *cropBox) {
 
   int i;
 
@@ -269,7 +270,7 @@ PdfParser::PdfParser(XRef *xrefA, Inkscape::Extension::Internal::SvgBuilder *bui
   res = new GfxResources(xref, resDict, NULL);
 
   // initialize
-  state = new GfxState(72.0, 72.0, cropBox, rotate, gTrue);
+  state = new GfxState(72.0, 72.0, box, rotate, gTrue);
   clipHistory = new ClipHistoryEntry();
   setDefaultApproximationPrecision();
   fontChanged = gFalse;
index 9caa01106487a464aeb4d8375e66ecf4a5cd4381..a40532fca24ead3caa7792df8439e3c7397f8226 100644 (file)
@@ -150,7 +150,7 @@ public:
 
   // Constructor for regular output.
   PdfParser(XRef *xrefA, SvgBuilder *builderA, int pageNum, int rotate,
-            Dict *resDict, PDFRectangle *cropBox);
+            Dict *resDict, PDFRectangle *box, PDFRectangle *cropBox);
 
   // Constructor for a sub-page object.
   PdfParser(XRef *xrefA, Inkscape::Extension::Internal::SvgBuilder *builderA,