Support native PDF font dictionaries and running link controls
This commit is contained in:
1 parent
60d7411dfe
commit
b647bd8dcd
19 files changed
+180
-13
No files matched your search
@@ -107,6 +107,8 @@ pub enum Primitive {
|
||||
Pdfsave,
|
||||
Pdfstartlink,
|
||||
Pdfendlink,
|
||||
Pdfrunninglinkoff,
|
||||
Pdfrunninglinkon,
|
||||
Pdfdest,
|
||||
Pdfcatalog,
|
||||
Pdfoutline,
|
||||
@@ -114,6 +116,8 @@ pub enum Primitive {
|
||||
Pdfsetmatrix,
|
||||
Pdfrestore,
|
||||
Pdfglyphtounicode,
|
||||
Pdffontattr,
|
||||
Pdfnobuiltintounicode,
|
||||
Currentgrouplevel,
|
||||
Currentgrouptype,
|
||||
Unless,
|
||||
@@ -984,6 +988,8 @@ impl Default for State {
|
||||
("pdfsave", Pdfsave),
|
||||
("pdfstartlink", Pdfstartlink),
|
||||
("pdfendlink", Pdfendlink),
|
||||
("pdfrunninglinkoff", Pdfrunninglinkoff),
|
||||
("pdfrunninglinkon", Pdfrunninglinkon),
|
||||
("pdfdest", Pdfdest),
|
||||
("pdfcatalog", Pdfcatalog),
|
||||
("pdfoutline", Pdfoutline),
|
||||
@@ -991,6 +997,8 @@ impl Default for State {
|
||||
("pdfsetmatrix", Pdfsetmatrix),
|
||||
("pdfrestore", Pdfrestore),
|
||||
("pdfglyphtounicode", Pdfglyphtounicode),
|
||||
("pdffontattr", Pdffontattr),
|
||||
("pdfnobuiltintounicode", Pdfnobuiltintounicode),
|
||||
("dump", Dump),
|
||||
("indent", Indent),
|
||||
("noindent", Noindent),
|
||||
@@ -1406,6 +1414,7 @@ impl State {
|
||||
self.pdf_objects = None;
|
||||
}
|
||||
self.pdf_info.clear();
|
||||
self.fonts.pdf_settings.clear();
|
||||
self
|
||||
}
|
||||
pub fn is_initex(&self) -> bool {
|
||||
@@ -1418,6 +1427,7 @@ impl State {
|
||||
compression: self.parameter(Parameter::Pdfcompresslevel).width(),
|
||||
generate_unicode: self.parameter(Parameter::Pdfgentounicode).width(),
|
||||
glyph_unicode: &self.glyph_unicode,
|
||||
fonts: &self.fonts,
|
||||
catalog: self.pdf_catalog.as_deref(),
|
||||
objects: self.pdf_objects.as_deref(),
|
||||
info: crate::pdf_device::PdfInfo {
|
||||
|
||||
Reference in new issue
Block a user