Show
Ignore:
Timestamp:
06/11/06 14:46:38 (2 years ago)
Author:
jordi
Message:

Added a new class named JobPrint? whose duty is to render the current document to PostScript? and print the resultant file. It already renders the requested pages (Note: the setUpPageRange is horrible) to PostScript?.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/src/PDFDocument.h

    r200 r222  
    2525typedef struct _PopplerLinkMapping PopplerLinkMapping; 
    2626typedef struct _PopplerPage PopplerPage; 
     27typedef struct _PopplerPSFile PopplerPSFile; 
    2728 
    2829namespace ePDFView  
     
    4041            ~PDFDocument (void); 
    4142 
     43            IDocument *copy (void) const; 
    4244            GList *findTextInPage (gint pageNum, const gchar *textToFind); 
    4345            gboolean isLoaded (void); 
    4446            gboolean loadFile (const gchar *filename, const gchar *password,  
    4547                           GError **error); 
    46             void getPageSizeForPage (gint pageNum, gdouble *width,  
     48            void getPageSizeForPage (gint pageNum, gdouble *width, 
    4749                                     gdouble *height); 
     50            void outputPostscriptBegin (const gchar *fileName, guint numOfPages, 
     51                                        gfloat pageWidth, gfloat pageHeight); 
     52            void outputPostscriptEnd (void); 
     53            void outputPostscriptPage (guint pageNum); 
     54 
    4855            DocumentPage *renderPage (gint pageNum); 
    4956            gboolean saveFile (const gchar *fileName, GError **error); 
     
    5259            /// The PDF document. 
    5360            PopplerDocument *m_Document; 
     61            /// The output to PostScript. 
     62            PopplerPSFile *m_PostScript; 
    5463 
    5564            IDocumentLink *createDocumentLink (const PopplerLinkMapping *link,