PDFsharp & MigraDoc Foundation

PDFsharp - A .NET library for processing PDF & MigraDoc Foundation - Creating documents on the fly
It is currently Thu Jul 11, 2024 10:15 pm

All times are UTC


Forum rules


Please read this before posting on this forum: Forum Rules



Post new topic Reply to topic  [ 3 posts ] 
Author Message
PostPosted: Wed Jul 13, 2011 1:56 pm 
Offline

Joined: Wed Jul 13, 2011 12:42 pm
Posts: 4
Hi,

I use a table that generates several pages and I need to put a different footer on the last page.
and because all pages are one section, so I do not know how to change it.

Thanks,

Falki


Top
 Profile  
Reply with quote  
PostPosted: Wed Jul 20, 2011 1:32 pm 
Offline

Joined: Wed Jul 20, 2011 10:59 am
Posts: 2
Can you just use something like pdfDocument.Pages(pdfDocument.Pages.Count - 1) once you've finished adding all your pages?

E.g. (VB)
Dim pdfDoc as pdfDocument = New pdfDocument()
Dim gfx as xGraphics = New xGraphics()

...add pages here...

gfx = xGraphics.FromPdfPage(pdfDoc.Pages(pdfDoc.Pages.Count - 1))

gfx.DrawString("Final page footer",...)


Top
 Profile  
Reply with quote  
PostPosted: Fri Jul 22, 2011 1:14 pm 
Offline

Joined: Wed Jul 13, 2011 12:42 pm
Posts: 4
thank, but I need to use migradoc, because in pdfSharp it would be very difficult


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC


Who is online

Users browsing this forum: Google [Bot] and 39 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Privacy Policy, Data Protection Declaration, Impressum
Powered by phpBB® Forum Software © phpBB Group