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
@@ -218,6 +218,7 @@ pub struct Executor {
|
||||
io: IoState,
|
||||
pdf_colors: crate::pdf_device::PdfColorStacks,
|
||||
pdf_link_stack: Vec<pdf_links::ActiveLink>,
|
||||
pdf_running_links: bool,
|
||||
#[cfg(all(target_os = "linux", target_env = "gnu"))]
|
||||
pdf_last_match: Option<Arc<pdf_match::PdfMatch>>,
|
||||
pdf_catalog_tokens: Vec<Token>,
|
||||
@@ -382,6 +383,7 @@ impl Executor {
|
||||
io: IoState::default(),
|
||||
pdf_colors: Default::default(),
|
||||
pdf_link_stack: Vec::new(),
|
||||
pdf_running_links: true,
|
||||
#[cfg(all(target_os = "linux", target_env = "gnu"))]
|
||||
pdf_last_match: None,
|
||||
pdf_catalog_tokens: Vec::new(),
|
||||
@@ -3603,6 +3605,9 @@ impl Executor {
|
||||
return self.fail("misplaced native alignment command");
|
||||
}
|
||||
Pdfglyphtounicode => self.glyph_to_unicode(files)?,
|
||||
Pdffontattr | Pdfnobuiltintounicode => {
|
||||
self.pdf_font_settings(primitive, files)?;
|
||||
}
|
||||
Explicitspace => {
|
||||
if self.paragraph.is_some() {
|
||||
let space = self.explicit_space()?;
|
||||
@@ -3786,7 +3791,7 @@ impl Executor {
|
||||
Pdfsave | Pdfsetmatrix | Pdfrestore | Pdfliteral => {
|
||||
self.scan_pdf_graphics(primitive, token.span, files)?
|
||||
}
|
||||
Pdfstartlink | Pdfendlink | Pdfdest => {
|
||||
Pdfstartlink | Pdfendlink | Pdfdest | Pdfrunninglinkoff | Pdfrunninglinkon => {
|
||||
self.scan_pdf_link(primitive, token.span, files)?;
|
||||
}
|
||||
Pdfsetrandomseed => {
|
||||
|
||||
Reference in new issue
Block a user