Write metainfo to PDF files via pdfmarks for ghostscript. More...
#include <klfbackend.h>
Public Member Functions | |
KLFPdfmarksWriteLatexMetaInfo (QByteArray *string) | |
void | saveField (const QString &k, const QString &v) |
void | finish () |
void | savePDFField (const QString &k, const QString &v) |
Saves the field without prepending 'KLF' to the key. | |
QString | loadField (const QString &) |
Write metainfo to PDF files via pdfmarks for ghostscript.
Example code
QString pdfmarkstr; KLFPdfmarksWriteLatexMetaInfo pdfmetainfo(&pdfmarkstr); pdfmetainfo.savePDFField("Title", in.latex); pdfmetainfo.savePDFField("Keywords", "KLatexFormula KLF LaTeX equation formula"); pdfmetainfo.savePDFField("Creator", "KLatexFormula " KLF_VERSION_STRING); pdfmetainfo.saveMetaInfo(in, settings); pdfmetainfo.finish(); // now pdfmarkstr contains the pdfmarks string to pass to ghostscript.
Definition at line 728 of file klfbackend.h.
QString KLFPdfmarksWriteLatexMetaInfo::loadField | ( | const QString & | ) | [virtual] |
Implements KLFAbstractLatexMetaInfo.
Definition at line 263 of file klfbackend.cpp.
References KLF_ASSERT_CONDITION.