albrechtf / mcf2pdf

"My CEWE Photobook" MCF to PDF converter
Other
41 stars 36 forks source link

parameter -b dont workx in ver 0.3.4: binding pages in each case (with/-out -b) #56

Closed Nero6800 closed 5 years ago

Nero6800 commented 5 years ago

parameter -b dont workx in version 0.3.4 / CEWE 6.3.3: pages were binding in each case (with/-out -b)

rbodziony commented 5 years ago

Can you check this version https://github.com/rbodziony/mcf2pdf/releases/tag/0.3.7

Nero6800 commented 5 years ago

Hello,

after installing Version 0.3.7 there is no result (PDF= 0 kb). Following is shown on the screen:

D:\0>mcf2pdf.bat Kopie.mcf Kopie.pdf

[ERROR] net.sf.mcf2pdf.Main An exception has occured

org.xml.sax.SAXParseException; systemId: file:/D:/0/Kopie.mcf; lineNumber: 2; columnNumber: 185; Error at line 2 char 185: Error converting from 'String' to 'java.awt.Color' For input string: ""

    at org.apache.commons.digester3.Digester.createSAXException(Digester.java:3118)

    at org.apache.commons.digester3.Digester.createSAXException(Digester.java:3146)

    at org.apache.commons.digester3.Digester.startElement(Digester.java:1355)

    at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.startElement(Unknown Source)

    at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanStartElement(Unknown Source)

    at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDriver.next(Unknown Source)

    at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(Unknown Source)

    at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)

    at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown Source)

    at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown Source)

    at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(Unknown Source)

    at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(Unknown Source)

    at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source)

    at org.apache.commons.digester3.Digester.parse(Digester.java:1642)

    at org.apache.commons.digester3.Digester.parse(Digester.java:1588)

    at net.sf.mcf2pdf.mcfelements.FotobookBuilder.readFotobook(FotobookBuilder.java:56)

    at net.sf.mcf2pdf.Mcf2FoConverter.convert(Mcf2FoConverter.java:155)

    at net.sf.mcf2pdf.Main.main(Main.java:202)

Caused by: org.apache.commons.beanutils.ConversionException: Error converting from 'String' to 'java.awt.Color' For input string: ""

    at org.apache.commons.beanutils.converters.AbstractConverter.handleError(AbstractConverter.java:267)

    at org.apache.commons.beanutils.converters.AbstractConverter.convert(AbstractConverter.java:164)

    at org.apache.commons.beanutils.ConvertUtilsBean.convert(ConvertUtilsBean.java:470)

    at org.apache.commons.beanutils.BeanUtilsBean.setProperty(BeanUtilsBean.java:1006)

    at org.apache.commons.beanutils.BeanUtilsBean.populate(BeanUtilsBean.java:830)

    at org.apache.commons.beanutils.BeanUtils.populate(BeanUtils.java:433)

    at org.apache.commons.digester3.SetPropertiesRule.begin(SetPropertiesRule.java:232)

    at org.apache.commons.digester3.Digester.startElement(Digester.java:1350)

    ... 15 more

Caused by: java.lang.NumberFormatException: For input string: ""

    at java.lang.NumberFormatException.forInputString(Unknown Source)

    at java.lang.Integer.parseInt(Unknown Source)

    at java.lang.Integer.valueOf(Unknown Source)

    at java.lang.Integer.decode(Unknown Source)

    at java.awt.Color.decode(Unknown Source)

    at net.sf.mcf2pdf.mcfelements.impl.DigesterConfiguratorImpl$1.convertToType(DigesterConfiguratorImpl.java:77)

    at org.apache.commons.beanutils.converters.AbstractConverter.convert(AbstractConverter.java:156)

    ... 21 more

Installed Java: 1.80 191-b12

Used for PDF (on D:): Cewe6.3.3

Also installed Pixum 6.4.1 (on C:)

Thx and greetings

rbodziony commented 5 years ago

Ok Thx for checking can you paste as code part of XML?

Nero6800 commented 5 years ago

Unser Kreta Urlaub 2014

]]>
rbodziony commented 5 years ago

fix file change ... <pagenumbering format="0" fontfamily="Arial" bgcolor="#" fontbold="0" textcolor="#000000" position="0" margin="110" fontitalics="0" textstring="%" verticalMargin="50" fontsize="12"> <outline enabled="0" width="1"/> </pagenumbering> ... to `

`

Nero6800 commented 5 years ago

Great - it works.

Thx and greetings

rbodziony commented 5 years ago

pls close issue

Nero6800 commented 5 years ago

Thx for Help