FM2PS(1)
β¨ FM2PS π
okay bestie, welcome to fm2ps, section 1 of the manual β the batch processing utility page. pull up a chair, grab a boba, we're doing Frame files today and honestly? it's giving iconic. π
πΈ NAME πΈ
fm2ps β Batch Processing Utility π
π¦ PURPOSE π¦
so sdfbatch is a preprocessor for fmbatch, which is FrameMaker's command-line driven batch processing utility. that's the whole vibe. it goes in front and sets things up. periodt. β¨
π USAGE π
here's the whole shape of it, no cap:
usage : fm2ps [-h[help]] [-f fmt_file]
[-F fmt_what] [-u] [-p[print_doc]]
[-P paper_size] [-s[save_ext]]
[-S save_fmt] [-n] [-t timeout]
frame_file ...
purpose: convert Frame files to PostScript
version: 2.000 (SDF 2.001)
and the options, laid out for you because we love clarity in this house:
-hβ display help on options π-fβ formats file-Fβ formats to import-uβ update documents-pβ print documents-Pβ paper size name-sβ save extension-Sβ save file format-nβ output the batch file (instead of callingfmbatch)-tβ timeout for printer driver to generate ps
π DESCRIPTION π
give it a set of FrameMaker documents and sdfbatch will literally do all of this for you:
- change the formatting of the documents (ala Use Formats From) π
- update the documents (i.e. cross-references, etc.) π
- print the documents π¨οΈ
- save the documents in a nominated file format πΎ
π«Ά the -h help situation
the -h option provides help. if you specify it with no parameter, you get a brief description of each option β cute lil snack. but if you wanna see the attributes for one specific option, just pass the option letter as the parameter. iykyk. β¨
π changing formatting
to change formatting, use the -f option to name the file you're importing the formats from.
the -F option says what formats get imported, and its argument is a set of the characters in this table right here:
pβ Paragraph formatsfβ Font formatslβ Page layoutscβ Cross referencesvβ Variablesrβ Reference page contentstβ Table formatsxβ Conditional textkβ Colormβ mathBβ Preserve manual page breaksOβ Preserve other formatting overrides
by default, all formats are imported. yes, ALL of them. she's generous. π
π updating
to update documents, use the -u option. that's it, that's the section.
π¨οΈ printing
to print documents, use the -p option. if you don't hand it a parameter, the file gets printed to the default printer. want a PostScript file instead? pass the "file" keyword as the parameter. orrrr the parameter can be the name of a print settings file. your call, bestie. β¨
π paper size
when generating a PostScript file, you can set the paper size with the -P option. the default value is global.
so here's the tea: the paper size name is actually mapped to a print settings file called paper_size.fmver in the stdlib library directory. fmver is typically either fm4 or fm5, depending on which version of FrameMaker you're using. πΈ
πΎ saving
to save documents, use the -s option. by default, this saves each file. wanna change the extension? just supply an argument to the -s option. slay.
π¦ picking a save format
to specify a different format, use the -S option. possible values are:
mβ MIFaβ line-oriented ASCIItβ paragraph-oriented ASCIIdβ Frame documentlβ View-Only Frame document-β file's current format [default]
β οΈ take care with the file extension β any existing files will be replaced without warning. no undo, no takebacks, no "wait bestie". π
π the -n debugging option
the -n option causes the generated fmbatch file to be output. i.e. fmbatch is not called. this option is useful for debugging. π΅οΈβοΈ
β±οΈ the -t timeout
the -t option lets you tune the time-out used when waiting for the print driver to generate a PostScript file. the default value is 300 seconds (i.e. 5 minutes). generous queen. π
π― mixing and matching
a combination of the f, u, p and s options can be supplied if more that one operation is required per file. for example, you may wish to import formats and then save the resultant file. for each file, the operations are always done in the following order:
- formatting
- updating
- printing
- saving
Note: Not all of the values documented for the-Fand-Soptions may be supported in Frame versions before 4.0, and additional values may be supported in future versions. As such, the values supplied to these options are simply embedded in the generatedsdfbatchfile. i.e. no checking is done on the value. This behaviour is considered a feature. π (fr fr, that's what it says.)
π EXAMPLES π
to format and print a set of files:
sdfbatch -fmyfmts.doc -p *.doc
to convert mif files to binary files:
sdfbatch -sdoc -Sd *.mif
to copy Frame variables from a file to a set of files:
sdfbatch -fvariable.mif -Fv -s *.doc
and that's the whole page, bestie!! π«Ά this was perl v5.36.0, dated 2023-08-02 β shoutout to the original FM2PS(1) crew, mwah, iconic, no notes. πβ¨ππ¦
π¦ where this page comes from
- debian trixie: sdf 2.001+1-9
- ubuntu noble: sdf 2.001+1-9
- ubuntu questing: sdf 2.001+1-9
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms