If you render at 100dpi or more, the minus sign is visible. Sometimes small 
lines disappear at low resolution with Java2D due to the way it handles 
clipping. If you want 72dpi images you might get better results by rendering at 
144dpi and the scaling down the resulting image using a high-qualitu algorithm 
such as Lanczos.

-- John

> On 5 Feb 2015, at 23:40, Hartmann Toël <[email protected]> wrote:
> 
> Hi,
> 
> Now it works!
> 
> output:
> feb 06, 2015 8:34:28 FM org.apache.pdfbox.pdmodel.font.PDSimpleFont toUnicode
> WARNING: No Unicode mapping for A0 (2) in font T2
> feb 06, 2015 8:34:28 FM org.apache.pdfbox.pdmodel.font.PDSimpleFont toUnicode
> WARNING: No Unicode mapping for AO (3) in font T1
> feb 06, 2015 8:34:28 FM org.apache.pdfbox.pdmodel.font.PDSimpleFont toUnicode
> WARNING: No Unicode mapping for AO (3) in font T1
> feb 06, 2015 8:34:28 FM org.apache.pdfbox.pdmodel.font.PDSimpleFont toUnicode
> WARNING: No Unicode mapping for AX (0) in font T1
> 
> The minus sign in the exponent is missing in the resulting jpeg:
> 
>  pdf: 
> 
> 
> jpeg:
> 
> 
> 
> /Toël
> 
> 
> 
> On 6 feb 2015, at 01:16, John Hewson <[email protected] 
> <mailto:[email protected]>> wrote:
> 
>> I’ve just added a workaround, so try the latest 2.0 snapshot.
>> 
>> -- John
>> 
>>> On 5 Feb 2015, at 13:33, Hartmann Toël <[email protected] 
>>> <mailto:[email protected]>> wrote:
>>> 
>>> Hi,
>>> 
>>> I upgraded to latest SUN java 1.8:
>>> java version "1.8.0_31"
>>> Java(TM) SE Runtime Environment (build 1.8.0_31-b13)
>>> Java HotSpot(TM) 64-Bit Server VM (build 25.31-b07, mixed mode)
>>> 
>>> But it is still crashing…
>>> 
>>> 
>>> 
>>> On 5 feb 2015, at 08:28, Toël Hartmann <[email protected] 
>>> <mailto:[email protected]><mailto:[email protected] 
>>> <mailto:[email protected]>>> wrote:
>>> 
>>> Hi,
>>> 
>>> on OSX 10.9.5 with java:
>>> java version "1.8.0_20"
>>> Java(TM) SE Runtime Environment (build 1.8.0_20-b26)
>>> Java HotSpot(TM) 64-Bit Server VM (build 25.20-b23, mixed mode)
>>> 
>>> I've got:
>>> java -jar pdfbox-app-2.0.0-SNAPSHOT.jar PDFToImage -resolution 72 
>>> 228-228597-p19-crash.pdf
>>> feb 05, 2015 8:23:51 FM org.apache.pdfbox.pdmodel.font.PDSimpleFont 
>>> toUnicode
>>> WARNING: No Unicode mapping for A0 (2) in font T2
>>> Illegal instruction: 4
>>> 
>>> and the JVM crashes
>>> 
>>> 
>>> Toël
>>> 
>>> 
>>> 
>>> 
>>> On 4 feb 2015, at 22:35, Tilman Hausherr <[email protected] 
>>> <mailto:[email protected]><mailto:[email protected] 
>>> <mailto:[email protected]>>> wrote:
>>> 
>>> Hi,
>>> 
>>> If you have JDK8, please test the file from
>>> https://issues.apache.org/jira/browse/PDFBOX-2373 
>>> <https://issues.apache.org/jira/browse/PDFBOX-2373> with 2.0 and post here
>>> whether it crashes your JVM.
>>> 
>>> java -jar pdfbox-app-2.0.0-SNAPSHOT.jar PDFToImage -resolution 72
>>> "228-228597-p19-crash.pdf"
>>> 
>>> Tilman
>>> 
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: [email protected] 
>>> <mailto:[email protected]><mailto:[email protected]
>>>  <mailto:[email protected]>>
>>> For additional commands, e-mail: [email protected] 
>>> <mailto:[email protected]><mailto:[email protected] 
>>> <mailto:[email protected]>>
>>> 
>>> 
>>> 
>> 
> 

Reply via email to