PDFsharp & MigraDoc Foundation

PDFsharp - A .NET library for processing PDF & MigraDoc Foundation - Creating documents on the fly
It is currently Sun Jun 16, 2024 8:07 am

All times are UTC


Forum rules


Please read this before posting on this forum: Forum Rules



Post new topic Reply to topic  [ 5 posts ] 
Author Message
PostPosted: Mon May 03, 2010 9:13 am 
Offline

Joined: Thu Apr 22, 2010 10:25 am
Posts: 14
Hi,

I am currently using both Migradoc and PDF sharp to create a catalogue page - This uses migradoc for the text and tables and PDFsharp to load in the images.

The way I am doing this is by creating a new document using Migradoc to first create the document - write in the content, save the PDF, the PDFsharp opens the PDF and does the images.

I have got to a point where I need to use migraDoc to write text on top of a shape drawn in PDFsharp, but I cannot find anyway of opening an existing PDF in migradoc.

Please can you assist in either

a) Opening an existing PDF in migradoc.
or
b) creating a number of rectangles in the background in Migradoc when I first create the document.

I eagerly await your response.

Kind regards

Ben Wright


Top
 Profile  
Reply with quote  
PostPosted: Mon May 03, 2010 9:57 am 
Offline
PDFsharp Guru
User avatar

Joined: Mon Oct 16, 2006 8:16 am
Posts: 3100
Location: Cologne, Germany
Hi, Ben!
foxwoodDesign wrote:
I have got to a point where I need to use migraDoc to write text on top of a shape drawn in PDFsharp, but I cannot find anyway of opening an existing PDF in migradoc.

There's no direct way to do this ...
... so open the file with PDFsharp:
http://www.pdfsharp.net/wiki/MixMigraDo ... ample.ashx

_________________
Regards
Thomas Hoevel
PDFsharp Team


Top
 Profile  
Reply with quote  
PostPosted: Mon May 03, 2010 3:49 pm 
Offline

Joined: Thu Apr 22, 2010 10:25 am
Posts: 14
Hi

Thank you for your swift response.

I am not quite sure I understand.

My process currently does the following:

Create File with Migradoc
Write in text and tables
Save File

Open saved file in PDFsharp
Draw in images
Save File


I can draw the shapes in PDFsharp but the shapes need to be BEHIND the text drawn using Migradoc.

Can I use Migradoc to write text on a PDF that was opened in PDFsharp - I am sorry I do not quite understand how to achieve this.

Regards


Top
 Profile  
Reply with quote  
PostPosted: Mon May 03, 2010 4:08 pm 
Offline
PDFsharp Guru
User avatar

Joined: Mon Oct 16, 2006 8:16 am
Posts: 3100
Location: Cologne, Germany
When modifying PDF pages, you can specify whether your changes are appended (showing on top) or prepending (showing behind existing items).

The Watermark samples draw behind:
http://www.pdfsharp.net/wiki/Watermark-sample.ashx

_________________
Regards
Thomas Hoevel
PDFsharp Team


Top
 Profile  
Reply with quote  
PostPosted: Mon May 03, 2010 5:45 pm 
Offline

Joined: Thu Apr 22, 2010 10:25 am
Posts: 14
FANTASTIC - That did the trick.

You've made my day.

Regards


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

All times are UTC


Who is online

Users browsing this forum: Google [Bot] and 178 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