PDFsharp & MigraDoc Foundation

PDFsharp - A .NET library for processing PDF & MigraDoc Foundation - Creating documents on the fly
It is currently Sun Nov 17, 2019 9:50 am

All times are UTC


Forum rules


Please read this before posting on this forum: Forum Rules



Post new topic Reply to topic  [ 2 posts ] 
Author Message
PostPosted: Fri Oct 18, 2019 3:16 pm 
Offline

Joined: Fri Oct 18, 2019 3:12 pm
Posts: 1
Hello,
I have a logo called; logo.jpg
I want to add the logo to page header or footer
I have the logo inside resources folder in my project
I tried the code: footer.AddImage("Resources.logo.jpg");
when I run the script, and the pdf file is generated, I got that " image not found"
can you please help me in solving this issue


Top
 Profile  
Reply with quote  
PostPosted: Fri Oct 18, 2019 8:44 pm 
Offline
PDFsharp Expert
User avatar

Joined: Sat Mar 14, 2015 10:15 am
Posts: 502
Location: CCAA
Hi!

Read the resource into a byte array and convert it to string.
See also:
http://pdfsharp.net/wiki/MigraDoc_FilelessImages.ashx

_________________
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  [ 2 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 2 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