git.asbjorn.biz
/
swftools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fixed custom clipping
[swftools.git]
/
pdf2swf
/
pdf2swf.cc
diff --git
a/pdf2swf/pdf2swf.cc
b/pdf2swf/pdf2swf.cc
index
84bd1fe
..
5510226
100644
(file)
--- a/
pdf2swf/pdf2swf.cc
+++ b/
pdf2swf/pdf2swf.cc
@@
-568,7
+568,11
@@
int main(int argn, char *argv[])
height += ymax[y];
ymax[y] = height;
}
height += ymax[y];
ymax[y] = height;
}
- dev_output_startframe(swf, width, height);
+ if(custom_clip) {
+ dev_output_startframe(swf, clip_x2 - clip_x1, clip_y2 - clip_y1);
+ } else {
+ dev_output_startframe(swf, width, height);
+ }
for(t=0;t<pagenum;t++) {
int x = t%xnup;
int y = t/xnup;
for(t=0;t<pagenum;t++) {
int x = t%xnup;
int y = t/xnup;