Adding Gif Images to PDF

Adding Gif Images to PDF

Forum member · Aug 29, 2007
I have an app that adds images to a pdf and it works well except if the image is a gif. If the image is a gif the image's width and height get reduce. Has anyone seen this? Here is the basics of my code. Dim MyImageFile As String Dim MyPage2 As ceTe.DynamicPDF.Page If Not Session("ImageName") Is Nothing Then MyImageFile = Server.MapPath("UploadImages/" & Session("ImageName").ToString) Else MyImageFile = Server.MapPath(ProjectConfig.AppSettings("_DefaultLogoUrl")) Session("ImageHeight") = ProjectConfig.AppSettings("_DefaultLogoHeight") Session("ImageWidth") = ProjectConfig.AppSettings("_DefaultLogoWidth") End If MyPage2 = MyDocument.Pages(CInt(ProjectConfig.AppSettings("_NumberOfPages") - 1)) Dim img As ceTe.DynamicPDF.PageElements.Image img = New ceTe.DynamicPDF.PageElements.Image(MyImageFile, _ GetXCoord(CInt(Session("ImageWidth").ToString), ProjectConfig.AppSettings("_MaxLogoWidth"), ProjectConfig.AppSettings("_DefaultLogoXCoord")), _ GetYCoord(CInt(Session("ImageHeight").ToString), ProjectConfig.AppSettings("_MaxLogoHeight"), ProjectConfig.AppSettings("_DefaultLogoYCoord"))) MyPage2.Elements.Add(img)

Re: Adding Gif Images to PDF

Support · Aug 29, 2007
Hello, Can you please send over the gif image and a sample code to recreate the behavior to our [^a|mailto:support@cete.com|Support Team^] so that they can take a look at it and try to find out the cause for the behavior to occur. Thanks, ceTe Software Support Team.