![]() ![]() Here is the sample code (which is also in our updated example). All we need to do is calculate the scaling needed for height and width to fit the maximum gap and choose the smaller of the two values. Sometimes, however, we might want to scale the image up so that it makes the best fit into a different sized hole in our case, we would need to scale the image to 150x75pixels. It is important to maintain the aspect ratio and treat both sides the same. ![]() Note that the scaling has to be the same on both sized (if you turn a 200×100 pixel image into a 150x150pixel image, it will becomes ‘squashed’. So we have added a scaling setting into the latest release (so that you can have 400×200 pixels or 50×25 pixels). ![]() You can easily scale in/out on most mobile devices but sometimes it is just too big or small as a sensible default. So a 200×100 pixel PDF file becomes a 200×100 pixel HTML file. PDF to HTML5 conversion – changing the page sizeīy default, a we convert a PDF file into an HTML file with the same size. He has an MA in Medieval History and a passion for reading. Mark Stephens Mark has been working with Java and PDF since 1999 and is a big NetBeans fan. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |