I have a viewer that will routinely open PDF or TIFF documents from a stream. Previously, I would use
var _fmt = GdPictureImaging.GetDocumentFormatFromStream(_stream) to determine the format.
I would then open the stream with the appropriate method either:
GdPicturePDF.LoadFromStream(_stream)
or
GdPictureImaging.CreateGdPictureImageFromStream(_stream,_fmt)
After upgrading to the latest version. I see that imaging object no longer has a method for GetDocumentFormatFromStream. I have two questions.
1. Where is the documentation that says this method was removed?
2. What is the appropriate method to open a stream of unknown format?
Thanks!
Determine Format from Stream
Re: Determine Format from Stream
Hi,
This method was marked as deprecated since few time now and have been removed in recent update.
Please use the new static method: GdPictureDocumentUtilities.GetDocumentFormat()
Kind regards,
Loïc
This method was marked as deprecated since few time now and have been removed in recent update.
Please use the new static method: GdPictureDocumentUtilities.GetDocumentFormat()
Kind regards,
Loïc
Re: Determine Format from Stream
Hi,
This method was marked as deprecated since few time now and have been removed in recent update.
Please use the new static method: GdPictureDocumentUtilities.GetDocumentFormat()
Kind regards,
Loïc
This method was marked as deprecated since few time now and have been removed in recent update.
Please use the new static method: GdPictureDocumentUtilities.GetDocumentFormat()
Kind regards,
Loïc
Who is online
Users browsing this forum: No registered users and 1 guest