I am using iTextSharp version 5.5.2.0 and when I try to download the attached sample pdf 058780-02.pdf I get an exception in ImageRenderInfo.GetImage (), the method "PdfImageObject" does not return with the message "Color depth 1 is not supported". Any suggestions? Thanks, Abedellatif
i fixed it, changed the source code of iTextSharp PdfImageObject class FindColorspace on line 222 add
PdfImageObject
FindColorspace
if (PdfName.CALGRAY.Equals(tyca) || PdfName.DEVICEGRAY.Equals(tyca)) { stride = (width * bpc + 7) / 8; pngColorType = 0; }
Source: https://habr.com/ru/post/1257604/More articles:Interpolation of expression into expression inside quote - macrosIs ptr = free (ptr) NULL safe? - cRecursive generics with Swift - enumsHow to access iCloud as basic data for iCloud is deprecated - iosSwift compiler cannot allow correct + operator overloading for arrays in common function - genericsApache / mod_wsgi process dies unexpectedly - python-2.7pandas, apply to args, which are dataframe string strings - pythonStrange statement ?: Use with decltype - c ++How to use the SendGrid Inbound Parse Webhook example in Postman? - ruby-on-railsHow to execute patch request using HttpClient in dotnet core? - dotnet-httpclientAll Articles