2012-07-08 18:19:19 +00:00
|
|
|
#include <qpdf/QPDF_Reserved.hh>
|
2022-02-04 21:31:31 +00:00
|
|
|
|
2012-07-08 18:19:19 +00:00
|
|
|
#include <stdexcept>
|
|
|
|
|
2022-08-02 21:57:33 +00:00
|
|
|
QPDF_Reserved::QPDF_Reserved() :
|
|
|
|
QPDFValue(::ot_reserved, "reserved")
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
2022-09-08 15:29:23 +00:00
|
|
|
std::shared_ptr<QPDFObject>
|
2022-06-16 16:45:04 +00:00
|
|
|
QPDF_Reserved::create()
|
|
|
|
{
|
|
|
|
return do_create(new QPDF_Reserved());
|
|
|
|
}
|
|
|
|
|
2022-09-08 15:29:23 +00:00
|
|
|
std::shared_ptr<QPDFObject>
|
2022-11-14 17:54:12 +00:00
|
|
|
QPDF_Reserved::copy(bool shallow)
|
2022-06-16 16:45:04 +00:00
|
|
|
{
|
|
|
|
return create();
|
|
|
|
}
|
|
|
|
|
2012-07-08 18:19:19 +00:00
|
|
|
std::string
|
|
|
|
QPDF_Reserved::unparse()
|
|
|
|
{
|
2022-08-02 18:13:29 +00:00
|
|
|
throw std::logic_error(
|
|
|
|
"QPDFObjectHandle: attempting to unparse a reserved object");
|
2012-07-08 18:19:19 +00:00
|
|
|
return "";
|
|
|
|
}
|
2013-01-22 14:57:07 +00:00
|
|
|
|
2018-12-17 22:40:29 +00:00
|
|
|
JSON
|
2022-05-07 11:53:45 +00:00
|
|
|
QPDF_Reserved::getJSON(int json_version)
|
2018-12-17 22:40:29 +00:00
|
|
|
{
|
2022-08-02 18:13:29 +00:00
|
|
|
throw std::logic_error(
|
2022-09-08 12:03:57 +00:00
|
|
|
"QPDFObjectHandle: attempting to get JSON from a reserved object");
|
2018-12-17 22:40:29 +00:00
|
|
|
return JSON::makeNull();
|
|
|
|
}
|