Comments (1)
Hi @bilal07,
I guess you forget to import the composer autoloader in your script.
You can do:
<?php
// You need to import the composer autoloader like that:
require __DIR__.'/vendor/autoload.php'; // <---
// import the namespaces
use Xthiago\PDFVersionConverter\Guesser\RegexGuesser;
// [..]
$guesser = new RegexGuesser();
echo $guesser->guess('/path/to/my/file.pdf'); // will print something like '1.4'
from pdf-version-converter.
Related Issues (19)
- Converted files are not saved sometimes HOT 1
- There was an error extracting the ZIP file, it is either corrupted or using an invalid format. HOT 5
- Error during composer install HOT 2
- Class 'Symfony\Component\Filesystem\Filesystem' not found HOT 1
- PDF size increased HOT 6
- Getting Error sh: 1: gs: not found\n HOT 1
- Typo HOT 1
- sh: gs: command not found HOT 1
- r
- File size increse issue HOT 4
- Wrong PDF Version
- GPL Ghostscript 9.26: Unrecoverable error, exit code 1 in GhostscriptConverterCommand.php line 39
- Extend timeout
- Installation problem HOT 6
- Compatibility Laravel 7
- Invoking Ghostscript on different systems HOT 6
- Filename special chars escape HOT 1
- Temp directory is static
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 pdf-version-converter.