All Projects → AMBERSIVE → laravel-print-api

AMBERSIVE / laravel-print-api

Licence: other
Laravel package to access our print-api

Programming Languages

PHP
23972 projects - #3 most used programming language

Projects that are alternatives of or similar to laravel-print-api

pdftron-android-samples
PDFTron Android Samples
Stars: ✭ 30 (+87.5%)
Mutual labels:  pdf-document, pdf-generation
scryber.core
Scryber.Core is a dotnet 5 html to pdf engine written entirely in C# for creating beautiful flowing documents from html templates including css styles, object data binding and svg drawing.
Stars: ✭ 74 (+362.5%)
Mutual labels:  pdf-document, pdf-generation
pdfio
PDFio is a simple C library for reading and writing PDF files.
Stars: ✭ 55 (+243.75%)
Mutual labels:  pdf-document, pdf-generation
Printable Mockups
Create printable UI mockups & wireframes templates
Stars: ✭ 479 (+2893.75%)
Mutual labels:  pdf-document, pdf-generation
Pdfgen
Simple C PDF Writer/Generation library
Stars: ✭ 200 (+1150%)
Mutual labels:  pdf-document, pdf-generation
Laravel Fpdf
Create PDFs with Laravel, provides FPDF version 1.82
Stars: ✭ 108 (+575%)
Mutual labels:  laravel-package, pdf-generation
Android-XML-to-PDF-Generator
This library is for convert XML to PDF very easily using Step Builders Pattern
Stars: ✭ 140 (+775%)
Mutual labels:  pdf-document, pdf-generation
Go Wkhtmltopdf
Golang commandline wrapper for wkhtmltopdf
Stars: ✭ 564 (+3425%)
Mutual labels:  pdf-document, pdf-generation
Labelmake
Declarative style JavaScript PDF generator library. Works on Node and the browser 🖨︎
Stars: ✭ 112 (+600%)
Mutual labels:  pdf-document, pdf-generation
Laravel Pdf
A Simple package for easily generating PDF documents from HTML. This package is specially for laravel but you can use this without laravel.
Stars: ✭ 79 (+393.75%)
Mutual labels:  laravel-package, pdf-generation
Expense Tracker with Pdf report
An expense Tracker 🔥🔥 which lets you add transactions 🖊🖊 and generate a pdf report of all of your transactions📋📋
Stars: ✭ 16 (+0%)
Mutual labels:  pdf-document, pdf-generation
swaggervel
Swagger for Laravel
Stars: ✭ 70 (+337.5%)
Mutual labels:  laravel-package
spid-laravel
SPID authentication package for Laravel
Stars: ✭ 41 (+156.25%)
Mutual labels:  laravel-package
src2pdf
Generate a pdf report of your source code using bash and LaTeX.
Stars: ✭ 25 (+56.25%)
Mutual labels:  pdf-generation
soldoc
A solidity documentation generator, based in NatSpec format. 📃 with standalone HTML, pdf, gitbook and docsify output ✏️ just plug and play.
Stars: ✭ 54 (+237.5%)
Mutual labels:  pdf-generation
forest-laravel
🌱 Laravel Liana for Forest Admin. This repo is no longer maintained. Please use laravel-forestadmin instead: https://github.com/ForestAdmin/laravel-forestadmin
Stars: ✭ 4 (-75%)
Mutual labels:  laravel-package
gitup
Laravel package to upload git commits to server(s) via (s)ftp.
Stars: ✭ 20 (+25%)
Mutual labels:  laravel-package
bread-templates
BREAD Templates with Voyager
Stars: ✭ 19 (+18.75%)
Mutual labels:  laravel-package
Task2pdf
Kanboard - Task2PDF
Stars: ✭ 48 (+200%)
Mutual labels:  pdf-generation
pushbullet
Pushbullet notifications channel for Laravel
Stars: ✭ 14 (-12.5%)
Mutual labels:  laravel-package

PDF Printer

Maintainability Build Status

This package is a wrapper for the PRINT-API from AMBERSIVE KG. This package requires this endpoint otherwise you will not be able to create any pdf document.

Installation

composer require ambersive/pdfprinter

Usage

Please be aware that you will need a running instance of the PRINT-API. Otherwise the methods won't work as expected.

// Setup the pdf printer
$printer  = new PdfPrinter($settings);
$printer->create("http://localhost:8080/pdf")->save("folder");

The full possiblities

// Setup the pdf printer
$settings = new PdfPrinterSetting("http://localhost", 3000);
$printer  = new PdfPrinter($settings);
$options  = new PdfPrinterOption(
    $filename, 
    $postBackUrl,
    [], //$postBackBody 
    "" // $token
);

// Set auth header for basic authentication
$username = "test";
$password = "asdf";
$printer->authBasic($username, $password);

// Set auth header for basic authentication
$printer->authBearer("CUSTOM OR JWT TOKEN");

$printer->create("http://127.0.0.1:8000", null, function($instance, $result, $options, $successful) {
    // Will be executed after print execution
})->save('test', null, function($instance, $result, $filename, $path, $successful){
    // Do stuff after storing (even called if store was not successful)
});

How to create beautiful documents

While this package is a connection between the print server and your laravel application (so it's a helper method), we also created a package document-viewer which will help you to create printable documents. The document viewer will help you to define the required routes for getting and uploading the files. And it will even give you a smooth way to delare "Printables".

Security Vulnerabilities

If you discover a security vulnerability within this package, please send an e-mail to Manuel Pirker-Ihl via [email protected]. All security vulnerabilities will be promptly addressed.

License

This package is open-sourced software licensed under the MIT license.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].