Improve small number writing in HPDF_FToA.#187
Improve small number writing in HPDF_FToA.#187bramton merged 1 commit intolibharu:develfrom alliepiper:FToA_precision
Conversation
This was truncating all numbers at 1e-5, now it ensures that 5 significant figures will always be written for values > 1e-20.
|
This patch breaks PDF output for https://github.com/SICOM/rlib |
|
Hi zbosor, could you provide a bit more background information? What kind of error are you getting? Coud you provide a minimal working example? |
|
Hi @bramton , I can't give you a small-ish example. But this report example: https://github.com/SICOM/rlib/blob/master/src/examples/php/graph.php which exercises some graphing features of RLIB (pie chart, line chart, etc.) comes out empty with the patch applied to libharu and the expected output with the patch reverted if the report output was PDF. The HTML output where the chart images are generated by GD was correct. EDIT: The current maintenance branch of RLIB that uses libharu is |



This was truncating all numbers at 1e-5, now it ensures that 5
significant figures will always be written for values > 1e-20.