2013-01-20 14:55:01 -05:00
|
|
|
#include <qpdf/QPDF_InlineImage.hh>
|
|
|
|
|
|
|
|
QPDF_InlineImage::QPDF_InlineImage(std::string const& val) :
|
2022-08-02 22:57:33 +01:00
|
|
|
QPDFValue(::ot_inlineimage, "inline-image"),
|
2013-01-20 14:55:01 -05:00
|
|
|
val(val)
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
2022-09-08 11:29:23 -04:00
|
|
|
std::shared_ptr<QPDFObject>
|
2022-06-16 17:45:04 +01:00
|
|
|
QPDF_InlineImage::create(std::string const& val)
|
|
|
|
{
|
|
|
|
return do_create(new QPDF_InlineImage(val));
|
|
|
|
}
|
|
|
|
|
2022-09-08 11:29:23 -04:00
|
|
|
std::shared_ptr<QPDFObject>
|
2022-06-16 17:45:04 +01:00
|
|
|
QPDF_InlineImage::shallowCopy()
|
|
|
|
{
|
|
|
|
return create(val);
|
|
|
|
}
|
|
|
|
|
2013-01-20 14:55:01 -05:00
|
|
|
std::string
|
|
|
|
QPDF_InlineImage::unparse()
|
|
|
|
{
|
|
|
|
return this->val;
|
|
|
|
}
|
|
|
|
|
2018-12-17 17:40:29 -05:00
|
|
|
JSON
|
2022-05-07 07:53:45 -04:00
|
|
|
QPDF_InlineImage::getJSON(int json_version)
|
2018-12-17 17:40:29 -05:00
|
|
|
{
|
|
|
|
return JSON::makeNull();
|
|
|
|
}
|
|
|
|
|
2013-01-20 14:55:01 -05:00
|
|
|
std::string
|
|
|
|
QPDF_InlineImage::getVal() const
|
|
|
|
{
|
|
|
|
return this->val;
|
|
|
|
}
|