Re: [iText-questions] different source

2014-03-27 Thread Raf Hens
On 26/03/2014 9:47, Ate Peeringa wrote:
 The sourcecode of iTextsharp core is different than the dll version 5.5.0
 The Function iTextSharp.text.Image.GetInstance(System.Drawing.Image,
 System.Drawing.Imaging.ImageFormat) is missing from the source code!
 Can i get a source with the function in place?

This method is in the source code.  You can see it here:
http://sourceforge.net/p/itextsharp/code/HEAD/tree/tags/iTextSharp_5_5_0/src/core/iTextSharp/text/Image.cs#l734

Recently we started also shipping a build without System.Drawing 
dependencies.  The default build still has System.Drawing, for backward 
compatibility.  Both builds are based on the same source code and differ 
because of conditional compilation.

When you download from Sourceforge, you get itextsharp-dll-core.zip and 
itextsharp-dll-core-wo_Drawing.zip.  Maybe you are using the wo_Drawing 
buikd?

http://sourceforge.net/projects/itextsharp/files/itextsharp/iTextSharp-5.5.0/

Best regards,
Raf

--
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

iText(R) is a registered trademark of 1T3XT BVBA.
Many questions posted to this list can (and will) be answered with a reference 
to the iText book: http://www.itextpdf.com/book/
Please check the keywords list before you ask for examples: 
http://itextpdf.com/themes/keywords.php


Re: [iText-questions] different source

2014-03-26 Thread iText mailing list

On 3/26/2014 1:47 AM, Ate Peeringa wrote:

Hello,
The sourcecode of iTextsharp core is different than the dll version 5.5.0
The Function iTextSharp.text.Image.GetInstance(System.Drawing.Image, 
System.Drawing.Imaging.ImageFormat) is missing from the source code!

Can i get a source with the function in place?


You can always find the source code on SourceForge.
The branch for iText 5.5.0 can be found here:
http://sourceforge.net/p/itextsharp/code/HEAD/tree/branches/iTextSharp_5_5_0/

The fact that I can find the following code through that location, 
proves your allegation to be wrong:


public static Image GetInstance(System.Drawing.Image image, 
System.Drawing.Imaging.ImageFormat format) {

MemoryStream ms = new MemoryStream();
image.Save(ms, format);
return GetInstance(ms.ToArray());
}

You must have been looking at an unofficial code repository...
--
Learn Graph Databases - Download FREE O'Reilly Book
Graph Databases is the definitive new guide to graph databases and their
applications. Written by three acclaimed leaders in the field,
this first edition is now available. Download your free book today!
http://p.sf.net/sfu/13534_NeoTech___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

iText(R) is a registered trademark of 1T3XT BVBA.
Many questions posted to this list can (and will) be answered with a reference 
to the iText book: http://www.itextpdf.com/book/
Please check the keywords list before you ask for examples: 
http://itextpdf.com/themes/keywords.php