Skip to content

Instantly share code, notes, and snippets.

View Tydewest's full-sized avatar
👨‍💻
Building The Future

Lachy Schuamcher Tydewest

👨‍💻
Building The Future
View GitHub Profile
@Tydewest
Tydewest / base64topdf-working.php
Created November 23, 2021 04:18 — forked from rogeriotaques/base64topdf-working.php
Converts base64 string back to a pdf file
<?php
public function uploadFileFromBlobString($base64string = '', $file_name = '', $folder = '')
{
$file_path = "";
$result = 0;
// Convert blob (base64 string) back to PDF
if (!empty($base64string)) {