[gs-bugs] [Bug 693081] Cropped PDF displays incorrectly on iOS/Android
bugzilla-daemon at ghostscript.com
bugzilla-daemon at ghostscript.com
Mon Jun 4 12:57:58 UTC 2012
http://bugs.ghostscript.com/show_bug.cgi?id=693081
--- Comment #19 from kjdiya at gmail.com <kjdiya at gmail.com> 2012-06-04 12:57:56 UTC ---
I do not think this is working or will work the way I expect. First of all it
is running without errors but then not producing any output. Secondly I think
conceptually it is going to slice the base page into multiple slices, but I my
specifications may need to have overlapping cropping areas as well (please see
attachment). So I think if there could be a way to simply run a loop using the
earlier cropbox technique that would be what I need.
Something like below:
<<
/EndPage
(loop 1 with x1, y1, w1, h1)
{
exch pop 0 eq {
[/CropBox [x1 y1 w1 h1] /PAGE pdfmark
true
} {
false
} ifelse
}
(loop 2 with x2, y2, w2, h2)
{
exch pop 0 eq {
[/CropBox [x2 y2 w2 h2] /PAGE pdfmark
true
} {
false
} ifelse
}
>> setpagedevice
and so on. So with a single call to gswin32c, the loop will run 4 times for my
4 set of coordinates. Does this makes sense?
(In reply to comment #18)
> Created an attachment (id=8650)
--> (http://bugs.ghostscript.com/attachment.cgi?id=8650) [details]
> demo program
--
Configure bugmail: http://bugs.ghostscript.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
More information about the gs-bugs
mailing list