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
Page gets resized instead of cropped #550
Comments
Hm.. I am not able to reproduce that. Could you add a screenshot of how it looks after? For example one page where left is cropped by 60%, one with right cropped by 60% etc. Do you see the same issue with the latest build found here: |
Okay. It's a bit hard to figure out what is happening. If you are able to help you could:
|
I've done what you asked for, but the issue suddenly stopped reproducing on my machine. I guess we can close it... Of course if it ever happens for me again, I'll know how to capture logs and I'll try to do this, then reopen the bug, but for now I don't think it's likely we will be able to observe it again... (btw. - for Windows paths don't forget to do something about |
For the record - I just got a reproduction of this error and both "log" files only contain |
If you want to dig more into this you can:
|
Hmmm...
Does this tell you anything? |
I think locale.format fails and therefore it try to set scale factor to 0% Here would be some more ideas.
Does this fix the problem? If not you could also try to comment out the self.connect line |
Does this mean the scale factor is pre-filled with 0 and you can't change it? Then that's our bug. If I manually set the field to 0 my results match yours. The field should be pre-filled with 100 and adjustable between 0.5 and 20000. |
I'll have to allocate some time to this and sit down to really gather some more particular info. I think this bug deserves a reopen. One thing I noticed about this is that it seems to occur only if I open a PDF from the "Open with..." option in Windows 10 context menu in its file manager. It seems to work fine when opening the app first and then using the built-in file opening dialog. I'll check the code snippet from @kbengs and try to find an answer to questions asked by @dreua when I have some time to look at this properly. |
Tried on a different Windows machine and got this: |
For the Open With issue, qpdf cannot be loaded.
For the pdfarranger_stderr.txt issue:
|
OK, so in first case I messed stuff up. I tried to get pdfarranger run from and IDE so that I can hook it up to a debugger and take a closer look at what is happening inside - trying to figure out what I have to do to make it run in Windows using system environment I made a spaghetti out of my environment, so I think it's best to not pay attention to that case... Second case: Yup! My bad! Here's stdout after cleaning it up: |
For contrast, a log for the exact same actions, but on a PDF opened using the in-app "Open file" dialog: |
Could you:
|
Unfortunately, the files are the same:
|
No, |
Sorry for my ultra sluggish response! Here it goes: |
Uninstalling mitmproxy caused the issue to stop occurring. Is there any elegant way to shield pdfarranger from loading dlls in such a "random" way in certain scenarios? |
That would be great, a lot of windows issues here seem to be related to loading of the wrong libraries. |
Well observed ! I just checked that mitmproxy add it's bin directory to the %PATH% global variable. There is nothing reasonable we can do for that. You should be able to make mitmproxy and PDF Arranger work well together by cleaning your environment variables after installing mitmproxy. If I wanted to mess around I would suggest to add PDF Arranger to the global |
Describe the bug
When attempting to crop a page, it gets resized instead.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
The page gets cropped by specified amount.
Actual behavior
Page appears to be small - it is resized or the view is zoomed out, but likely the former. It is not cropped.
Input files
test.pdf attached.
Screenshots
I can provide a video if needed.
System and Versions
Additional info
I also noticed that I cannot resize the page - when attempting to change the value in the text field for scale factor, it gets reset to 0 at first opportunity. Pressing The "+" button next to this field does nothing.
The text was updated successfully, but these errors were encountered: