Comments (6)
You did not provide the reproducing file.
from pymupdf.
You did not provide the reproducing file.
sorry, i could not upload mypdf file for some reason.
However, it is pretty clear that 'to' point in toc is based on bottom-left
origin, not top-left
origin.
i simply want to convert 'to' points to top-left
coordinates.
from pymupdf.
It is not all clear:
What are we even looking at? Where do the "**" come from?
The TOC entries seem to point to named destinations - are there errors in the PDF? Or in our code?
Did the PDF creator want to point to the bottom left point π€·ββοΈ?
Have you tried to look at the PDF's names dictionary?
Again: without the file in question we are already wasting time.
from pymupdf.
Maybe you simply had a question and just wanted to know how to do coordinate transformation?
In that case you shouldn't have submitted an error report but a post in Discussions.
from pymupdf.
It is not all clear: What are we even looking at? Where do the "**" come from? The TOC entries seem to point to named destinations - are there errors in the PDF? Or in our code? Did the PDF creator want to point to the bottom left point π€·ββοΈ? Have you tried to look at the PDF's names dictionary?
Again: without the file in question we are already wasting time.
Sorry for the "**" signs, i just want to get bolded fonts, and i already delete them.
my question is:
get_toc(simple=False)
returns a Point(0.0, 761.8583) for 1.1 Hello World
, and a Point(0.0, 731.8583) for 1.1.1. first step to hello world
.
1.1 Hello World
is above 1.1.1. first step to hello world
, however, Point(0.0, 761.8583) is greater than Point(0.0, 731.8583), which is not based on pymupdf top-left coordinates.
from pymupdf.
Ok - to make some progress, I transferring this thread to Discussions, and we can continue there.
from pymupdf.
Related Issues (20)
- set_toc method error HOT 8
- Marked content sequences in text trace dictionary HOT 3
- 1.24.2/1.24.3: spurious characters introduced when using subset_fonts and insert_pdf HOT 7
- PyMuPDF 1.24.4 causes "segmentation fault" under Python 3.12 and old MAC OS HOT 12
- pixmap.invert_irect(pixmap.irect) take 7 seconds HOT 3
- cygwin x64 pip3 install pymupdf error HOT 2
- When extracting a numbered list, the result is not as expected. HOT 3
- Small size after apply fitz.TOOLS.set_small_glyph_heights(True) HOT 2
- page.get_label() gets wrong label on the first page of doc
- doc.saveIncr() error and doc.close error HOT 2
- Text Color Change for different fonts HOT 1
- get_toc(simple=False) AttributeError: 'Outline' object has no attribute 'rect' HOT 2
- document.insert_pdf throws TypeError HOT 1
- MuPDF error: syntax error: cannot find ExtGState resource 'BlendMode0' HOT 4
- custom metadata keys HOT 1
- Change Visibility of OCR'd pdf text layer HOT 1
- pdf citation
- ζεδΈζpdfεΊη°δΉ±η HOT 9
- Add dotted gridline detection to table recognition
- Add Wheel for ARM aarch64 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.