setasign / setafpdf Goto Github PK
View Code? Open in Web Editor NEWA clone of FPDF with an almost compatible interface while using SetaPDF-Core internally for the PDF generation.
License: MIT License
A clone of FPDF with an almost compatible interface while using SetaPDF-Core internally for the PDF generation.
License: MIT License
It is possible to create links during the creation of a template (beginTemplate() / endTemplate()):
$pdf->beginTemplate();
$pdf->Write(12, 'LINK', 'https://www.setasign.com');
$pdf->endTemplate();
but the link is missplaced then. We should prohibit links in template as we do in FPDI.
We should transform links such as #doc-1
to GoTo actions for named destinations.
Following visible test will show the faulty behavior:
$proxy = $this->getProxy('P', 'pt', 'A4');
$proxy->AddPage();
$proxy->SetFont('arial', '', 10);
$proxy->Write(8, "A\n");
$proxy->Write(8, "B");
$this->assertProxySame($proxy, 0.15, 72);
Hello, we have bought the SetaPDF-Core and I'm trying to install this package, but it gives me an error because the composer tries to install the next:
Installing setasign/eval/setapdf-core/ioncube (1.0.2237252): Downloading (failed)
and we get
[Composer\Downloader\TransportException]
The "https://www.setasign.com/downloads/eval/{someId}/ioncube/SetaPDF-Core-License.zip" file could not be downloaded (HTTP/1.1 404 Not Found)
We have the latest core version.
And could you let me know if with this library we can work with utf-8 text and fonts?
The current doc block for the $size
param of \setasign\SetaFpdf\SetaFpdf::SetFont()
is:
@param string $size Font size in points. The default value is the current size. If no size has been specified
since the beginning of the document, the value taken is 12.
Which calls internally \setasign\SetaFpdf\Modules\Font::set()
which has the following doc block for $size
:
@param string $size
But the size will be written into \setasign\SetaFpdf\StateBuffer\Font::$currentFontSize
(without casting) which expects int|float
.
The default of Fpdf for this method is also the integer 0 and not an empty string. This should be fixed.
Needs to be:
spl_autoload_register(function ($class) {
if (strpos($class, 'setasign\\SetaFpdf') === 0) {
$filename = str_replace('\\', DIRECTORY_SEPARATOR, substr($class, 17)) . '.php';
$fullpath = __DIR__ . DIRECTORY_SEPARATOR . $filename;
if (is_file($fullpath)) {
/** @noinspection PhpIncludeInspection */
require_once $fullpath;
}
}
});
Hello, i have an error exception :
" Exception reçue : Security handler not authenticated, so no encryption key is known. Authenticate first!. N° d'exception : 1536 "
Could you help me to find the error? Missing library on the server?
Thx
Hi Dear Maintainers,
We currently use your application solution setapdf-stampe
and ran into a throttling limitation. What would be the recommendation to download the library? We're using the composer reference as recommended in this repository.
Error details
In CurlDownloader.php line 617:
The "https://www.setasign.com/downloads/2854243/SetaPDF-Core_2.36.0.1597-without-demos.zip" file could not be downloaded (HTTP/1.1 429 You have downloaded more than 200 files! Please wait 24 hours to download more.)
Composer reference
"setasign/setapdf-stamper": "2.36.0.1597"
...
"repositories": [
{
"type": "composer",
"url": "https://www.setasign.com/downloads/"
}
],
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.