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

Any way to add vector images to Migradoc?
http://forum.pdfsharp.com/viewtopic.php?f=2&t=4102
Page 1 of 1

Author:  iluvathar [ Thu Feb 27, 2020 10:36 am ]
Post subject:  Any way to add vector images to Migradoc?

Well when I used pdfsharp I was able to add vector image by adding a pdf inside pdf. Is there any workaround for Migradoc?

Author:  Thomas Hoevel [ Thu Feb 27, 2020 2:28 pm ]
Post subject:  Re: Any way to add vector images to MigraDoc?

MigraDoc uses PDFsharp and you can also use PDF inside PDF.

Author:  iluvathar [ Fri Feb 28, 2020 9:44 am ]
Post subject:  Re: Any way to add vector images to Migradoc?

Ok than I messed everything up, I fought I can only use MigraDoc inside PDFsharp, not the other way around.

So I can use PDFsharp and use MigraDoc renderer? I want to use a vector image in my header. If I render with PDFsharp I loose automatic pagebreaks, which is kinda the point of me using MigraDoc, otherwise I will just use my old PDFsharp code.

Author:  Wano [ Tue Dec 05, 2023 7:58 am ]
Post subject:  Re: Any way to add vector images to Migradoc?

It would be great to provide some code examples for including vector-graphics in a migradoc-document.
Do I have to add a placeholder in the migraDoc definition and then catch a render-event?

Author:  TH-Soft [ Tue Dec 05, 2023 12:20 pm ]
Post subject:  Re: Any way to add vector images to Migradoc?

Wano wrote:
Do I have to add a placeholder in the MigraDoc definition and then catch a render-event?
This is one way. No render event, you render the pages one by one. Then you can look for placeholders and draw anything you like using PDFsharp functions.

It is simpler if your "vector image" is a PDF, as stated in the first post.

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