From 7c0b52a0fad3cc9d926f921b2e3127488baaf246 Mon Sep 17 00:00:00 2001 From: John Whitington Date: Thu, 28 Nov 2024 18:56:32 +0000 Subject: [PATCH] Change command structure for -output-image --- cpdfcommand.ml | 11 ++++++----- cpdfmanual.pdf | Bin 445274 -> 445273 bytes cpdfmanual.tex | 8 ++++---- 3 files changed, 10 insertions(+), 9 deletions(-) diff --git a/cpdfcommand.ml b/cpdfcommand.ml index 017c509..bbd29fa 100644 --- a/cpdfcommand.ml +++ b/cpdfcommand.ml @@ -231,7 +231,7 @@ type op = | SetLanguage of string | Redact | Rasterize - | OutputImage of string + | OutputImage let string_of_op = function | PrintFontEncoding _ -> "PrintFontEncoding" @@ -386,7 +386,7 @@ let string_of_op = function | SetLanguage _ -> "SetLanguage" | Redact -> "Redact" | Rasterize -> "Rasterize" - | OutputImage _ -> "OutputImage" + | OutputImage -> "OutputImage" (* Inputs: filename, pagespec. *) type input_kind = @@ -948,7 +948,7 @@ let banned banlist = function | OCGRename | OCGList | OCGOrderAll | PrintFontEncoding _ | TableOfContents | Typeset _ | Composition _ | TextWidth _ | SetAnnotations _ | CopyAnnotations _ | ExtractStream _ | PrintObj _ | ReplaceObj _ | Verify _ | MarkAs _ | RemoveMark _ | ExtractStructTree | ReplaceStructTree _ | SetLanguage _ - | PrintStructTree | Rasterize | OutputImage _ + | PrintStructTree | Rasterize | OutputImage -> false (* Always allowed *) (* Combine pages is not allowed because we would not know where to get the -recrypt from -- the first or second file? *) @@ -3022,7 +3022,7 @@ let specs = ("-rasterize-no-antialias", Arg.Unit (fun () -> args.rast_antialias <- false), " Don't antialias when rasterizing"); ("-rasterize-downsample", Arg.Unit (fun () -> args.rast_downsample <- true), " Antialias by downsampling"); ("-rasterize-jpeg-quality", Arg.Int (fun i -> args.rast_jpeg_quality <- i), " Set JPEG quality"); - ("-output-image", Arg.String (fun s -> args.op <- Some (OutputImage s)), " Output pages as PNGs"); + ("-output-image", Arg.Unit (fun () -> args.op <- Some OutputImage), " Output pages as images"); (* These items are undocumented *) ("-debug", Arg.Unit setdebug, ""); ("-debug-crypt", Arg.Unit (fun () -> args.debugcrypt <- true), ""); @@ -4894,7 +4894,8 @@ let go () = let pdf = get_single_pdf args.op false in let range = parse_pagespec_allow_empty pdf (get_pagespec ()) in write_pdf false (rasterize args.rast_antialias args.rast_downsample args.rast_device args.rast_res args.rast_annots args.rast_jpeg_quality pdf range) - | Some (OutputImage spec) -> + | Some OutputImage -> + let spec = match args.out with File spec -> spec | _ -> error "Output must be to a file" in let pdf = get_single_pdf args.op false in let range = parse_pagespec_allow_empty pdf (get_pagespec ()) in write_images args.rast_device args.rast_res args.rast_jpeg_quality args.tobox args.rast_annots args.rast_antialias args.rast_downsample spec pdf range diff --git a/cpdfmanual.pdf b/cpdfmanual.pdf index 3df3993d9145f8c2b93e846e0554c203de038865..d57225f08ec96409b521b992935b7d823955a9a1 100644 GIT binary patch delta 6391 zcmai#XEt;E_z6GGP*?c(R&SojLzty z_bys&@B4jw|J^_CdtK{V=X#EHKkK-T2bah?mB@+;24L{r$N}OB0D6I>OmciiB+iB^ z!(%h;2Ql!i5px`WkLGZ1>>e4Zd0<-ZPC1j2kmLQ!Ox?1glkM3sFxA~QjrJweCi3CC z38LiYjAl=5%7g<4uC4I7 z$~_4(JX&m~LN@GK4!Eai$_f^U#NUMz$7SZV!Nb1ewL8&IHH!a{x|CZrZB?=fwz%LT zCRN54$|}$|sM2zXsC@9jZpI>^+TTz2ad6yR(6 z`tB8}D^_)0c(zNT+szc?;a<-kCyOE_hBNBm4Cf*bg%%o%ly?ReRh5U9m6@m49Ib$D zA}>!LkwgPU#toBZ!YiL$FOI8^RLvf{y?9i=2#V|bVvZ|oHu-@RiP70TQjiyQz&0;Z z$Igx`co=Q@+aF6mr>N6CX66f>hUfS~4z*LmCbs?hv{{@jAG|&A@Wsm%4QbXH+|%2r z)y83_rOzpv$JB4cy>rHx9?ia*dGoyK`He}bpS#-px{pc!(|IKOT<~uiuD-!H8Aqt1{BhP~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T$kvi@1=T@|06a%V*qQTN;%i?q?Hx@YsCHnsaj zgQ(>|?^Q)rUdH)mYJ)jaYM&lkWwpw_b0Tu^K8au3gOC}tXbR>CMRcp%8|@bC@CW{# zBp%Yi}BLQ)xdLk5?+F>DAwl z69csW9v@_jP49hi5O-8;B<6E?thw`&#QT+ z{fR~}_9v$}_47zSTIQ5ore%S|otHsbgkxX)RsYn3a250E5$^I;{@90*`jk9QoBby) zFQ`BJzpm{Ba;kbm(u_KrJJui~3x{}e)&uKG5c#R)+dtQl{4E3_mZAQGJFe{%yywv` vr@Tc@U8EkHbp3@^>2$tCVL(!1-}f##!Q$D3Eb&2d1f>KOAD@PiCe{A{t#JYP diff --git a/cpdfmanual.tex b/cpdfmanual.tex index 23bd4d9..06bb83e 100644 --- a/cpdfmanual.tex +++ b/cpdfmanual.tex @@ -3837,7 +3837,7 @@ The \texttt{-dump-attachments} operation, when given a PDF file and a directory \vspace{1.5mm} -\noindent\small\verb!cpdf -output-image in.pdf !\\ +\noindent\small\verb!cpdf -output-image in.pdf -o !\\ \noindent\small\verb! [-rasterize[-gray|-1bpp|-jpeg|-jpeggray]!\\ \noindent\small\verb! [-rasterize-res ] [-rasterize-jpeg-quality ]!\\ \noindent\small\verb! [-rasterize-no-antialias | -rasterize-downsample]! @@ -4085,7 +4085,7 @@ Option & Effect\\\hline \noindent In addition to rasterization of pages, we can export them in PNG or JPEG format, again by the use of GhostScript: \begin{framed} - \noindent\small\verb!cpdf -gs gs -output-image image%%%.png in.pdf 10-end! + \noindent\small\verb!cpdf -gs gs -output-image in.pdf 10-end -o image%%%.png! \end{framed} \noindent This will extract pages 10 onwards to the files \texttt{image000.png}, \texttt{image001.png} and so on. All the options above apply, and in addition we can choose which box is rasterized: @@ -4100,8 +4100,8 @@ Option & Effect\\\hline \noindent For example: \begin{framed} - \noindent\small\verb!cpdf -gs gs -output-image image%%%.jpeg -tobox /BleedBox!\\ - \noindent\small\verb! -rasterization-jpeg in.pdf! + \noindent\small\verb!cpdf -gs gs -output-image -tobox /BleedBox!\\ + \noindent\small\verb! -rasterization-jpeg in.pdf -o image%%%.jpeg! \end{framed}