Comments (2)
not at this time
from sapp.
Hi, there is an example on FPDF, maybe it can be added
http://www.fpdf.org/en/script/script95.php
$fc = file_get_contents($file);
if($fc===false)
$this->Error('Cannot open file: '.$file);
$size = strlen($fc);
$date = @date('YmdHisO', filemtime($file));
$md = 'D:'.substr($date,0,-2)."'".substr($date,-2)."'";;
$this->_put('<<');
$this->_put('/Type /Filespec');
$this->_put('/F ('.$this->_escape($name).')');
$this->_put('/UF '.$this->_textstring($name));
$this->_put('/EF <</F '.($this->n+1).' 0 R>>');
if($desc)
$this->_put('/Desc '.$this->_textstring($desc));
$this->_put('/AFRelationship /Unspecified');
$this->_put('>>');
$this->_put('endobj');
$this->_newobj();
$this->_put('<<');
$this->_put('/Type /EmbeddedFile');
$this->_put('/Subtype /application#2Foctet-stream');
$this->_put('/Length '.$size);
$this->_put('/Params <</Size '.$size.' /ModDate '.$this->_textstring($md).'>>');
$this->_put('>>');
$this->_putstream($fc);
$this->_put('endobj');
tecnickcom/TCPDF#578 (comment)
from sapp.
Related Issues (20)
- PHP Fatal error: Uncaught Error: Call to a member function val() on int in ddn/sapp/src/PDFDoc.php:459 HOT 2
- Get signatures count method HOT 1
- PNG with transparent bg only shows an empty rectangle HOT 4
- Client signing [enhancement] HOT 16
- [enhancement] Make it macroable HOT 2
- Got success message but didn't get the signed PDF HOT 16
- How to avoid displaying debug messages?
- Can it save changes incrementally? HOT 9
- Can I use crt file instead of p12? HOT 3
- Issue with Digital Signature Validation HOT 6
- Can't add multiple signature appearance at once. HOT 13
- On windows i get `openssl_pkcs7_sign(): Error getting private key` HOT 3
- Call to undefined function ddn\sapp\p_warning()
- Uninterpreted pdf HOT 1
- Signature not valid, error on format or information within the signature HOT 4
- Extracting all signatures HOT 5
- Option to not load whole PDF to memory HOT 1
- A "reason" can be entered when placing the digital signature HOT 6
- Certificate chain not included in signature. HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from sapp.