Comments (2)
Hi @OisinMoran, and thank you for flagging this! That does seem to be a bug. I'll aim to fix it in a future release. In the meantime, I think you should be able fix it locally by changing that function to the following:
def to_image(self, **conversion_kwargs):
"""
For conversion_kwargs, see http://docs.wand-py.org/en/latest/wand/image.html#wand.image.Image
"""
from .display import PageImage, DEFAULT_RESOLUTION
kwargs = dict(conversion_kwargs)
if "resolution" not in conversion_kwargs:
kwargs["resolution"] = DEFAULT_RESOLUTION
return PageImage(self, **kwargs)
Does that fix the bug for you?
from pdfplumber.
Should be fixed in v0.5.11
! Feel free to re-open this issue, though, if the problem persists for you.
from pdfplumber.
Related Issues (20)
- page.search("text", regex = True) is magnitudes slower in 0.10.4 compared to 0.10.3. HOT 5
- The position of numbers and punctuation marks is incorrect HOT 2
- bottom-to-top text in cell rendered in wrong location in extract_text() HOT 6
- Any way to detect formatting? HOT 1
- Add `autodetect_direction` option to text-extraction methods
- Table extraction bug when lines are just barely end-to-end
- About paragraph recognition
- Custom deduppe_chars char properties HOT 4
- Got different result of "page.to_image()" on MacOS and Linux HOT 7
- TypeError: argument of type 'PDFObjRef' is not iterable HOT 5
- table_settings support draw line per page
- function "extract_words" extract words that don't exist in a pdf. HOT 2
- Extracting text from PDFs with encodings- Identity-H, Roman fails, gives a blank response. HOT 1
- Nothing founded from a pdf. No pages, no chars, nothing. HOT 3
- Text with imaginary lines is being treated as a table
- char need an attr linewidth HOT 4
- Concatenating cropped page objects HOT 1
- page.to_image() PDFium: Data format error HOT 3
- Demonstrations / Examples - links are not available HOT 2
- 逐个获取page.chars方法无法得到有些table里的chars,格式一模一样的table有的就不能获取
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 pdfplumber.