Microsoft Windows Phone 8.1 support ends (13 Jul 2017)

Microsoft has ended support for Windows Phone 8.1

Questions about Android development and PDF

Find dpi for rectangle coordinates in A4 format

More
IP: 217.141.78.166 5 years 7 months ago #15408 by simone.p
Hi,
I need to create some text boxes (form fields) inside a blank page, If I use the method :
myPage.AddFieldEditbox(rect, "fieldName", false, false);
I need to provide a rectangle with sizes in pizels (left,top,right,bottom) but I don't know which values to use.
I have an A4 paper format but I would also need the dpi in order to compute the pixels, how can i get the DPI of the page?
Thank you
More
IP: 111.196.242.169 5 years 7 months ago - 5 years 7 months ago #15409 by radaee
dear user:
the PDF coordinate system is always in 72dpi,
that mean A4 paper has page size: [210 * 72 / 25.4, 297 * 72 / 25.4].
and PDF using math coordinate system, that mean: coordinate of left-bottom is [0, 0]
and left-top is[0, 297 * 72 / 25.4]
all line width and text size are all using 72 dpi.
Last edit: 5 years 7 months ago by radaee.
Time to create page: 0.386 seconds
Powered by Kunena Forum