albrechtf / mcf2pdf

"My CEWE Photobook" MCF to PDF converter
Other
40 stars 37 forks source link

Another Width (0) and height (0) cannot be <= 0 Exception #62

Closed wi-fr closed 3 years ago

wi-fr commented 5 years ago

I greatly appreciate your inititive.

Having upgrade the CEWE software to version 6.4.5 (x64), I no longer get beyond the rendering of the cover page on all my photobooks that worked in the past and on newly created ones:

[INFO ] net.sf.mcf2pdf.Mcf2FoConverter Rendering cover... [ERROR] net.sf.mcf2pdf.Main An exception has occured java.lang.IllegalArgumentException: Width (0) and height (0) cannot be <= 0 at java.awt.image.DirectColorModel.createCompatibleWritableRaster(Unknown Source) at java.awt.image.BufferedImage.<init>(Unknown Source) at net.sf.mcf2pdf.pagebuild.BitmapPageBuilder.addToDocumentBuilder(BitmapPageBuilder.java:66) at net.sf.mcf2pdf.Mcf2FoConverter.convert(Mcf2FoConverter.java:211) at net.sf.mcf2pdf.Main.main(Main.java:188)

This exception occurs with both MCF2PDF versions, that I have at hand: 0.3.4 and 0.3.8

boggiz commented 5 years ago

I have the same problem see #50

chharms commented 4 years ago

For me, now again. Upgraded to CEWE Fotobuch V7.0.1 before. Similar ERROR as from wi-fr above.

thorsten-klein commented 4 years ago

Same Issue for me.

I installed CEWE Fotobuch 7.0.1 and created my photobook. I am not able to convert it with mcf2pdf 0.3.4 --> Same Issue

In a next step I reinstalled CEWE Fotobuch 6.4.1 and tried to open my created photobook. Result: The photobook from 7.0.1 cannot be opened.

It seems that CEWE have changed the mcf formatting. Are you working at this issue so that mcf2pdf supports CEWE 7.0.1?

rbodziony commented 4 years ago

Hi Im working on next version Hope to finish it asap . Regards

dl555atp commented 4 years ago

Great idea with the converter. Have same Problem with cewe(DM) 7.0.1 and wait for your next version. Please add to readme, that TMP-Dir shouldnt (never) end with backslash ;-) Regards

Pascal3380 commented 4 years ago

Hi Not working also for me using file generated using CEWE 6.4.7 But with files generated with CEWE 6.2.6 there is no error.

If I can help you to test it or to do some others task and if I can, thanks to contact me.

Regards P.

== Error details ===================================

staaash commented 4 years ago

Hi Florian, just a gentle tap on the door: have you managed to make any progress with this issue yet? Anything I/we might be able to help with (e.g. testing)? Is this maybe relevant / helpful: https://www.ibm.com/support/pages/java-exception-javalangillegalargumentexception-width-0-and-height-0-cannot-be ? To quote from that link:

To resolve the java.lang.IllegalArgumentException exception on Linux, set the following environment variable before you run the WebSphere Transformation Extender Management Tools:

export AWT_TOOLKIT=MToolkit

When you run the WebSphere Transformation Extender Launcher Administration, Management Console, and Resource Registry tools, they should now start successfully and not throw the Java exception.

Stay safe! Thanks!!

joachim99 commented 3 years ago

The problem is that the mcf file format was changed in the newer versions. There is no easy fix. This exception is just the first of many problems.