Restore registered pdfTeX images from native formats
This commit is contained in:
1 parent
1307bbcf0c
commit
c2f18f50dc
14 files changed
+667
-49
No files matched your search
@@ -1660,6 +1660,16 @@ impl State {
|
||||
self.fonts.reset_format_font_state();
|
||||
self
|
||||
}
|
||||
pub(super) fn rebind_format_images(
|
||||
&mut self,
|
||||
images: &[std::sync::Arc<crate::pdf_image::PdfImageUse>],
|
||||
) -> Result<(), String> {
|
||||
for b in self.boxes.values_mut() {
|
||||
super::format_image::boxes::rebind(b, images)?;
|
||||
}
|
||||
Ok(())
|
||||
}
|
||||
|
||||
pub(super) fn restore_legacy_format_fonts(&mut self) -> Result<(), String> {
|
||||
let replacements = self.fonts.restore_legacy_synthesized_fonts()?;
|
||||
if !replacements.is_empty() {
|
||||
|
||||
Reference in new issue
Block a user