PDFsharp & MigraDoc Forum

PDFsharp - A .NET library for processing PDF & MigraDoc - Creating documents on the fly
It is currently Sat Sep 13, 2025 10:52 pm

All times are UTC


Forum rules


Please read this before posting on this forum: Forum Rules

Also see our new Tailored Support & Services site.



Post new topic Reply to topic  [ 5 posts ] 
Author Message
PostPosted: Wed Aug 19, 2015 3:15 pm 
Offline

Joined: Wed Aug 19, 2015 3:03 pm
Posts: 3
I use for years PDFsharp, and I found out a few days ago that only in Windows 7 when the images are pasted through DrawImage not taken along the length of the image but only a part.

I tried to use PDFsharp 1.50 beta only tells me that this code Impossible convert from System.Drawing.SolidBrush to XBrush but that does work with PDFsharp 1.32

Code:
  System.Drawing.SolidBrush brushEti = new System.Drawing.SolidBrush(etimri.txt1.ForeColor);
  XBrush brushEti1 = (XBrush)brushEti;


Top
 Profile  
Reply with quote  
PostPosted: Thu Aug 20, 2015 7:53 am 
Offline
PDFsharp Guru
User avatar

Joined: Mon Oct 16, 2006 8:16 am
Posts: 3135
Location: Cologne, Germany
marco.bruni.sys wrote:
I use for years PDFsharp, and I found out a few days ago that only in Windows 7 when the images are pasted through DrawImage not taken along the length of the image but only a part.
I'm afraid I do not understand what the problem really is. An SSCCE would help. Or maybe a PDF file created under Windows 7 and one from a different OS for comparison.
Sounds like a Windows problem.
See also:
viewtopic.php?f=2&t=832


marco.bruni.sys wrote:
I tried to use PDFsharp 1.50 beta only tells me that this code Impossible convert from System.Drawing.SolidBrush to XBrush but that does work with PDFsharp 1.32
You need a GDI+ build of PDFsharp for this conversion. This applies to PDFsharp 1.32 and to PDFsharp 1.50 beta, no change in PDFsharp here.

_________________
Regards
Thomas Hoevel
PDFsharp Team


Top
 Profile  
Reply with quote  
PostPosted: Thu Aug 20, 2015 8:34 am 
Offline

Joined: Wed Aug 19, 2015 3:03 pm
Posts: 3
Thomas Hoevel wrote:
marco.bruni.sys wrote:
I use for years PDFsharp, and I found out a few days ago that only in Windows 7 when the images are pasted through DrawImage not taken along the length of the image but only a part.
I'm afraid I do not understand what the problem really is. An SSCCE would help. Or maybe a PDF file created under Windows 7 and one from a different OS for comparison.
Sounds like a Windows problem.
See also:
viewtopic.php?f=2&t=832

I'm sorry I thought I was clear :-)

I use a software that PDFsharp (until version 1.32) and when I insert a jpeg image to a PDF by DrawImage in Windows XP is inserted correctly in Windows 7 while only a part, is cut.

Googoled I read that maybe the beta version of PDFsharp 1.50 beta solves this problem, right?

marco.bruni.sys wrote:
I tried to use PDFsharp 1.50 beta only tells me that this code Impossible convert from System.Drawing.SolidBrush to XBrush but that does work with PDFsharp 1.32
You need a GDI+ build of PDFsharp for this conversion. This applies to PDFsharp 1.32 and to PDFsharp 1.50 beta, no change in PDFsharp here.


I'm sorry I did not understand what you mean by You need a GDI+ build of PDFsharp for this conversion
?

Thank you


Top
 Profile  
Reply with quote  
PostPosted: Thu Aug 20, 2015 8:54 am 
Offline
PDFsharp Guru
User avatar

Joined: Mon Oct 16, 2006 8:16 am
Posts: 3135
Location: Cologne, Germany
marco.bruni.sys wrote:
I'm sorry I thought I was clear :-)
You did not mention Windows XP, you just wrote it doesn't work with Windows 7 ("only in Windows 7").
The current version is Windows 10 and support for XP ended more than 15 months ago. Reading "only in Windows 7" I assumed it was working with Windows 8 and 8.1.
If it is the old known bug then it will not occur "only in Windows 7" but also in Windows 8 and 8.1, maybe even in Windows 10 (not yet tested).
It should work with PDFsharp 1.50 beta.


marco.bruni.sys wrote:
I'm sorry I did not understand what you mean by You need a GDI+ build of PDFsharp for this conversion?
There are PDFsharp versions for Silverlight, for GDI, for WPF, and a platform-independent core build. You need the build for GDI.
See also:
https://www.nuget.org/packages?q=pdfsharp

_________________
Regards
Thomas Hoevel
PDFsharp Team


Top
 Profile  
Reply with quote  
PostPosted: Thu Aug 20, 2015 9:44 am 
Offline

Joined: Wed Aug 19, 2015 3:03 pm
Posts: 3
Thomas Hoevel wrote:
marco.bruni.sys wrote:
I'm sorry I thought I was clear :-)
You did not mention Windows XP, you just wrote it doesn't work with Windows 7 ("only in Windows 7").
The current version is Windows 10 and support for XP ended more than 15 months ago. Reading "only in Windows 7" I assumed it was working with Windows 8 and 8.1.
If it is the old known bug then it will not occur "only in Windows 7" but also in Windows 8 and 8.1, maybe even in Windows 10 (not yet tested).
It should work with PDFsharp 1.50 beta.


marco.bruni.sys wrote:
I'm sorry I did not understand what you mean by You need a GDI+ build of PDFsharp for this conversion?
There are PDFsharp versions for Silverlight, for GDI, for WPF, and a platform-independent core build. You need the build for GDI.
See also:
https://www.nuget.org/packages?q=pdfsharp


I solved thanks to the library https://www.nuget.org/packages/PDFsharp ... .3638-beta

Thank you


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 62 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