Using PYMUPDF to reconstruct PDF, previewing in some front-end libraries may lose some display of vector images, #3893
Unanswered
K8S666
asked this question in
Looking for help
Replies: 2 comments 5 replies
-
The test found that the written text does not belong to any layer. This may be the reason why other tools fail to render. Is there a way to specify the text insertion layer? |
Beta Was this translation helpful? Give feedback.
1 reply
-
If you use redactions to replace text, please watch out how you set the |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Using PYMU to reconstruct PDF, previewing in some front-end libraries may lose some display of vector images
Preconditions:
I tried using PYMU to extract the text and coordinates from the document, and replaced the new text with the original coordinates. After making modifications on the original PDF, I saved the document
result:
Preview the modified document using the front-end library and find that some vector lines or graphics on the page are not displayed; But when I preview the same document using Adobe PDF, it can still be fully displayed;
Question:
I'm not sure if it's my PYMU refactoring method that caused some graphics to be lost or something else;
The left side of the attached image shows the preview effect in the frontend library, the left side shows the source file, and the right side shows the processed file; Please also attach the files before and after processing
Beta Was this translation helpful? Give feedback.
All reactions