PDFsharp & MigraDoc Foundation

PDFsharp - A .NET library for processing PDF & MigraDoc Foundation - Creating documents on the fly
It is currently Fri Jul 12, 2024 9:54 pm

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: Thu Feb 27, 2020 10:36 am 
Offline

Joined: Tue Feb 18, 2020 7:40 pm
Posts: 11
Well when I used pdfsharp I was able to add vector image by adding a pdf inside pdf. Is there any workaround for Migradoc?


Top
 Profile  
Reply with quote  
PostPosted: Thu Feb 27, 2020 2:28 pm 
Offline
PDFsharp Guru
User avatar

Joined: Mon Oct 16, 2006 8:16 am
Posts: 3101
Location: Cologne, Germany
MigraDoc uses PDFsharp and you can also use PDF inside PDF.

_________________
Regards
Thomas Hoevel
PDFsharp Team


Top
 Profile  
Reply with quote  
PostPosted: Fri Feb 28, 2020 9:44 am 
Offline

Joined: Tue Feb 18, 2020 7:40 pm
Posts: 11
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.


Top
 Profile  
Reply with quote  
PostPosted: Tue Dec 05, 2023 7:58 am 
Offline

Joined: Tue Dec 05, 2023 7:47 am
Posts: 2
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?


Top
 Profile  
Reply with quote  
PostPosted: Tue Dec 05, 2023 12:20 pm 
Offline
PDFsharp Expert
User avatar

Joined: Sat Mar 14, 2015 10:15 am
Posts: 951
Location: CCAA
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.

_________________
Best regards
Thomas
(Freelance Software Developer with several years of MigraDoc/PDFsharp experience)


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