Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > gnu.emacs.help > #61064
| From | steve g <Sgonedes1977@gmail.com> |
|---|---|
| Newsgroups | gnu.emacs.help |
| Subject | Re: Script to pdf |
| References | <un7d30$3qk60$1@dont-email.me> |
| Date | 2026-06-19 23:34 -0400 |
| Message-ID | <87se6hhol1.fsf@gmail.com> (permalink) |
Wu Ming <wu.ming2@icloud.com > writes: > New to Emacs. This may be my introduction to it. > > In non-interactive mode, via bash script, I would like to perform text > replacement in a Open Document text file and then save it as PDF. As > alternative save ODT as HTML first and then perform the other steps. > > Is it possible? File: emacs.info, Node: PostScript, Next: PostScript Variables, Up: Printing C-u ps-print-buffer-with-faces That is Control-u followed by ps-print-buffer-with-faces. emacs will ask the name of the file and save the current buffer as a postscript document. going from postscript to pdf is usually not a problem. use poppler or ghostscript. > I have a bash script completing the process with HTML as input. But how > LibreOffice handles the conversion from ODT is tricky. Sometimes adds > unnecessary tags. Also saving HTML to PDF requires some tuning because, as > far as I know, the format is not meant for paper publishing. Emacs may have > better options. unfortunately on unix systems printing has been beyond difficult. I think most people use CUPs these days. back in the day you would just copy the postscript file to /dev/lp0, which still exists on my system. If you need to use an HP printer then you need ghostscript. > Thanks for sharing. you are welcomed.
Back to gnu.emacs.help | Previous | Next — Previous in thread | Find similar | Unroll thread
Script to pdf Wu Ming <wu.ming2@icloud.com > - 2024-01-04 22:56 +0000
Re: Script to pdf Sebastian Aviña (HechoEnMexico) <sebastianavina@gmail.com> - 2024-02-17 21:26 -0800
Re: Script to pdf Wu Ming <wu.ming2@icloud.com > - 2024-03-02 01:17 +0000
Re: Script to pdf Julieta Shem <jshem@yaxenu.org> - 2024-03-02 21:47 -0300
Re: Script to pdf Wu Ming <wu.ming2@icloud.com > - 2024-03-04 04:16 +0000
Re: Script to pdf Julieta Shem <jshem@yaxenu.org> - 2024-03-04 14:21 -0300
Re: Script to pdf steve g <Sgonedes1977@gmail.com> - 2026-06-19 23:41 -0400
Re: Script to pdf Keith Thompson <Keith.S.Thompson+u@gmail.com> - 2026-06-20 16:27 -0700
Re: Script to pdf steve g <Sgonedes1977@gmail.com> - 2026-06-19 23:34 -0400
csiph-web