Comments (9)
Setting the page orientation should be easy. Setting the media size to auto
could be a bit more tricky as it would assume that the PDF page sizes are
standard printing sizes and usually they are not.
I could get the orientation to auto for now. Will that work? I'll have to think
through the media size portion.
Let me know as I am getting ready to put out a new minor release today. I could
include this one change.
Thanks,
Pedro
Original comment by [email protected]
on 23 Feb 2012 at 7:54
- Changed state: Accepted
- Added labels: Type-Enhancement
- Removed labels: Type-Defect
from jmupdf.
Hi Pedro,
Orientation to auto would be great.
Thank you.
Original comment by [email protected]
on 23 Feb 2012 at 7:57
from jmupdf.
One more Question,
does Auto mean if first page is landscape and second page is portrait then the
printjob will also have first page landscape and second portrait?
Or do you just read the first page?
Original comment by [email protected]
on 23 Feb 2012 at 8:01
from jmupdf.
Yes. I will determine auto orientation based on the width and height of page.
If width is wider than height then it is landscape and vice versa. I could send
you a binary in a few minutes with the change for you to test before I publish
final version. If so let me know what to send (win or linus x32 or x64).
Original comment by [email protected]
on 23 Feb 2012 at 8:06
from jmupdf.
[deleted comment]
from jmupdf.
Please send me windows x64 or x86, I can test on any Virtual machine.
Thank you.
Original comment by [email protected]
on 23 Feb 2012 at 8:08
from jmupdf.
Try this. Let me know if it works for you. To auto print just add the following
line to your code:
p.setAutoRotate(true);
This will override whatever OrientationRequested you pass in. So don't worry
about that parm just pass in whatever for now. In the future I might permit a
null.
Pedro
Original comment by [email protected]
on 23 Feb 2012 at 9:39
Attachments:
from jmupdf.
Hi Pedro,
my first Test was successfully.
You are a genies. Great word, thanks.
Original comment by [email protected]
on 23 Feb 2012 at 10:29
from jmupdf.
New binaries are available.
Enjoy :-)
Pedro
Original comment by [email protected]
on 24 Feb 2012 at 5:34
- Changed state: Fixed
from jmupdf.
Related Issues (20)
- JMupdf crash on loading some pdfs HOT 1
- Error in zoom HOT 1
- Anti-aliasing level ignored in 0.4.1 HOT 2
- JVM/JNI crash when loading some pdf files. HOT 1
- Memory usage (leakage) HOT 2
- Critical slowdown and a lot of log output for certain PDFs HOT 2
- Render pages without loading the full pdf file
- please provide this feature, extract text coordinate
- Text Encoding
- 64bit dil not rendering image in pdf, 32bit handles it great. HOT 1
- bundled mupdf is old HOT 2
- jmupdf is not identified as GPL (or Affero GPL) as required by mupdf HOT 1
- Problem with inicialize jmupdf
- Jmupdf Crash and Forces Application to Quit. HOT 3
- Example/Convert: PDF to Rasterimage (all) - Image is slightly rotated? HOT 2
- How to set a fixed width (or height) when converting to an image?
- How to set a fixed width (or height) when converting to an image? HOT 2
- JPview is being ported to jMuPDF HOT 2
- Linux Support for 0.5.0 HOT 3
- setting devicehints for Image interpolation
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from jmupdf.