Aurigma Forums
»
Graphics Mill
»
Discussions – Graphics Mill
»
EPS file error - 'reader.Height' threw an exception of type 'System.NullReferenceException'
Rank: Newbie
Groups: Guest
Joined: 1/18/2017(UTC) Posts: 1
|
When I try this code, it works, the height is returned for the image. Code:using (var reader = new EpsReader("../../../../_Input/Seal.eps"))
{
Console.WriteLine("reader.Height: {0}", reader.Height);
}
When I run this code, most of the properties throw a null reference exception. Code:using (var reader = new EpsReader("../../../../_Input/sample-file.eps"))
{
Console.WriteLine("reader.Height: {0}", reader.Height);
}
Here is an example of the exception. 'reader.Height' threw an exception of type 'System.NullReferenceException' I've attached the file I'm having an issue with. sample-file.zip (114kb) downloaded 3 time(s). Any recommendations on how to get around this issue. I did use GhostScript and was able to process the file. Edited by moderator Thursday, January 19, 2017 7:17:25 PM(UTC)
| Reason: Not specified
|
|
|
|
Rank: Advanced Member
Groups: Guest
Joined: 7/28/2003(UTC) Posts: 1,660
Thanks: 5 times Was thanked: 76 time(s) in 74 post(s)
|
Graphics Mill reads a TIFF preview only from the EPS format. The SDK can't interpret and render an arbitrary EPS file. The provided EPS file (sample-file.zip) doesn't contain a TIFF preview. However, Graphics Mill doesn't handle it correctly and raises the System.NullReferenceException exception. We will fix the problem in the next release (Graphics Mill will raise the correct exception), Aurigma Bug #0023002 Edited by user Friday, January 20, 2017 4:12:01 AM(UTC)
| Reason: Not specified |
Best regards, Fedor Skvortsov
|
|
|
|
Rank: Advanced Member
Groups: Guest
Joined: 7/28/2003(UTC) Posts: 1,660
Thanks: 5 times Was thanked: 76 time(s) in 74 post(s)
|
The problem was solved in the recently released version 9.0.33. |
Best regards, Fedor Skvortsov
|
|
|
|
Aurigma Forums
»
Graphics Mill
»
Discussions – Graphics Mill
»
EPS file error - 'reader.Height' threw an exception of type 'System.NullReferenceException'
Forum Jump
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.