Skip to content

Commit

Permalink
refactor: Change namespace
Browse files Browse the repository at this point in the history
  • Loading branch information
famoser committed Dec 26, 2024
1 parent 22b2a8d commit bad39ed
Show file tree
Hide file tree
Showing 257 changed files with 1,076 additions and 1,076 deletions.
16 changes: 8 additions & 8 deletions examples/book.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@

include '../vendor/autoload.php';

use PdfGenerator\Frontend\Content\Paragraph;
use PdfGenerator\Frontend\Content\Rectangle;
use PdfGenerator\Frontend\Content\Style\DrawingStyle;
use PdfGenerator\Frontend\Content\Style\TextStyle;
use PdfGenerator\Frontend\Layout\ContentBlock;
use PdfGenerator\Frontend\Layout\Flow;
use PdfGenerator\Frontend\LinearDocument;
use PdfGenerator\Frontend\Resource\Font;
use Famoser\PdfGenerator\Frontend\Content\Paragraph;
use Famoser\PdfGenerator\Frontend\Content\Rectangle;
use Famoser\PdfGenerator\Frontend\Content\Style\DrawingStyle;
use Famoser\PdfGenerator\Frontend\Content\Style\TextStyle;
use Famoser\PdfGenerator\Frontend\Layout\ContentBlock;
use Famoser\PdfGenerator\Frontend\Layout\Flow;
use Famoser\PdfGenerator\Frontend\LinearDocument;
use Famoser\PdfGenerator\Frontend\Resource\Font;

$document = new LinearDocument([210, 297], 20);

Expand Down
22 changes: 11 additions & 11 deletions examples/invoice.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,17 +11,17 @@

include '../vendor/autoload.php';

use PdfGenerator\Frontend\Content\Paragraph;
use PdfGenerator\Frontend\Content\Style\DrawingStyle;
use PdfGenerator\Frontend\Content\Style\TextStyle;
use PdfGenerator\Frontend\Layout\ContentBlock;
use PdfGenerator\Frontend\Layout\Flow;
use PdfGenerator\Frontend\Layout\Parts\Row;
use PdfGenerator\Frontend\Layout\Style\ColumnSize;
use PdfGenerator\Frontend\Layout\Table;
use PdfGenerator\Frontend\LinearDocument;
use PdfGenerator\Frontend\Resource\Font;
use PdfGenerator\IR\Document\Content\Common\Color;
use Famoser\PdfGenerator\Frontend\Content\Paragraph;
use Famoser\PdfGenerator\Frontend\Content\Style\DrawingStyle;
use Famoser\PdfGenerator\Frontend\Content\Style\TextStyle;
use Famoser\PdfGenerator\Frontend\Layout\ContentBlock;
use Famoser\PdfGenerator\Frontend\Layout\Flow;
use Famoser\PdfGenerator\Frontend\Layout\Parts\Row;
use Famoser\PdfGenerator\Frontend\Layout\Style\ColumnSize;
use Famoser\PdfGenerator\Frontend\Layout\Table;
use Famoser\PdfGenerator\Frontend\LinearDocument;
use Famoser\PdfGenerator\Frontend\Resource\Font;
use Famoser\PdfGenerator\IR\Document\Content\Common\Color;

$margin = 15;
$document = new LinearDocument([210, 297], $margin);
Expand Down
6 changes: 3 additions & 3 deletions scripts/DefaultFontSizing.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@

include '../vendor/autoload.php';

use PdfGenerator\IR\Document;
use PdfGenerator\IR\Document\Resource\Font\Utils\DefaultFontType1Mapping;
use PdfGenerator\IR\Text\LineBreak\WordSizer\CharacterSizer;
use Famoser\PdfGenerator\IR\Document;
use Famoser\PdfGenerator\IR\Document\Resource\Font\Utils\DefaultFontType1Mapping;
use Famoser\PdfGenerator\IR\Text\LineBreak\WordSizer\CharacterSizer;

