more
This commit is contained in:
parent
e27eb54cfd
commit
b93b230fa4
2
Makefile
2
Makefile
|
@ -18,7 +18,7 @@ OCAMLLDFLAGS = -g
|
|||
all : native-code native-code-library byte-code-library top htdoc
|
||||
|
||||
clean ::
|
||||
rm -rf doc foo foo2 out.pdf out2.pdf foo.pdf *.cmt *.cmti *.json
|
||||
rm -rf doc foo foo2 out.pdf out2.pdf foo.pdf *.cmt *.cmti *.json debug/*.pdf
|
||||
|
||||
DOC_FILES = cpdferror.mli cpdfjson.mli cpdfstrftime.mli cpdfcoord.mli \
|
||||
cpdfattach.mli cpdfpagespec.mli cpdfposition.mli cpdf.mli \
|
||||
|
|
3
cpdf.ml
3
cpdf.ml
|
@ -2977,14 +2977,17 @@ let twoup fast pdf =
|
|||
let endpage = Pdfpage.endpage pdf in
|
||||
let all = ilist 1 endpage in
|
||||
let pdf = scale_pdf ~fast (many (sc, sc) endpage) pdf all in
|
||||
Pdfwrite.pdf_to_file pdf "scaled.pdf";
|
||||
let pdf =
|
||||
impose
|
||||
~x:2. ~y:1. ~fit:false ~columns:false ~rtl:false ~btt:false ~center:true
|
||||
~margin:0. ~spacing:0. ~linewidth:0. ~fast pdf
|
||||
in
|
||||
Pdfwrite.pdf_to_file pdf "imposed.pdf";
|
||||
let endpage = Pdfpage.endpage pdf in
|
||||
let all = ilist 1 endpage in
|
||||
let pdf = upright all (rotate_pdf ~-90 pdf all) in
|
||||
Pdfwrite.pdf_to_file pdf "uprighted.pdf";
|
||||
scale_to_fit_pdf ~fast Cpdfposition.Diagonal 1. (many (width, height) endpage) () pdf all
|
||||
|
||||
(* \section{Output info} *)
|
||||
|
|
|
@ -0,0 +1 @@
|
|||
For placing temporary debug PDF files. Cleaned by make clean.
|
Loading…
Reference in New Issue