You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
What steps will reproduce the problem?
1. lauch epub2pdf test1.epub
then I get the following error :
Registered font families: courier, helvetica, symbol, times, times-roman,
zapfdingbats
Default font set to helvetica
Default font base size set to 12.0pt
Default monospace font: courier
Monospace base size: 12.0pt
Default paragraph alignment: justified
Margins (top right bottom left): 15,00mm 15,00mm 15,00mm 15,00mm
Page size (w x h): 150,00mm x 200,00mm
Converting C:\Users\jmw\Desktop\epub2pdf\epub2pdf\test1.epub
Writing PDF to C:\Users\jmw\Desktop\epub2pdf\epub2pdf\.\test1.pdf
Processing 61 HTML file(s):
.java.net.SocketException: Unexpected end of file from server
at sun.net.www.http.HttpClient.parseHTTPHeader(Unknown Source)
at sun.net.www.http.HttpClient.parseHTTP(Unknown Source)
at sun.net.www.http.HttpClient.parseHTTPHeader(Unknown Source)
at sun.net.www.http.HttpClient.parseHTTP(Unknown Source)
at sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown So
urce)
at com.sun.org.apache.xerces.internal.impl.XMLEntityManager.setupCurrent
Entity(Unknown Source)
at com.sun.org.apache.xerces.internal.impl.XMLEntityManager.startEntity(
Unknown Source)
at com.sun.org.apache.xerces.internal.impl.XMLEntityManager.startEntity(
Unknown Source)
at com.sun.org.apache.xerces.internal.impl.XMLDTDScannerImpl.startPE(Unk
nown Source)
at com.sun.org.apache.xerces.internal.impl.XMLDTDScannerImpl.skipSeparat
or(Unknown Source)
at com.sun.org.apache.xerces.internal.impl.XMLDTDScannerImpl.scanDecls(U
nknown Source)
at com.sun.org.apache.xerces.internal.impl.XMLDTDScannerImpl.scanDTDExte
rnalSubset(Unknown Source)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl$DTDDri
ver.dispatch(Unknown Source)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl$DTDDri
ver.next(Unknown Source)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl$Prolog
Driver.next(Unknown Source)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(U
nknown Source)
at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.next
(Unknown Source)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImp
l.scanDocument(Unknown Source)
at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(U
nknown Source)
at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(U
nknown Source)
at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(Unknown So
urce)
at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(Un
known Source)
at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.p
arse(Unknown Source)
at org.xml.sax.helpers.XMLFilterImpl.parse(Unknown Source)
at org.apache.xml.resolver.tools.ResolvingXMLFilter.parse(ResolvingXMLFi
lter.java:141)
at com.amphisoft.epub2pdf.content.XhtmlHandler.parseXhtml(Unknown Source
)
at com.amphisoft.epub2pdf.content.XhtmlHandler.<init>(Unknown Source)
at com.amphisoft.epub2pdf.content.XhtmlHandler.process(Unknown Source)
at com.amphisoft.epub2pdf.Converter.convert(Unknown Source)
at com.amphisoft.epub2pdf.Converter.main(Unknown Source)
at com.amphisoft.epub2pdf.Epub2Pdf.main(Unknown Source)
Registered font families: courier, helvetica, symbol, times, times-roman, zapfdi
ngbats
Default font set to helvetica
Default font base size set to 12.0pt
Default monospace font: courier
Monospace base size: 12.0pt
Default paragraph alignment: justified
Margins (top right bottom left): 15,00mm 15,00mm 15,00mm 15,00mm
Page size (w x h): 150,00mm x 200,00mm
Converting C:\Users\jmw\Desktop\epub2pdf\epub2pdf\test1.epub
Writing PDF to C:\Users\jmw\Desktop\epub2pdf\epub2pdf\.\test1.pdf
Processing 61 HTML file(s):
.java.net.SocketException: Unexpected end of file from server
at sun.net.www.http.HttpClient.parseHTTPHeader(Unknown Source)
at sun.net.www.http.HttpClient.parseHTTP(Unknown Source)
at sun.net.www.http.HttpClient.parseHTTPHeader(Unknown Source)
at sun.net.www.http.HttpClient.parseHTTP(Unknown Source)
at sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown So
urce)
at com.sun.org.apache.xerces.internal.impl.XMLEntityManager.setupCurrent
Entity(Unknown Source)
at com.sun.org.apache.xerces.internal.impl.XMLEntityManager.startEntity(
Unknown Source)
at com.sun.org.apache.xerces.internal.impl.XMLEntityManager.startEntity(
Unknown Source)
at com.sun.org.apache.xerces.internal.impl.XMLDTDScannerImpl.startPE(Unk
nown Source)
at com.sun.org.apache.xerces.internal.impl.XMLDTDScannerImpl.skipSeparat
or(Unknown Source)
at com.sun.org.apache.xerces.internal.impl.XMLDTDScannerImpl.scanDecls(U
nknown Source)
at com.sun.org.apache.xerces.internal.impl.XMLDTDScannerImpl.scanDTDExte
rnalSubset(Unknown Source)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl$DTDDri
ver.dispatch(Unknown Source)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl$DTDDri
ver.next(Unknown Source)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl$Prolog
Driver.next(Unknown Source)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(U
nknown Source)
at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.next
(Unknown Source)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImp
l.scanDocument(Unknown Source)
at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(U
nknown Source)
at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(U
nknown Source)
at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(Unknown So
urce)
at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(Un
known Source)
at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.p
arse(Unknown Source)
at org.xml.sax.helpers.XMLFilterImpl.parse(Unknown Source)
at org.apache.xml.resolver.tools.ResolvingXMLFilter.parse(ResolvingXMLFi
lter.java:141)
at com.amphisoft.epub2pdf.content.XhtmlHandler.parseXhtml(Unknown Source
)
at com.amphisoft.epub2pdf.content.XhtmlHandler.<init>(Unknown Source)
at com.amphisoft.epub2pdf.content.XhtmlHandler.process(Unknown Source)
at com.amphisoft.epub2pdf.Converter.convert(Unknown Source)
at com.amphisoft.epub2pdf.Converter.main(Unknown Source)
at com.amphisoft.epub2pdf.Epub2Pdf.main(Unknown Source)
.
What is the expected output? What do you see instead?
epub convertion to pdf
What version of the product are you using? On what operating system?
epub2pdf 0.5
windows 7
Please provide any additional information below.
I attach my file
Best regards
Jean-Marie
Original issue reported on code.google.com by wu...@igbmc.fr on 1 Jun 2011 at 4:25
By uncompressing the epub files, one can notice that all files I looked at had
the following DOCTYPE that the XML parser does not correctly parse !!!
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
Original comment by wu...@igbmc.fr on 7 Jun 2011 at 7:22
Manually loading the DTD in a browser is sometimes failing, or with long wait
times.
I saw this reported as a quality issue on W3C:
W3C System Status
Mon 25 Oct 2010 16:00Z, What appears to be a new, prolific application combined
with a known browser bug is causing W3C's website a considerable amount of DTD
requests. This is causing our servers to respond very slowly.
Original comment by smiley...@gmail.com on 4 Nov 2011 at 9:34
Original issue reported on code.google.com by
wu...@igbmc.fr
on 1 Jun 2011 at 4:25Attachments:
The text was updated successfully, but these errors were encountered: