Comments (4)
Thanks for reporting! Can you send me the pdf which produces the error?
On Nov 18, 2015 19:44, "davemcphee" [email protected] wrote:
C:\Users\User\Desktop\python\CouncilAgendaMapper>pdfx --debug agenda.pdf
DEBUG - init - Init with uri: agenda.pdf
Document infos:
- Author = blah
- CreationDate = D:20151106153359-06'00' Traceback (most recent call
last): File "C:\Python33\lib\runpy.py", line 160, in run_module_as_main
"main", fname, loader, pkg_name) File "C:\Python33\lib\runpy.py",
line 73, in run_code exec(code, run_globals) File
"C:\Python33\Scripts\pdfx.exe__main.py", line 9, in File
"C:\Python33\lib\site-packages\pdfx\cli.py", line 90, in main print("- %s =
%s" % (k, parse_str(v).strip("/"))) File
"C:\Python33\lib\encodings\cp437.py", line 19, in encode return
codecs.charmap_encode(input,self.errors,encoding_map)[0]
UnicodeEncodeError: 'charmap' codec can't encode character '\xae' in
position 21 : character maps toNot sure what the correct way to handle encoding errors would be, skip the
char?I usually fix this kind of issue by changing the cmd window encoding, eg.:
cmd> chcp 65001—
Reply to this email directly or view it on GitHub
#13.
from pdfx.
Hi Chris,
sure thing, I think it was this:
http://www.austintexas.gov/edims/document.cfm?id=242173
I know nothing about PDF encoding, but I do know about parsing HTML from
that source, and it's all generated in MS Word, so expect a horror show
inside that PDF. Good luck :)
On Wed, Nov 18, 2015 at 4:24 PM Chris Hager [email protected]
wrote:
Thanks for reporting! Can you send me the pdf which produces the error?
On Nov 18, 2015 19:44, "davemcphee" [email protected] wrote:C:\Users\User\Desktop\python\CouncilAgendaMapper>pdfx --debug agenda.pdf
DEBUG - init - Init with uri: agenda.pdf
Document infos:
- Author = blah
- CreationDate = D:20151106153359-06'00' Traceback (most recent call
last): File "C:\Python33\lib\runpy.py", line 160, in run_module_as_main
"main", fname, loader, pkg_name) File "C:\Python33\lib\runpy.py",
line 73, in run_code exec(code, run_globals) File
"C:\Python33\Scripts\pdfx.exe__main.py", line 9, in File
"C:\Python33\lib\site-packages\pdfx\cli.py", line 90, in main print("-
%s =
%s" % (k, parse_str(v).strip("/"))) File
"C:\Python33\lib\encodings\cp437.py", line 19, in encode return
codecs.charmap_encode(input,self.errors,encoding_map)[0]
UnicodeEncodeError: 'charmap' codec can't encode character '\xae' in
position 21 : character maps toNot sure what the correct way to handle encoding errors would be, skip
the
char?I usually fix this kind of issue by changing the cmd window encoding,
eg.:
cmd> chcp 65001—
Reply to this email directly or view it on GitHub
#13.—
Reply to this email directly or view it on GitHub
#13 (comment).
from pdfx.
Just a note: I've found out that this problem is caused by the Windows console not being able to display unicode characters. I'm going to look into a solution.
from pdfx.
Should work now on the Github version. CLI tries to encode contents to console encoding:
Line 111 in b52d3a7
from pdfx.
Related Issues (20)
- PDF references should not be treated as such based on extension
- "URI" in PDF attributes may be a string itself HOT 1
- TypeError: '<' not supported between instances of 'tuple' and 'int' HOT 6
- Checking a list of PDF URLs
- AttributeError: 'PDFObjRef' object has no attribute 'decode' HOT 1
- PDFx won't see links in some PDFs HOT 1
- How to get HyperText(not HyperLink)?
- Include Check-Links Results in Output HOT 1
- Cuts off links that span two lines HOT 3
- Copious INFO logging HOT 2
- Thanks a lot, and a question HOT 1
- timeout option HOT 2
- JSON Output for Check Links Subcommand
- UnicodeDecodeError: 'utf-8' codec can't decode byte 0xe9 in position 62: invalid continuation byte HOT 2
- getting a 400 for twitter.com
- Detect metadata from Arxiv Documents
- Title detection heurisitcs HOT 3
- Recursive URL extraction from PDFs - feature request
- unable to install via easy_install HOT 1
- Point pdf links to local files downloaded - feature request HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pdfx.