pub fn with_capacity(capacity: usize) -> Self {
        let mut buf = Vec::with_capacity(capacity);
        buf.extend(b"%PDF-1.7\n%\x80\x80\x80\x80\n\n");
        Self {
            buf,
            offsets: vec![],
            catalog_id: None,
            info_id: None,
        }
    }
/// Create a new PDF writer with the specified initial buffer capacity.
Create a new PDF writer with the specified initial buffer capacity.
Create a new PDF writer with the specified initial buffer capacity .
pub fn with_capacity(capacity: usize) -> Self {
        let mut buf = Vec::with_capacity(capacity);
        buf.extend(b"%PDF-1.7\n%\x80\x80\x80\x80\n\n");
        Self {
            buf,
            offsets: vec![],
            catalog_id: None,
            info_id: None,
        }
    }
pub fn with_capacity ( capacity : usize ) -> Self { let mut buf = Vec :: with_capacity ( capacity ) ; buf . extend ( b" \n \x80 \x80 \x80 \x80 \n \n " ) ; Self { buf , offsets : vec ! [ ] , catalog_id : None , info_id : None , } }
Create a new PDF writer with the specified initial buffer capacity.
Create a new PDF writer with the specified initial buffer capacity .
capacity
usize
capacity
usize