4 ms·
OT perhaps but does anyone know a readable reference for PDF opcodes? The example code feels somewhat opaque: let content = Content { operations: vec![
by timClicks 8y ago
OT perhaps but does anyone know a readable reference for PDF opcodes? The example code feels somewhat opaque:
let content = Content {
operations: vec![
Operation::new("BT", vec![]),
Operation::new("Tf", vec!["F1".into(), 48.into()]),
Operation::new("Td", vec![100.into(), 600.into()]),
Operation::new("Tj", vec![Object::string_literal("Hello World!")]),
Operation::new("ET", vec![]),
],
};
- mkl 8y agoThe specification itself [1] is mostly pretty readable. For the opcodes, you want Appendix A. [1] "PDF Reference, Sixth Edition, version 1.7" at https://www.adobe.com/devnet/pdf/pdf_reference_archive.html https://www.adobe.com/devnet/pdf/pdf_reference_archive.html