Initial commit
This commit is contained in:
19
bin/pdf-show-info.php
Executable file
19
bin/pdf-show-info.php
Executable file
@@ -0,0 +1,19 @@
|
||||
#!/usr/bin/env php
|
||||
<?php
|
||||
|
||||
use IO\ExceptionHandler;
|
||||
use IO\Input\ShowInfoArguments;
|
||||
use IO\Output\DocumentOutput;
|
||||
|
||||
require_once __DIR__ . '/../vendor/autoload.php';
|
||||
|
||||
ExceptionHandler::registerCallback();
|
||||
|
||||
$arguments = ShowInfoArguments::createFromGlobals();
|
||||
$file = $arguments->getFile();
|
||||
|
||||
$documentFactory = DocumentFactory::create();
|
||||
$document = $documentFactory->createDocument($file);
|
||||
|
||||
$output = DocumentOutput::forDocument($document);
|
||||
$output->render();
|
||||
Reference in New Issue
Block a user