GetTextExtentPoint32 Reporting Wrong Size
I am using doPDF to test some printing software I am working on. My program needs to fit text within a given space, and determines the text length by calling the GetTextExtentPoint32 API in Windows. Unfortunately, that API is reporting inaccurate width measurements from doPDF.
For instance, I have a box that is 1274 pixels wide on the page (landscape), and doPDF reports text that should fit as being 1273 pixels wide. However, when displayed or printed, the text actually extends out past the box dimensions.
The exact same code works perfectly for screen measurements, and on my physical printers (Brother HN-5250DN and Samsung CLP-315W). I only get inaccurate measurements when using doPDF.
Thanks,
Anthony
For instance, I have a box that is 1274 pixels wide on the page (landscape), and doPDF reports text that should fit as being 1273 pixels wide. However, when displayed or printed, the text actually extends out past the box dimensions.
The exact same code works perfectly for screen measurements, and on my physical printers (Brother HN-5250DN and Samsung CLP-315W). I only get inaccurate measurements when using doPDF.
Thanks,
Anthony
-
- Posts: 1565
- Joined: Thu May 23, 2013 7:19 am
Hello,
In order to troubleshoot this we would need a test application or some sources where you have this association. Please send use any info you can to our support team at [email protected] and we will have a further look.
In order to troubleshoot this we would need a test application or some sources where you have this association. Please send use any info you can to our support team at [email protected] and we will have a further look.
Follow us to stay updated:
- Newsletter (get a discount for subscribing): https://www.dopdf.com/newsletter.html
- Facebook: https://www.facebook.com/dopdf
- Twitter: https://twitter.com/dopdf
- Linkedin: https://www.linkedin.com/showcase/dopdf