iTextSharp image keep pixel dimensions? -


lets have image has dpi of 72 , width/height of 100px/100px.

however when add image , render pdf, image displayed bigger 100px/100px. how can ensure when adding image pdf using itextsharp keep same pixel dimensions original image, in case 100px/100px?

it sounds you'll want check out scaleabsolute method of itextsharp.text.image, explicitly set height/width of image. there couple of related methods you'll want read to: scalepercent , scaletofit.

these methods described in sourceforge itextsharp tutorial includes samples. see tge "scaling , rotating image" section.


Comments

Popular posts from this blog

c++ - Convert big endian to little endian when reading from a binary file -

C#: Application without a window or taskbar item (background app) that can still use Console.WriteLine() -

unicode - Are email addresses allowed to contain non-alphanumeric characters? -