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

ruby - When to use an ORM (Sequel, Datamapper, AR, etc.) vs. pure SQL for querying -

php - PHPDoc: @return void necessary? -

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