Closed OlliGoLeer closed 7 years ago
Could you please paste your "numerous errors" here? That would help a lot. There is a high chance that something changed (again) in the format...
Hi Problem are 2... 1) now border got color stored in this way ... <border color="#ff000000" .... version before were <border color="#000000" ... .... stacktrace looks like .... lineNumber: 14; columnNumber: 90; Error at line 14 char 90: Error converting from 'String' to 'java.awt.Color' For input string: "ff000000" 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.parsers.AbstractXMLDocumentParser.emptyElement(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:154) at net.sf.mcf2pdf.Main.main(Main.java:181) .... 2) all images in photo were converted to .webp
Hi albrechtf,
here is the error list.
I hope you can help ;)
[ERROR] net.sf.mcf2pdf.Main An exception has occured org.xml.sax.SAXParseException; systemId: file:/D:/AAA/fb1.mcf; lineNumber: 14; columnNumber: 90; Error at line 14 char 90: Error converting from 'String' to 'java.awt.Color' For input string: "ff000000" 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.parsers.AbstractXMLDocumentParser.emptyElement(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:154) at net.sf.mcf2pdf.Main.main(Main.java:181) Caused by: org.apache.commons.beanutils.ConversionException: Error converting from 'String' to 'java.awt.Color' For input string: "ff000000" 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) ... 16 more Caused by: java.lang.NumberFormatException: For input string: "ff000000" 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:63) at org.apache.commons.beanutils.converters.AbstractConverter.convert(AbstractConverter.java:156)
@rbodziony
corinis/mcf2pdf@a917479
Nope, it doesn't work: Cewe 6.2.3 Warning: Could not get charToByteConverterClass! And no text in output PDF (pics are ok)
this fix from cornis fixing Color issue i dont know about no text issue
I've narrowed text issue: During conversion "Calibri" font from .mcf file is replaced by some other one. And that new one doesn't contain cyrilic chars :(
can you paste sample <text... what not works for me for example dont works font="MS Shell Dlg 2,12,-1,5,50,0,0,0,0,0" (missing special chars cyrilic ) calibri works for me !
Issue with font difference fixed by re-applying font family in the app (strange, that app displayed it as "Calibri", but in sources it was indeed "MS Shell Dlg" . Now source looks like this: `
Жила была на свете Белая Шляпа и была она такая любопытная, что не сиделось ей на месте. "А зачем сидеть на месте, когда мир такой большой, необыкновенно красиво заманчивый, столько загадок вокруг, историй и тайн?" - так любила повторять Белая Шляпа, и конечно же в чем-то она была права.
У Белой Шляпы была закадычная подруга, очень похожая на нее, Белая Луна. Они частенько собирались вместе за чашкой душистого капучино обсудить что, где, когда, зачем и почему. Обычно их разговор начинался с того, что Белая Шляпа высовывала свой любопытный нос из окна, смотрела в небо и говорила их т
TEST IN THE MIDDLE
ило под полями от нетерпения поскорее узнать где же на этот раз побывала ее загадочная подруга. Белая Шляпа начала подпрыгивать от нетерпения, а Белая Луна ничего не сказала, а только еще таинственней улыбнулась и подмигнула куда-то в сторону южной Италии, провинции Апулия, ярко-бирюзового моря, необыкновенно синего неaба, сонной тишины вековых оливок, душистого и терпкого запаха оливкового масла, теплой фокаччи с вялеными помидорами, доброго домашнего вина и всего-всего-всего от чего в носу становится необыкновенно щекотно, рот наполняется слюной и хочется поскорее все это попробовать, вдохнуть, закрыть глаза и со счастливой улыбкой смотреть на синее небо. Белая Шляпа посмотрела вокруг, недалеко от ее дома находился аэропорт, она бросила в сумку все самое необходимое и усевшись в мягкое кресло салона, тихо мурлыкая себе под нос Феличита... Блаженно прикрыла глаза.
]]>non-cyrylic text
]]>`
And displayed in app like this: Whereas rendered to PDF like this:
did you tried use fork version from corinis (niko) he changed rending texts so maybe his fork for cyrilic is better then main ?
didn't manage even to run it :(
I'm lost abit with versioning: there's original version by albrechtf. Which is quite outdated and doesn't support RGBA color scheme then forked by okworx (with "disable page blending" option) https://github.com/okworx/mcf2pdf and then forked by corinis from okworx (with RGBA support) https://github.com/corinis/mcf2pdf
I've ended up using original version by albrechtf with RGBA modification: corinis/mcf2pdf@a917479
So, I took https://github.com/okworx/mcf2pdf and applied corinis/mcf2pdf@a917479 result is exactly the same: cyrilic text is not rendered
After playing around with source .mcf file, I've noticed that text is not rendered if sequence <p><span style=" color:#000000;">%CYRILIC TEXT%</span></p>
is not followed. E.g:
<span>
tag is omitted: just <p> TEXT </p>
<span>
tag is 'streched' over several <p>
tags.
<p><span>TEXT</p><p>TEXT</span></p>
OR
<span><p>TEXT</p><p>TEXT</p></span>
Newly created files do not have this issue. Wokaround for existing files is to open file in CEWE App, select text in existing text box, and change properties via settings dialogue (and click "apply to all texts in project")
Btw. Mystery of "MS Shell Dlg 2" is also resolved. It is virtual font. Technical info on MSDN: https://msdn.microsoft.com/en-us/library/windows/desktop/dd374112(v=vs.85).aspx
Real font value could be checked via Regedit:
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\FontSubstitutes] "MS Shell Dlg"="Microsoft Sans Serif" "MS Shell Dlg 2"="Tahoma"
Or with PowerShell oneliner:
Get-Item "HKLM:\SOFTWARE\Microsoft\Windows NT\CurrentVersion\FontSubstitutes\"|get-itemproperty|select -ExpandProperty "MS Shell Dlg 2"
very technical information .... any advice for a noob? will there be a new version of this project that works with latest cewe version?
try use my forked version dunno when albert will release new version https://github.com/rbodziony/mcf2pdf/commit/b3cf8bccbddeeb2222fff653155532f69234fa63
Btw, your version doesn't stick background images correctly :( there's whitespace between
regards, David Khotiun
25 июля 2017 г. 2:48 PM пользователь "rbodziony" notifications@github.com написал:
try use my forked version dunno when albert will release new version rbodziony/mcf2pdf@b3cf8bc https://github.com/rbodziony/mcf2pdf/commit/b3cf8bccbddeeb2222fff653155532f69234fa63
— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/albrechtf/mcf2pdf/issues/24#issuecomment-317726751, or mute the thread https://github.com/notifications/unsubscribe-auth/AIGPQGIFZfpKVQmmh7tFFczAwjiXaZ30ks5sReQ6gaJpZM4ONSqX .
But text now are cyrilic right ? and clp/svg clips now works ? can you paste example based on test/resorces/*.mcf ? Regards, Robert
But text now are cyrilic right ? Yes. As I wrote previously, there were 2 things why Cyrillic was not displayed: 1. Wrong file contents (maybe due to version changes) 2. Default font (which was set by app) didn't have Cyrillic chars
and clp/svg clips now works ?
Haven't tried. JPEGs are ok
can you paste example based on test/resorces/*.mcf ?
I'll create samples and post them.
regards, David Khotiun
25 июля 2017 г. 5:14 PM пользователь "rbodziony" notifications@github.com написал:
But text now are cyrilic right ? and clp/svg clips now works ? can you paste example based on test/resorces/*.mcf ? Regards, Robert
— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/albrechtf/mcf2pdf/issues/24#issuecomment-317770697, or mute the thread https://github.com/notifications/unsubscribe-auth/AIGPQFdrvHSvwQTXEhq9RIGPhGRr9EpFks5sRgZhgaJpZM4ONSqX .
Sorry guys to interrupt you here. Please continue discussion about issues and features of forks on the fork's GitHub page, not here.
Thanks to all contributors for the new Pull Requests. Unfortunately I've got very little time at the moment to review & merge them. I will try in August. Please be patient (or use the forks - or fork by yourself and apply the patches :-)).
The Software (not a script, sorry for being tetchy there) currently does obviously not support the latest CEWE version. Acknowledged, so for now, I will close this issue and reopen it to mark it as being fixed as soon as time permits. Thank you for your understanding!
Just discovered the "Lock conversation" button. Much more appropriate :-)
Please check your initial issue against latest release: https://github.com/albrechtf/mcf2pdf/releases/tag/mcf2pdf-0.3.3. Feel free to open new issues for any remaining problems. Thanks!
Hi, does the script not work with cewe Ver 6.2.3? I am getting numerous errors I used mcf2pdf some month before without any issues. Any Idea?