Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » U++ Library support » U++ Library : Other (not classified elsewhere) » PdfDraw, custom DPI request + my fix
Re: PdfDraw, custom DPI request + my fix [message #58818 is a reply to message #58764] Wed, 14 September 2022 21:12 Go to previous messageGo to previous message
Mountacir is currently offline  Mountacir
Messages: 49
Registered: November 2021
Member
This is an example of the issue.
I attached a test example and two images of 6x9 inches at 300dpi and 600dpi that supposed to be book pages.

Trying to convert them to Pdfs using PdfDraw will output different size pdf for 300dpi page while outputing the correct size for 600dpi page.
Both of these pages should maintain thier size in inches.
index.php?t=getfile&id=6657&private=0

What's causing this issue is the baked-in 600dpi in:

double Pt(double dot)               { return 0.12 * dot; }


This fixed the problem for me, as the dpi is no longer fixed:
double Pt(double dot)               { return 72 * dot / dpi ; }

 
Read Message icon3.gif
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Windows 11 - Menubar issues
Next Topic: bug in the routine involving the time of the zip file
Goto Forum:
  


Current Time: Tue May 14 00:27:38 CEST 2024

Total time taken to generate the page: 0.02008 seconds