PDFsharp & MigraDoc Foundation
https://forum.pdfsharp.net/

Migradoc - Open existing PDF
https://forum.pdfsharp.net/viewtopic.php?f=2&t=1164
Page 1 of 1

Author:  foxwoodDesign [ Mon May 03, 2010 9:13 am ]
Post subject:  Migradoc - Open existing PDF

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

Author:  Thomas Hoevel [ Mon May 03, 2010 9:57 am ]
Post subject:  Re: Migradoc - Open existing PDF

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

Author:  foxwoodDesign [ Mon May 03, 2010 3:49 pm ]
Post subject:  Re: Migradoc - Open existing PDF

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

Author:  Thomas Hoevel [ Mon May 03, 2010 4:08 pm ]
Post subject:  Re: Migradoc - Open existing PDF

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

Author:  foxwoodDesign [ Mon May 03, 2010 5:45 pm ]
Post subject:  Re: Migradoc - Open existing PDF

FANTASTIC - That did the trick.

You've made my day.

Regards

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