PDFsharp & MigraDoc Foundation

PDFsharp - A .NET library for processing PDF & MigraDoc Foundation - Creating documents on the fly
It is currently Sun Apr 28, 2024 11:30 am

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: Mon Dec 03, 2012 8:09 am 
Offline

Joined: Fri Nov 30, 2012 7:04 am
Posts: 3
Hello,
I have PDF Files mit 20 and more Pages.
I will set text on all pages (it is always the same text).

Is this the right source? (here on page three)
pdf_file_page = input_pdf_file.Pages(2)
gfx.DrawString(auftrags_nr, font, XBrushes.Black, xpos_auftrags_nr, ypos_auftrags_nr, XStringFormats.Default)
input_pdf_file.Save(path_output & "out_test.pdf")

With one page it works fine, no problem.
But how can I set text on page 15?

Regards Jürgen


Top
 Profile  
Reply with quote  
PostPosted: Mon Dec 03, 2012 11:20 am 
Offline
PDFsharp Guru
User avatar

Joined: Mon Oct 16, 2006 8:16 am
Posts: 3096
Location: Cologne, Germany
Hi, Jürgen,

Please check the Watermark sample:
http://www.pdfsharp.net/wiki/Watermark-sample.ashx

Full source code included with PDFsharp.

Open the file, modify all pages, then save the file.

_________________
Regards
Thomas Hoevel
PDFsharp Team


Top
 Profile  
Reply with quote  
PostPosted: Tue Dec 04, 2012 7:32 am 
Offline

Joined: Fri Nov 30, 2012 7:04 am
Posts: 3
Hi Thomas, great. Thank you.
It is also the solution for my problems with splitting.


Regards Jürgen


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: No registered users and 317 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