Hi, This should be quite easy to do using PoDoFo. You can iterate through all pages in a document and use PdfPage::GetPageSize() to determine the size. The PdfPage size is returned in PDF units, but PdfPage::CreateStandardPageSize( const EPdfPageSize ePageSize, bool bLandscape ) should give you an idea how to convert these to values like A4, A3 etc. . The page is landscape if the width is larget than the height.
If you know the size, you can create a PdfPainter and simply draw on the page. The watermark test included in PoDoFo should be a pretty good example for what you need. If you have more concrete questions feel free to ask on this list. best regards, Dom > -----Ursprüngliche Nachricht----- > Von: "EXTERNAL Loch Sebastian (Firma Ferchau, BhP/TEF17)" <[EMAIL PROTECTED]> > Gesendet: 07.05.08 11:42:28 > An: <[email protected]> > CC: [EMAIL PROTECTED] > Betreff: [Podofo-users] Footer on different paper sizes > Hello all, > > I need to put a footer/stamp before viewing and printing pdf documents > (single > and multi-page documents). > > The existing documents could have been different sizes/formats from A0 > to A4. > They should be viewed in original size, but printed in A3 or A4 > depending > on the printer. > > Probably we need to set the font size depending on the format size. > > How can I found out the size and orientation of the pdf document? > Is there an easy way to put a footer into an pdf page, when multiple > pages exist on every page? > > Thanks! > > Best Regards > Sebastian > > ------------------------------------------------------------------------- > This SF.net email is sponsored by the 2008 JavaOne(SM) Conference > Don't miss this year's exciting event. There's still time to save $100. > Use priority code J8TL2D2. > http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone > _______________________________________________ > Podofo-users mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/podofo-users > _________________________________________________________________________ In 5 Schritten zur eigenen Homepage. Jetzt Domain sichern und gestalten! Nur 3,99 EUR/Monat! http://www.maildomain.web.de/?mc=021114 ------------------------------------------------------------------------- This SF.net email is sponsored by the 2008 JavaOne(SM) Conference Don't miss this year's exciting event. There's still time to save $100. Use priority code J8TL2D2. http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone _______________________________________________ Podofo-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/podofo-users