$fontMapPath = '/usr/share/ghostscript/9.54.0/Resource/Init/Fontmap.GS';
$fontDir = '/usr/share/fonts/gsfonts';
Expand Down
2 changes: 1 addition & 1 deletion src/Backend/Catalog/Base/BaseIdentifiableStructure.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
* file that was distributed with this source code.
*/

namespace PdfGenerator\Backend\Catalog\Base;
namespace Famoser\PdfGenerator\Backend\Catalog\Base;

abstract readonly class BaseIdentifiableStructure extends BaseStructure
{
Expand Down
6 changes: 3 additions & 3 deletions src/Backend/Catalog/Base/BaseStructure.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@
* file that was distributed with this source code.
*/

namespace PdfGenerator\Backend\Catalog\Base;
namespace Famoser\PdfGenerator\Backend\Catalog\Base;

use PdfGenerator\Backend\CatalogVisitor;
use PdfGenerator\Backend\File\Object\Base\BaseObject;
use Famoser\PdfGenerator\Backend\CatalogVisitor;
use Famoser\PdfGenerator\Backend\File\Object\Base\BaseObject;

abstract readonly class BaseStructure
{
Expand Down
10 changes: 5 additions & 5 deletions src/Backend/Catalog/Catalog.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,12 @@
* file that was distributed with this source code.
*/

namespace PdfGenerator\Backend\Catalog;
namespace Famoser\PdfGenerator\Backend\Catalog;

use PdfGenerator\Backend\Catalog\Base\BaseStructure;
use PdfGenerator\Backend\CatalogVisitor;
use PdfGenerator\Backend\File\File;
use PdfGenerator\Backend\File\Object\Base\BaseObject;
use Famoser\PdfGenerator\Backend\Catalog\Base\BaseStructure;
use Famoser\PdfGenerator\Backend\CatalogVisitor;
use Famoser\PdfGenerator\Backend\File\File;
use Famoser\PdfGenerator\Backend\File\Object\Base\BaseObject;

readonly class Catalog extends BaseStructure
{
Expand Down
8 changes: 4 additions & 4 deletions src/Backend/Catalog/Content.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,11 @@
* file that was distributed with this source code.
*/

namespace PdfGenerator\Backend\Catalog;
namespace Famoser\PdfGenerator\Backend\Catalog;

use PdfGenerator\Backend\Catalog\Base\BaseStructure;
use PdfGenerator\Backend\CatalogVisitor;
use PdfGenerator\Backend\File\Object\Base\BaseObject;
use Famoser\PdfGenerator\Backend\Catalog\Base\BaseStructure;
use Famoser\PdfGenerator\Backend\CatalogVisitor;
use Famoser\PdfGenerator\Backend\File\Object\Base\BaseObject;

readonly class Content extends BaseStructure
{
Expand Down
8 changes: 4 additions & 4 deletions src/Backend/Catalog/Contents.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,11 @@
* file that was distributed with this source code.
*/

namespace PdfGenerator\Backend\Catalog;
namespace Famoser\PdfGenerator\Backend\Catalog;

use PdfGenerator\Backend\Catalog\Base\BaseStructure;
use PdfGenerator\Backend\CatalogVisitor;
use PdfGenerator\Backend\File\Object\Base\BaseObject;
use Famoser\PdfGenerator\Backend\Catalog\Base\BaseStructure;
use Famoser\PdfGenerator\Backend\CatalogVisitor;
use Famoser\PdfGenerator\Backend\File\Object\Base\BaseObject;

readonly class Contents extends BaseStructure
{
Expand Down
4 changes: 2 additions & 2 deletions src/Backend/Catalog/Font.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@
* file that was distributed with this source code.
*/

namespace PdfGenerator\Backend\Catalog;
namespace Famoser\PdfGenerator\Backend\Catalog;

use PdfGenerator\Backend\Catalog\Base\BaseIdentifiableStructure;
use Famoser\PdfGenerator\Backend\Catalog\Base\BaseIdentifiableStructure;

abstract readonly class Font extends BaseIdentifiableStructure
{
Expand Down
8 changes: 4 additions & 4 deletions src/Backend/Catalog/Font/Structure/CIDFont.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,11 @@
* file that was distributed with this source code.
*/

namespace PdfGenerator\Backend\Catalog\Font\Structure;
namespace Famoser\PdfGenerator\Backend\Catalog\Font\Structure;

use PdfGenerator\Backend\Catalog\Base\BaseStructure;
use PdfGenerator\Backend\CatalogVisitor;
use PdfGenerator\Backend\File\Object\DictionaryObject;
use Famoser\PdfGenerator\Backend\Catalog\Base\BaseStructure;
use Famoser\PdfGenerator\Backend\CatalogVisitor;
use Famoser\PdfGenerator\Backend\File\Object\DictionaryObject;

readonly class CIDFont extends BaseStructure
{
Expand Down
6 changes: 3 additions & 3 deletions src/Backend/Catalog/Font/Structure/CIDSystemInfo.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@
* file that was distributed with this source code.
*/

namespace PdfGenerator\Backend\Catalog\Font\Structure;
namespace Famoser\PdfGenerator\Backend\Catalog\Font\Structure;

use PdfGenerator\Backend\CatalogVisitor;
use PdfGenerator\Backend\File\Token\DictionaryToken;
use Famoser\PdfGenerator\Backend\CatalogVisitor;
use Famoser\PdfGenerator\Backend\File\Token\DictionaryToken;

/**
* specifies the character set used
Expand Down
8 changes: 4 additions & 4 deletions src/Backend/Catalog/Font/Structure/CMap.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,11 @@
* file that was distributed with this source code.
*/

namespace PdfGenerator\Backend\Catalog\Font\Structure;
namespace Famoser\PdfGenerator\Backend\Catalog\Font\Structure;

use PdfGenerator\Backend\Catalog\Base\BaseStructure;
use PdfGenerator\Backend\CatalogVisitor;
use PdfGenerator\Backend\File\Object\StreamObject;
use Famoser\PdfGenerator\Backend\Catalog\Base\BaseStructure;
use Famoser\PdfGenerator\Backend\CatalogVisitor;
use Famoser\PdfGenerator\Backend\File\Object\StreamObject;

readonly class CMap extends BaseStructure
{
Expand Down
8 changes: 4 additions & 4 deletions src/Backend/Catalog/Font/Structure/FontDescriptor.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,11 @@
* file that was distributed with this source code.
*/

namespace PdfGenerator\Backend\Catalog\Font\Structure;
namespace Famoser\PdfGenerator\Backend\Catalog\Font\Structure;

use PdfGenerator\Backend\Catalog\Base\BaseStructure;
use PdfGenerator\Backend\CatalogVisitor;
use PdfGenerator\Backend\File\Object\DictionaryObject;
use Famoser\PdfGenerator\Backend\Catalog\Base\BaseStructure;
use Famoser\PdfGenerator\Backend\CatalogVisitor;
use Famoser\PdfGenerator\Backend\File\Object\DictionaryObject;

readonly class FontDescriptor extends BaseStructure
{
Expand Down
8 changes: 4 additions & 4 deletions src/Backend/Catalog/Font/Structure/FontStream.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,11 @@
* file that was distributed with this source code.
*/

namespace PdfGenerator\Backend\Catalog\Font\Structure;
namespace Famoser\PdfGenerator\Backend\Catalog\Font\Structure;

use PdfGenerator\Backend\Catalog\Base\BaseStructure;
use PdfGenerator\Backend\CatalogVisitor;
use PdfGenerator\Backend\File\Object\StreamObject;
use Famoser\PdfGenerator\Backend\Catalog\Base\BaseStructure;
use Famoser\PdfGenerator\Backend\CatalogVisitor;
use Famoser\PdfGenerator\Backend\File\Object\StreamObject;

readonly class FontStream extends BaseStructure
{
Expand Down
6 changes: 3 additions & 3 deletions src/Backend/Catalog/Font/TrueType.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@
* file that was distributed with this source code.
*/

namespace PdfGenerator\Backend\Catalog\Font;
namespace Famoser\PdfGenerator\Backend\Catalog\Font;

use PdfGenerator\Backend\CatalogVisitor;
use PdfGenerator\Backend\File\Object\DictionaryObject;
use Famoser\PdfGenerator\Backend\CatalogVisitor;
use Famoser\PdfGenerator\Backend\File\Object\DictionaryObject;

readonly class TrueType extends Type1
{
Expand Down
10 changes: 5 additions & 5 deletions src/Backend/Catalog/Font/Type0.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,12 @@
* file that was distributed with this source code.
*/

namespace PdfGenerator\Backend\Catalog\Font;
namespace Famoser\PdfGenerator\Backend\Catalog\Font;

use PdfGenerator\Backend\Catalog\Font;
use PdfGenerator\Backend\Catalog\Font\Structure\CMap;
use PdfGenerator\Backend\CatalogVisitor;
use PdfGenerator\Backend\File\Object\DictionaryObject;
use Famoser\PdfGenerator\Backend\Catalog\Font;
use Famoser\PdfGenerator\Backend\Catalog\Font\Structure\CMap;
use Famoser\PdfGenerator\Backend\CatalogVisitor;
use Famoser\PdfGenerator\Backend\File\Object\DictionaryObject;

readonly class Type0 extends Font
{
Expand Down
8 changes: 4 additions & 4 deletions src/Backend/Catalog/Font/Type1.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,11 @@
* file that was distributed with this source code.
*/

namespace PdfGenerator\Backend\Catalog\Font;
namespace Famoser\PdfGenerator\Backend\Catalog\Font;

use PdfGenerator\Backend\Catalog\Font;
use PdfGenerator\Backend\CatalogVisitor;
use PdfGenerator\Backend\File\Object\Base\BaseObject;
use Famoser\PdfGenerator\Backend\Catalog\Font;
use Famoser\PdfGenerator\Backend\CatalogVisitor;
use Famoser\PdfGenerator\Backend\File\Object\Base\BaseObject;

readonly class Type1 extends Font
{
Expand Down
8 changes: 4 additions & 4 deletions src/Backend/Catalog/Image.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,11 @@
* file that was distributed with this source code.
*/

namespace PdfGenerator\Backend\Catalog;
namespace Famoser\PdfGenerator\Backend\Catalog;

use PdfGenerator\Backend\Catalog\Base\BaseIdentifiableStructure;
use PdfGenerator\Backend\CatalogVisitor;
use PdfGenerator\Backend\File\Object\Base\BaseObject;
use Famoser\PdfGenerator\Backend\Catalog\Base\BaseIdentifiableStructure;
use Famoser\PdfGenerator\Backend\CatalogVisitor;
use Famoser\PdfGenerator\Backend\File\Object\Base\BaseObject;

readonly class Image extends BaseIdentifiableStructure
{
Expand Down
8 changes: 4 additions & 4 deletions src/Backend/Catalog/Page.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,11 @@
* file that was distributed with this source code.
*/

namespace PdfGenerator\Backend\Catalog;
namespace Famoser\PdfGenerator\Backend\Catalog;

use PdfGenerator\Backend\Catalog\Base\BaseStructure;
use PdfGenerator\Backend\CatalogVisitor;
use PdfGenerator\Backend\File\Object\Base\BaseObject;
use Famoser\PdfGenerator\Backend\Catalog\Base\BaseStructure;
use Famoser\PdfGenerator\Backend\CatalogVisitor;
use Famoser\PdfGenerator\Backend\File\Object\Base\BaseObject;

readonly class Page extends BaseStructure
{
Expand Down
8 changes: 4 additions & 4 deletions src/Backend/Catalog/Pages.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,11 @@
* file that was distributed with this source code.
*/

namespace PdfGenerator\Backend\Catalog;
namespace Famoser\PdfGenerator\Backend\Catalog;

use PdfGenerator\Backend\Catalog\Base\BaseStructure;
use PdfGenerator\Backend\CatalogVisitor;
use PdfGenerator\Backend\File\Object\Base\BaseObject;
use Famoser\PdfGenerator\Backend\Catalog\Base\BaseStructure;
use Famoser\PdfGenerator\Backend\CatalogVisitor;
use Famoser\PdfGenerator\Backend\File\Object\Base\BaseObject;

readonly class Pages extends BaseStructure
{
Expand Down
8 changes: 4 additions & 4 deletions src/Backend/Catalog/Resources.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,11 @@
* file that was distributed with this source code.
*/

namespace PdfGenerator\Backend\Catalog;
namespace Famoser\PdfGenerator\Backend\Catalog;

use PdfGenerator\Backend\Catalog\Base\BaseStructure;
use PdfGenerator\Backend\CatalogVisitor;
use PdfGenerator\Backend\File\Object\Base\BaseObject;
use Famoser\PdfGenerator\Backend\Catalog\Base\BaseStructure;
use Famoser\PdfGenerator\Backend\CatalogVisitor;
use Famoser\PdfGenerator\Backend\File\Object\Base\BaseObject;

readonly class Resources extends BaseStructure
{
Expand Down
24 changes: 12 additions & 12 deletions src/Backend/CatalogVisitor.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,18 +9,18 @@
* file that was distributed with this source code.
*/

namespace PdfGenerator\Backend;

use PdfGenerator\Backend\Catalog\Base\BaseIdentifiableStructure;
use PdfGenerator\Backend\Catalog\Font\Structure\CIDSystemInfo;
use PdfGenerator\Backend\Catalog\Font\Structure\CMap;
use PdfGenerator\Backend\Catalog\Font\Structure\FontDescriptor;
use PdfGenerator\Backend\Catalog\Page;
use PdfGenerator\Backend\File\File;
use PdfGenerator\Backend\File\Object\Base\BaseObject;
use PdfGenerator\Backend\File\Object\DictionaryObject;
use PdfGenerator\Backend\File\Object\StreamObject;
use PdfGenerator\Backend\File\Token\DictionaryToken;
namespace Famoser\PdfGenerator\Backend;

use Famoser\PdfGenerator\Backend\Catalog\Base\BaseIdentifiableStructure;
use Famoser\PdfGenerator\Backend\Catalog\Font\Structure\CIDSystemInfo;
use Famoser\PdfGenerator\Backend\Catalog\Font\Structure\CMap;
use Famoser\PdfGenerator\Backend\Catalog\Font\Structure\FontDescriptor;
use Famoser\PdfGenerator\Backend\Catalog\Page;
use Famoser\PdfGenerator\Backend\File\File;
use Famoser\PdfGenerator\Backend\File\Object\Base\BaseObject;
use Famoser\PdfGenerator\Backend\File\Object\DictionaryObject;
use Famoser\PdfGenerator\Backend\File\Object\StreamObject;
use Famoser\PdfGenerator\Backend\File\Token\DictionaryToken;

class CatalogVisitor
{
Expand Down
16 changes: 8 additions & 8 deletions src/Backend/File/File.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,14 @@
* file that was distributed with this source code.
*/

namespace PdfGenerator\Backend\File;

use PdfGenerator\Backend\File\Object\DictionaryObject;
use PdfGenerator\Backend\File\Object\StreamObject;
use PdfGenerator\Backend\File\Structure\Body;
use PdfGenerator\Backend\File\Structure\CrossReferenceTable;
use PdfGenerator\Backend\File\Structure\FileHeader;
use PdfGenerator\Backend\File\Structure\FileTrailer;
namespace Famoser\PdfGenerator\Backend\File;

use Famoser\PdfGenerator\Backend\File\Object\DictionaryObject;
use Famoser\PdfGenerator\Backend\File\Object\StreamObject;
use Famoser\PdfGenerator\Backend\File\Structure\Body;
use Famoser\PdfGenerator\Backend\File\Structure\CrossReferenceTable;
use Famoser\PdfGenerator\Backend\File\Structure\FileHeader;
use Famoser\PdfGenerator\Backend\File\Structure\FileTrailer;

class File
{
Expand Down
Loading

0 comments on commit bad39ed

Please sign in to comment.