Creating PDFs on CentOS 7

Matt Graham mhgraham at crow202.org
Tue Nov 17 17:28:13 MST 2020


On 2020-11-17 16:05, Keith Smith via PLUG-discuss wrote:
> I need to create PDFs from collected data

What is the nature of this "collected data"?  Images?  Text?  Both?  
Complex layouts?  OOO documents?  The details of the data you have 
determine what you need to do.  If you can get the document into some 
sort of PostScript, gs can convert PostScript into a PDF.[0]  Many 
programming languages have ways to manipulate PostScript and PDFs too.  
IIRC there's libpdf at least and PHP has a library dedicated to 
PostScript.  However, the way you asked this question makes me think you 
are not ready to try that.

> I'm not coming up with much when searching for what
> packages are available on CentOS 7.

Details of the "collected data" are necessary.  What data do you have, 
what format is it in, and what do you want the final output to look 
like?  ISTR something where someone ran OOO in an Xvfb and essentially 
ran "open document X, File->Print->print to file X.pdf" in a loop.  Bit 
of a kludge, but it worked.  Distro should be irrelevant to this, even 
though CentOS is dead to me since they dropped KDE.

[0] It was not all that great at implementing hyperlinks from PDF 
location 1 to PDF location 2 the last time I tried, but that was years 
ago, so it may have been improved by now.

-- 
Crow202 Blog: http://crow202.org/wordpress
There is no Darkness in Eternity
But only Light too dim for us to see.


More information about the PLUG-discuss mailing list