Skip to content
Discussion options

You must be logged in to vote

This is possible - at least mostly.
If the desired object is an image, this is particularly easy:

  1. identify the image's xref and its bbox
  2. Use page.insert_image(bbox, xref=xref, overlay=False)

If it is a drawing (vector graphics), things are more difficult. You first must find a way to identify the object. It will generally be a sublist of page.get_drawings(). Once identified, just re-execute the draw commands contained in the sublist of paths.

If it is text, then things are similar as with vector graphics.
So much for now ...

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by JorjMcKie
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants