Skip to content
Discussion options

You must be logged in to vote

Let me see if I got you.

  • On page n of your thesis, there is a bitmap image, shown in some bbox of that page (boundary box).
  • For that bitmap you have a page in a separate PDF, which shows that same picture, but in a vector graphic (SVG?) version.
  • You want to get rid of the bitmap and instead the SVG image been displayed ... in that same bbox.

So far correct?

If yes:

  1. Determine the xref of the bitmap on the thesis file
  2. Determine the bbox of the bitmap
  3. Delete the bitmap
  4. Insert the vector graphic PDF page (or its vector graphic sub rectangle) in the bbox of the bitmap

Ad 1. & 2.
Make a list of images of page n of thesis:

from pprint imprt pprint
imglist = page.get_images()
pprint(imglist)
[(

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@sfadschm
Comment options

@JorjMcKie
Comment options

Answer selected by sfadschm
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants