Comments (5)
The box details don't matter too much. Here's an updated version that shows the file is actually written, and contains the text. Not sure if this is harmful or just cosmetic.
import fitz
print(fitz.version)
doc = fitz.open()
page = doc.new_page()
r = fitz.Rect(10, 10, 300, 300)
tw = fitz.TextWriter(page.rect)
print("\nabout to fill the textbox\n")
excess = tw.fill_textbox(r, "blah blah blah blah")
print(excess)
tw.write_text(page, color=(0, 0, 0))
print("\nhello, we got here")
doc.save("foo.pdf")
from pymupdf.
Still true in 1.24.4
from pymupdf.
Thanks for this, i've reproduced it. Investigating some more now.
from pymupdf.
It turns out that this is a change of a diagnostic, not a change in behaviour.
I've disabled the diagnostic in my tree so it'll won't appear in a future release.
from pymupdf.
Fixed in 1.24.5.
from pymupdf.
Related Issues (20)
- convert_to_pdf() - FzErrorFormat: code=7: truncated jbig2 segment header HOT 3
- OSS-Fuzz Integration HOT 6
- SegFault 11 when empty H1 H2 H3 H4 etc element is used in insert_htmlbox HOT 2
- ZeroDivisionError: float division by zero with page.apply_redactions() HOT 4
- PyMuPDF apply_redactions crops parts of the PDF in the final output HOT 7
- page.links return all links with same xref, is it something possible ?? HOT 6
- Invalid OCGs not ignored by SVG image creation HOT 1
- Redaction Annotation Fill Not Matching Up With Redacted Section HOT 4
- Updating Annotations HOT 1
- False result when finding bounding boxes for lines in blocks. HOT 6
- For what reason IRect exists? HOT 1
- MuPDF error: argument error: not a dict (string) HOT 3
- Get image inside table's cell
- `'width'` in `Page.get_drawings()` returns width equal as 0 HOT 2
- trouble in page.find_tables HOT 1
- Garbled extraction for Amazon Sustainability Report HOT 6
- This pdf would cause stack overflow exception, HOT 3
- ImportError: DLL load failed while importing _extra: The specified module could not be found. HOT 1
- Story.fit_width() has a weird line HOT 2
- The position box obtained through the get_text() method is inaccurate HOT 5
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 pymupdf.