Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Duplicate images in PDF > Find which pages it occurs on #718

Open
eddih19 opened this issue Jun 5, 2024 · 0 comments
Open

Duplicate images in PDF > Find which pages it occurs on #718

eddih19 opened this issue Jun 5, 2024 · 0 comments
Labels

Comments

@eddih19
Copy link

eddih19 commented Jun 5, 2024

Hi!

I've got a document which contains several duplicates of images, getObjectsByType('XObject', 'Image') gets all the images but seems to "skip" or combine duplicates. Usually this wouldn't be a problem but I am relying on the specific order of the images.

Is one of the following solutions possible?;

  1. Loop through each page and get the Xobjects from the specific page (getObjectsByType doesn't work in the getPages() loop)

  2. Check the getDetails() (or something similar) of the object to see which pages it occurs on?

  3. Disable the skip/combine function and obtain all images

Many thanks in advance! :)

@k00ni k00ni added the question label Jun 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants