What steps will reproduce the problem?
1. Use DYNMO 450 or 4XL and create Image Print with 0 margins.
What is the expected output? What do you see instead?
You should see the label printed without margins as expected. Instead you get a
label with a 75 pixel margin.
What version of the product are you using? On what operating system?
1.04
Please provide any additional information below.
It seems that the PageEnumeration.createPagePiece(PrintPiece page) is
calculating the offset incorrectly when the paperBounds is negative as it is in
my case.
This code seems to be the problem
<code language="java">
private PrintPiece createPagePiece(PrintPiece page) {
Point offset = new Point(marginBounds.x - paperBounds.x,
marginBounds.y - paperBounds.y);
CompositeEntry entry = new CompositeEntry(page, offset);
Point size = new Point(paperBounds.width, paperBounds.height);
return new CompositePiece(new CompositeEntry[] { entry }, size);
}
</code>
I corrected it for my application by changing it to. I am not sure if this will
work in all instances since this is the first time I have used Paperclips. I am
hoping someone more familiar with the library can validate this fix.
<code language="java">
private PrintPiece createPagePiece(PrintPiece page) {
Point offset = new Point(marginBounds.x - Math.max(0, paperBounds.x),
marginBounds.y - Math.max(0, paperBounds.y));
CompositeEntry entry = new CompositeEntry(page, offset);
Point size = new Point(paperBounds.width, paperBounds.height);
return new CompositePiece(new CompositeEntry[] { entry }, size);
}
</code>
Original issue reported on code.google.com by Navid...@gmail.com on 6 May 2012 at 8:09
Original issue reported on code.google.com by
Navid...@gmail.com
on 6 May 2012 at 8:09