coderarjob / kpdfsync Goto Github PK
View Code? Open in Web Editor NEWReading PDF documents in Kindle make practical - Annotates PDF files with annotations make in Kindle.
License: Other
Reading PDF documents in Kindle make practical - Annotates PDF files with annotations make in Kindle.
License: Other
Book: https://plan9.io/sys/doc/lexnames.pdf
Stack Trace:
Exception :Cannot invoke "org.pdfclown.documents.contents.IContentContext.getContents()" because "contentContext" is null
java.lang.NullPointerException: Cannot invoke "org.pdfclown.documents.contents.IContentContext.getContents()" because "contentContext" is null
at org.pdfclown.documents.contents.ContentScanner.(ContentScanner.java:1033)
at org.pdfclown.tools.TextExtractor.extract(TextExtractor.java:297)
at coderarjob.kpdfsync.lib.annotator.PdfAnnotatorV1.highlight(PdfAnnotatorV1.java:62)
at coderarjob.kpdfsync.poc.MainFrame$2.run(MainFrame.java:202)
at java.base/java.lang.Thread.run(Thread.java:833)
Hi, I'm a newbie and I'm trying to test the program but I don't know how to run it. I'm looking for an .exe file. Thanks!
Stack trace
Exception :'name' table does NOT exist.
org.pdfclown.util.parsers.ParseException: 'name' table does NOT exist.
at org.pdfclown.documents.contents.fonts.OpenFontParser.getName(OpenFontParser.java:570)
at org.pdfclown.documents.contents.fonts.OpenFontParser.load(OpenFontParser.java:221)
at org.pdfclown.documents.contents.fonts.OpenFontParser.<init>(OpenFontParser.java:205)
at org.pdfclown.documents.contents.fonts.TrueTypeFont.loadEncoding(TrueTypeFont.java:91)
at org.pdfclown.documents.contents.fonts.SimpleFont.onLoad(SimpleFont.java:118)
at org.pdfclown.documents.contents.fonts.Font.load(Font.java:738)
at org.pdfclown.documents.contents.fonts.Font.<init>(Font.java:351)
at org.pdfclown.documents.contents.fonts.SimpleFont.<init>(SimpleFont.java:62)
at org.pdfclown.documents.contents.fonts.TrueTypeFont.<init>(TrueTypeFont.java:68)
at org.pdfclown.documents.contents.fonts.Font.wrap(Font.java:253)
at org.pdfclown.documents.contents.FontResources.wrap(FontResources.java:72)
at org.pdfclown.documents.contents.FontResources.wrap(FontResources.java:1)
at org.pdfclown.documents.contents.ResourceItems.get(ResourceItems.java:119)
at org.pdfclown.documents.contents.objects.SetFont.getResource(SetFont.java:119)
at org.pdfclown.documents.contents.objects.SetFont.getFont(SetFont.java:83)
at org.pdfclown.documents.contents.objects.SetFont.scan(SetFont.java:97)
at org.pdfclown.documents.contents.ContentScanner.moveNext(ContentScanner.java:1330)
at org.pdfclown.documents.contents.ContentScanner$TextWrapper.extract(ContentScanner.java:811)
at org.pdfclown.documents.contents.ContentScanner$TextWrapper.<init>(ContentScanner.java:777)
at org.pdfclown.documents.contents.ContentScanner$TextWrapper.<init>(ContentScanner.java:770)
at org.pdfclown.documents.contents.ContentScanner$GraphicsObjectWrapper.get(ContentScanner.java:690)
at org.pdfclown.documents.contents.ContentScanner$GraphicsObjectWrapper.access$0(ContentScanner.java:682)
at org.pdfclown.documents.contents.ContentScanner.getCurrentWrapper(ContentScanner.java:1154)
at org.pdfclown.tools.TextExtractor.extract(TextExtractor.java:633)
at org.pdfclown.tools.TextExtractor.extract(TextExtractor.java:647)
at org.pdfclown.tools.TextExtractor.extract(TextExtractor.java:296)
at coderarjob.kpdfsync.lib.annotator.PdfAnnotatorV1.highlight(PdfAnnotatorV1.java:62)
at coderarjob.kpdfsync.poc.MainFrame$2.run(MainFrame.java:201)
at java.lang.Thread.run(Thread.java:748)
Highlights and notes are not getting automatically mapped even on pages with one note and highlight.
Stack Trace:
Exception :index -1, length 0
java.lang.StringIndexOutOfBoundsException: index -1, length 0
at java.base/java.lang.String.checkIndex(String.java:4560)
at java.base/java.lang.AbstractStringBuilder.deleteCharAt(AbstractStringBuilder.java:970)
at java.base/java.lang.StringBuilder.deleteCharAt(StringBuilder.java:298)
at coderarjob.kpdfsync.lib.annotator.PdfAnnotatorV1.doHighlight(PdfAnnotatorV1.java:96)
at coderarjob.kpdfsync.lib.annotator.PdfAnnotatorV1.highlight(PdfAnnotatorV1.java:65)
at coderarjob.kpdfsync.poc.MainFrame$2.run(MainFrame.java:201)
at java.base/java.lang.Thread.run(Thread.java:833)
Book: 'the_evolution_of_operating_system_cropped.pdf'
Stack trace:
java.lang.RuntimeException: java.io.EOFException
at org.pdfclown.documents.contents.fonts.CffParser.load(CffParser.java:703)
at org.pdfclown.documents.contents.fonts.CffParser.(CffParser.java:640)
at org.pdfclown.documents.contents.fonts.Type1Font.getNativeEncoding(Type1Font.java:104)
at org.pdfclown.documents.contents.fonts.Type1Font.loadEncoding(Type1Font.java:151)
at org.pdfclown.documents.contents.fonts.SimpleFont.onLoad(SimpleFont.java:118)
at org.pdfclown.documents.contents.fonts.Font.load(Font.java:738)
at org.pdfclown.documents.contents.fonts.Font.(Font.java:351)
at org.pdfclown.documents.contents.fonts.SimpleFont.(SimpleFont.java:62)
at org.pdfclown.documents.contents.fonts.Type1Font.(Type1Font.java:75)
at org.pdfclown.documents.contents.fonts.Font.wrap(Font.java:249)
at org.pdfclown.documents.contents.FontResources.wrap(FontResources.java:72)
at org.pdfclown.documents.contents.FontResources.wrap(FontResources.java:1)
at org.pdfclown.documents.contents.ResourceItems.get(ResourceItems.java:119)
at org.pdfclown.documents.contents.objects.SetFont.getResource(SetFont.java:119)
at org.pdfclown.documents.contents.objects.SetFont.getFont(SetFont.java:83)
at org.pdfclown.documents.contents.objects.SetFont.scan(SetFont.java:97)
at org.pdfclown.documents.contents.ContentScanner.moveNext(ContentScanner.java:1330)
at org.pdfclown.documents.contents.ContentScanner$TextWrapper.extract(ContentScanner.java:811)
at org.pdfclown.documents.contents.ContentScanner$TextWrapper.(ContentScanner.java:777)
at org.pdfclown.documents.contents.ContentScanner$TextWrapper.(ContentScanner.java:770)
at org.pdfclown.documents.contents.ContentScanner$GraphicsObjectWrapper.get(ContentScanner.java:690)
at org.pdfclown.documents.contents.ContentScanner$GraphicsObjectWrapper.access$0(ContentScanner.java:682)
at org.pdfclown.documents.contents.ContentScanner.getCurrentWrapper(ContentScanner.java:1154)
at org.pdfclown.tools.TextExtractor.extract(TextExtractor.java:633)
at org.pdfclown.tools.TextExtractor.extract(TextExtractor.java:296)
at coderarjob.kpdfsync.lib.annotator.PdfAnnotatorV1.highlight(PdfAnnotatorV1.java:62)
at coderarjob.kpdfsync.poc.MainFrame$2.run(MainFrame.java:172)
at java.base/java.lang.Thread.run(Thread.java:833)
Caused by: java.io.EOFException
at org.pdfclown.bytes.Buffer.readUnsignedShort(Buffer.java:511)
at org.pdfclown.documents.contents.fonts.CffParser$Index.parse(CffParser.java:306)
at org.pdfclown.documents.contents.fonts.CffParser$Index.parse(CffParser.java:324)
at org.pdfclown.documents.contents.fonts.CffParser.load(CffParser.java:669)
... 27 more
:: Cause #1
java.io.EOFException
at org.pdfclown.bytes.Buffer.readUnsignedShort(Buffer.java:511)
at org.pdfclown.documents.contents.fonts.CffParser$Index.parse(CffParser.java:306)
at org.pdfclown.documents.contents.fonts.CffParser$Index.parse(CffParser.java:324)
at org.pdfclown.documents.contents.fonts.CffParser.load(CffParser.java:669)
at org.pdfclown.documents.contents.fonts.CffParser.(CffParser.java:640)
at org.pdfclown.documents.contents.fonts.Type1Font.getNativeEncoding(Type1Font.java:104)
at org.pdfclown.documents.contents.fonts.Type1Font.loadEncoding(Type1Font.java:151)
at org.pdfclown.documents.contents.fonts.SimpleFont.onLoad(SimpleFont.java:118)
at org.pdfclown.documents.contents.fonts.Font.load(Font.java:738)
at org.pdfclown.documents.contents.fonts.Font.(Font.java:351)
at org.pdfclown.documents.contents.fonts.SimpleFont.(SimpleFont.java:62)
at org.pdfclown.documents.contents.fonts.Type1Font.(Type1Font.java:75)
at org.pdfclown.documents.contents.fonts.Font.wrap(Font.java:249)
at org.pdfclown.documents.contents.FontResources.wrap(FontResources.java:72)
at org.pdfclown.documents.contents.FontResources.wrap(FontResources.java:1)
at org.pdfclown.documents.contents.ResourceItems.get(ResourceItems.java:119)
at org.pdfclown.documents.contents.objects.SetFont.getResource(SetFont.java:119)
at org.pdfclown.documents.contents.objects.SetFont.getFont(SetFont.java:83)
at org.pdfclown.documents.contents.objects.SetFont.scan(SetFont.java:97)
at org.pdfclown.documents.contents.ContentScanner.moveNext(ContentScanner.java:1330)
at org.pdfclown.documents.contents.ContentScanner$TextWrapper.extract(ContentScanner.java:811)
at org.pdfclown.documents.contents.ContentScanner$TextWrapper.(ContentScanner.java:777)
at org.pdfclown.documents.contents.ContentScanner$TextWrapper.(ContentScanner.java:770)
at org.pdfclown.documents.contents.ContentScanner$GraphicsObjectWrapper.get(ContentScanner.java:690)
at org.pdfclown.documents.contents.ContentScanner$GraphicsObjectWrapper.access$0(ContentScanner.java:682)
at org.pdfclown.documents.contents.ContentScanner.getCurrentWrapper(ContentScanner.java:1154)
at org.pdfclown.tools.TextExtractor.extract(TextExtractor.java:633)
at org.pdfclown.tools.TextExtractor.extract(TextExtractor.java:296)
at coderarjob.kpdfsync.lib.annotator.PdfAnnotatorV1.highlight(PdfAnnotatorV1.java:62)
at coderarjob.kpdfsync.poc.MainFrame$2.run(MainFrame.java:172)
Invalid. There are more notes than highlights
is wrongly reported even when there is no issue in the Clippings.txt file.
Note: Issue present in 0.9.0 and 0.10.0.
I'm getting the folloiwing error upon trying to import the My Clippings.txt
file
What am I doing wrong here? Here's my clippings file if that helps to troubleshoot - My Clippings.txt
Book: MMURTL V1.0
Stack trace:
org.pdfclown.util.NotImplementedException: LZWDecode
at org.pdfclown.bytes.filters.Filter.get(Filter.java:74)
at org.pdfclown.objects.PdfStream.getBody(PdfStream.java:193)
at org.pdfclown.objects.PdfStream.getBody(PdfStream.java:155)
at org.pdfclown.documents.contents.Contents$ContentStream.moveNextStream(Contents.java:279)
at org.pdfclown.documents.contents.Contents$ContentStream.(Contents.java:86)
at org.pdfclown.documents.contents.Contents.load(Contents.java:591)
at org.pdfclown.documents.contents.Contents.(Contents.java:366)
at org.pdfclown.documents.contents.Contents.wrap(Contents.java:345)
at org.pdfclown.documents.Page.getContents(Page.java:571)
at org.pdfclown.documents.contents.ContentScanner.(ContentScanner.java:1033)
at org.pdfclown.tools.TextExtractor.extract(TextExtractor.java:297)
at coderarjob.kpdfsync.lib.annotator.PdfAnnotatorV1.highlight(PdfAnnotatorV1.java:62)
at coderarjob.kpdfsync.poc.MainFrame$2.run(MainFrame.java:202)
at java.base/java.lang.Thread.run(Thread.java:833)
Stack trace:
java.lang.NullPointerException
at java.base/java.util.Hashtable.put(Hashtable.java:476)
at org.pdfclown.documents.contents.fonts.PfbParser.parse(PfbParser.java:99)
at org.pdfclown.documents.contents.fonts.Type1Font.getNativeEncoding(Type1Font.java:96)
at org.pdfclown.documents.contents.fonts.Type1Font.loadEncoding(Type1Font.java:141)
at org.pdfclown.documents.contents.fonts.SimpleFont.onLoad(SimpleFont.java:118)
at org.pdfclown.documents.contents.fonts.Font.load(Font.java:738)
at org.pdfclown.documents.contents.fonts.Font.(Font.java:351)
at org.pdfclown.documents.contents.fonts.SimpleFont.(SimpleFont.java:62)
at org.pdfclown.documents.contents.fonts.Type1Font.(Type1Font.java:75)
at org.pdfclown.documents.contents.fonts.Font.wrap(Font.java:249)
at org.pdfclown.documents.contents.FontResources.wrap(FontResources.java:72)
at org.pdfclown.documents.contents.FontResources.wrap(FontResources.java:1)
at org.pdfclown.documents.contents.ResourceItems.get(ResourceItems.java:119)
at org.pdfclown.documents.contents.objects.SetFont.getResource(SetFont.java:119)
at org.pdfclown.documents.contents.objects.SetFont.getFont(SetFont.java:83)
at org.pdfclown.documents.contents.objects.SetFont.scan(SetFont.java:97)
at org.pdfclown.documents.contents.ContentScanner.moveNext(ContentScanner.java:1330)
at org.pdfclown.documents.contents.ContentScanner$TextWrapper.extract(ContentScanner.java:811)
at org.pdfclown.documents.contents.ContentScanner$TextWrapper.extract(ContentScanner.java:817)
at org.pdfclown.documents.contents.ContentScanner$TextWrapper.(ContentScanner.java:777)
at org.pdfclown.documents.contents.ContentScanner$TextWrapper.(ContentScanner.java:770)
at org.pdfclown.documents.contents.ContentScanner$GraphicsObjectWrapper.get(ContentScanner.java:690)
at org.pdfclown.documents.contents.ContentScanner$GraphicsObjectWrapper.access$0(ContentScanner.java:682)
at org.pdfclown.documents.contents.ContentScanner.getCurrentWrapper(ContentScanner.java:1154)
at org.pdfclown.tools.TextExtractor.extract(TextExtractor.java:633)
at org.pdfclown.tools.TextExtractor.extract(TextExtractor.java:296)
at coderarjob.kpdfsync.lib.annotator.PdfAnnotatorV1.highlight(PdfAnnotatorV1.java:62)
at coderarjob.kpdfsync.poc.MainFrame$2.run(MainFrame.java:172)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.