Apply native PDF page dictionaries and viewport projection
This commit is contained in:
1 parent
a6ba70aa46
commit
d1ddf4bfeb
19 files changed
+410
-40
No files matched your search
@@ -646,6 +646,8 @@ pub struct State {
|
||||
#[serde(default, skip_serializing_if = "Option::is_none")]
|
||||
pub(super) pdf_objects: Option<Box<crate::pdf_device::page_resources::PdfObjects>>,
|
||||
pub(super) pdf_info: Vec<u8>,
|
||||
#[serde(default, skip_serializing_if = "Vec::is_empty")]
|
||||
pub(super) pdf_pages_attributes: Vec<u8>,
|
||||
pub(super) glyph_unicode: crate::pdf_unicode::GlyphUnicodeMap,
|
||||
pub(super) hyphenation: super::hyphenation::HyphenationData,
|
||||
}
|
||||
@@ -751,6 +753,7 @@ impl Default for State {
|
||||
initial_random_seed: None,
|
||||
random: None,
|
||||
pdf_info: Vec::new(),
|
||||
pdf_pages_attributes: Vec::new(),
|
||||
glyph_unicode: crate::pdf_unicode::GlyphUnicodeMap::default(),
|
||||
hyphenation: super::hyphenation::HyphenationData::default(),
|
||||
};
|
||||
@@ -1422,6 +1425,7 @@ impl State {
|
||||
self.pdf_objects = None;
|
||||
}
|
||||
self.pdf_info.clear();
|
||||
self.pdf_pages_attributes.clear();
|
||||
self.fonts.pdf_settings.clear();
|
||||
self
|
||||
}
|
||||
@@ -1436,6 +1440,7 @@ impl State {
|
||||
generate_unicode: self.parameter(Parameter::Pdfgentounicode).width(),
|
||||
glyph_unicode: &self.glyph_unicode,
|
||||
fonts: &self.fonts,
|
||||
page_tree_attributes: &self.pdf_pages_attributes,
|
||||
catalog: self.pdf_catalog.as_deref(),
|
||||
objects: self.pdf_objects.as_deref(),
|
||||
info: crate::pdf_device::PdfInfo {
|
||||
|
||||
Reference in new issue
Block a user