mirror of
https://github.com/qpdf/qpdf.git
synced 2025-01-03 07:12:28 +00:00
Add QPDFObjGen::unparse
This commit is contained in:
parent
7540d2082a
commit
a76decd2d5
@ -1,5 +1,7 @@
|
|||||||
2021-02-21 Jay Berkenbilt <ejb@ql.org>
|
2021-02-21 Jay Berkenbilt <ejb@ql.org>
|
||||||
|
|
||||||
|
* Add QPDFObjGen::unparse()
|
||||||
|
|
||||||
* Add QPDFObjectHandle::copyStream() for making a copy of a stream
|
* Add QPDFObjectHandle::copyStream() for making a copy of a stream
|
||||||
within the same QPDF instance.
|
within the same QPDF instance.
|
||||||
|
|
||||||
|
@ -43,6 +43,8 @@ class QPDFObjGen
|
|||||||
int getObj() const;
|
int getObj() const;
|
||||||
QPDF_DLL
|
QPDF_DLL
|
||||||
int getGen() const;
|
int getGen() const;
|
||||||
|
QPDF_DLL
|
||||||
|
std::string unparse() const;
|
||||||
|
|
||||||
QPDF_DLL
|
QPDF_DLL
|
||||||
friend std::ostream& operator<<(std::ostream&, const QPDFObjGen&);
|
friend std::ostream& operator<<(std::ostream&, const QPDFObjGen&);
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
#include <qpdf/QPDFObjGen.hh>
|
#include <qpdf/QPDFObjGen.hh>
|
||||||
|
#include <qpdf/QUtil.hh>
|
||||||
|
|
||||||
QPDFObjGen::QPDFObjGen() :
|
QPDFObjGen::QPDFObjGen() :
|
||||||
obj(0),
|
obj(0),
|
||||||
@ -42,3 +43,10 @@ std::ostream& operator<<(std::ostream& os, const QPDFObjGen& og)
|
|||||||
os << og.obj << "," << og.gen;
|
os << og.obj << "," << og.gen;
|
||||||
return os;
|
return os;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
std::string
|
||||||
|
QPDFObjGen::unparse() const
|
||||||
|
{
|
||||||
|
return QUtil::int_to_string(this->obj) + "," +
|
||||||
|
QUtil::int_to_string(this->gen);
|
||||||
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user