Skip to content
This repository has been archived by the owner on Dec 9, 2018. It is now read-only.

full page images? #583

Closed
MarcGodard opened this issue Oct 5, 2015 · 8 comments
Closed

full page images? #583

MarcGodard opened this issue Oct 5, 2015 · 8 comments

Comments

@MarcGodard
Copy link

Is there a way to get full page images? the fallback option still removes white spaces on the margins, but i would like that included in the images.

@MarcGodard
Copy link
Author

I am guessing this project is no longer being improved on or is inactive?

@duanyao
Copy link
Collaborator

duanyao commented Oct 23, 2015

I believe removing margins of background images reduces memory consumption of browsers. Why the margins are important to you?

@MarcGodard
Copy link
Author

Because I am using the images for a zoom in effect in a modal and the white spacing around it is not constant and therefore creating difficulty in grabbing the correct portion of the image.

@duanyao
Copy link
Collaborator

duanyao commented Oct 31, 2015

If all you want is converting PDF to full page images, maybe poppler's pdftocairo or pdfbox's PDFToImage do a better job.

@MarcGodard
Copy link
Author

Actually it wouldn't, 1) I already use PDF2HTMLEx for the HTML, and 2) What I do is make the user click on the HTML and a popup bring up that section (cutout) in an image and zoomed in. The problem is calculating what part of that image to bring up because it doesn't match the HTML version. If the PDF was a full image I can easily calculate the HTML version to image, but because of the unpredictable white space, your image version cannot be matches this way.

Using a different tool for the image causes the same problem as they do white spacing differently.

@MarcGodard
Copy link
Author

@coolwanglu Don't you think this would be a good option? If you can help me point to where in the code I can add this, I could do it.

@coolwanglu
Copy link
Owner

I wonder if the use_cropbox parameter would help

@MarcGodard
Copy link
Author

I will take a look next time I am on that project. Thanks.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants