Compress embedded font streams in the PDF writer
This commit is contained in:
1 parent
369472e7f7
commit
4735d75c1f
80 files changed
+9119
-5
No files matched your search
Vendored
+35
@@ -0,0 +1,35 @@
|
||||
//! These indices are for library internal use only.
|
||||
//! Use the `add_*` functions to get an index instead.
|
||||
|
||||
/// Index of the page (0-based)
|
||||
#[derive(Copy, Clone, Debug, Eq, PartialEq)]
|
||||
pub struct PdfPageIndex(pub(crate) usize);
|
||||
/// Index of the layer on the nth page
|
||||
#[derive(Copy, Clone, Debug, Eq, PartialEq)]
|
||||
pub struct PdfLayerIndex(pub(crate) usize);
|
||||
|
||||
/// Index of the arbitrary content data
|
||||
#[derive(Debug, Copy, Clone, Eq, PartialEq)]
|
||||
pub struct PdfContentIndex(pub(crate) usize);
|
||||
|
||||
/// Index of a font
|
||||
#[derive(Debug, Copy, Clone, Eq, PartialEq)]
|
||||
pub struct FontIndex(pub(crate) PdfContentIndex);
|
||||
|
||||
impl Into<PdfContentIndex> for FontIndex {
|
||||
fn into(self) -> PdfContentIndex
|
||||
{
|
||||
self.0
|
||||
}
|
||||
}
|
||||
|
||||
/// Index of a svg file
|
||||
#[derive(Copy, Clone, Debug, Eq, PartialEq)]
|
||||
pub struct SvgIndex(pub(crate) PdfContentIndex);
|
||||
|
||||
impl Into<PdfContentIndex> for SvgIndex {
|
||||
fn into(self) -> PdfContentIndex
|
||||
{
|
||||
self.0
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user