PDFsharp & MigraDoc Foundation
http://forum.pdfsharp.de/

set text in PDF with more then one page
http://forum.pdfsharp.de/viewtopic.php?f=2&t=2253
Page 1 of 1

Author:  jwe [ Mon Dec 03, 2012 8:09 am ]
Post subject:  set text in PDF with more then one page

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

Author:  Thomas Hoevel [ Mon Dec 03, 2012 11:20 am ]
Post subject:  Re: set text in PDF with more then one page

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.

Author:  jwe [ Tue Dec 04, 2012 7:32 am ]
Post subject:  Re: set text in PDF with more then one page

Hi Thomas, great. Thank you.
It is also the solution for my problems with splitting.


Regards Jürgen

Page 1 of 1 All times are UTC
Powered by phpBB® Forum Software © phpBB Group
https://www.phpbb.com/