Giter Club home page Giter Club logo

pdfmerger's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

pdfmerger's Issues

Generate a tag version

Hello there,

I am using this extension and I am grateful that you did it.

Could you please create a version tag? I would like to avoid use "dev-master" on my composer.json.

Thank you.

Error Trying to access array offset on value of type bool

Using on Lumen 6.0
´´´php
$pdfMerger = new \PDFMerger;
$pdfMerger->addPDF(storage_path('pdf.pdf'), 'all');
$pdfMerger->merge('browser');
´´´

Causes Error:
Trying to access array offset on value of type bool

PHP in Browser 7.4

What am I doing wrong? Any ideas?
Tested merge('file', 'test.pdf');
as well as string.

EACH FUNCTION PROBLEM

PHP 7.2 not supporting each function..which is in your package...do u have any solution for that

FPDI Compression problems

probably uses a compression technique which is not supported by the free parser shipped with FPDI.

It works with some PDF but most of the PDF will throw the error above

PDFMerger not merging pdf file

I need to merge pdf file and create new pdf file but i get below exception

{
    "message": "Unable to find xref table.",
    "exception": [
        {
            "type": "Exception",
            "code": 0,
            "message": "Unable to find xref table.",
            "file": "\/var\/www\/app\/vendor\/rguedes\/pdfmerger\/Classes\/fpdi\/pdf_parser.php",
            "line": 330
        }
    ]
}

my composer.json file is below

 "require": {
        "php": ">=5.6",
        "ext-gd": "*",
        "composer/installers": "^1.4.0",
        "symfony/console": "^3.3",
        "wikimedia/composer-merge-plugin": "dev-master",
        "onelogin/php-saml": "^2.12",
        "fpdf/fpdf": "^1.81",
        "rguedes/pdfmerger": "dev-master"
    },

my php code is below

use PDFMerger;

$pdfMerger = new PDFMerger();

$pdfMerger->addPDF('test1.pdf');
$pdfMerger->addPDF('test2.pdf');
$pdfMerger->addPDF('test.pdf');

$pdfMerger->merge('merged.pdf');

let me know how to solve this exception?

TCPDF

I will use PDFMerger with elybyy/TCPDF.
can you help me?

Package not working correctly on live server

On live server this package is giving error

in /var/www/html/coldxlogistics/vendor/rguedes/pdfmerger/Classes/fpdi/pdf_parser.php:675

itwork for some pdf but for most it is not working as expectations

PDFMerger Issue Large file

i have uploaded 10 mb docx file but can not merge to final pdf and process is stuck. not throw error.

Please help Me

Update FPDF and FPDI

Can you please update FPDF and FPDI libraries?

https://github.com/Setasign

The principal issue I have is that FPDI just make a 'die' when an error occurs instead of throwing an exception.
This was solved in the latest FPDI version.

Instead of including them in your repository you may add them to the composer dependency:

{
    "require": {
        "setasign/fpdi-fpdf": "1.6.1"
    }
}

See: https://github.com/Setasign/FPDI

merge method concatenates two PDF's but with a header line

Please add in PDFMerger.php in line 77

$fpdi->setPrintHeader(false); // added to fix line on top of concatenated PDF's

bellow

$fpdi = new FPDI;

This is to fix the undesired header line that comes form default header in fpdi.

Thanks,
Danniel Perez

PHP 7.4 compatibility

I'm try to use PDFMerge with symfony5.2 (composer require rguedes/pdfmerger)

The folowing error append :

Trying to access array offset on value of type bool
in vendor/rguedes/pdfmerger/Classes/fpdi/fpdi_pdf_parser.php (line 308)
in vendor/rguedes/pdfmerger/Classes/fpdi/fpdi_pdf_parser.php -> _getPageRotation (line 284)
in vendor/rguedes/pdfmerger/Classes/fpdi/fpdi.php -> getPageRotation (line 234)
in vendor/rguedes/pdfmerger/Classes/PDFMerger.php -> importPage (line 88)
PDFMerger->merge('file', 'fusion.pdf')

How to use Setasign PDF Parser 2?

Hi,

I just bought https://www.setasign.com/products/fpdi-pdf-parser/manual/ to use newer versions of PDF, but unfortunately PDFMerger is using is own version of FPDI :

public function __construct()
{
        if(!class_exists("FPDF")) {
            require_once('fpdf/fpdf.php');
        }
        if(!class_exists("FPDI")) {
            require_once('fpdi/fpdi.php');
        }
    }

If I comment out these lines, it doesn't work anymore. My composer.json is looking like:

"require": 
    {
        "setasign/fpdi-fpdf": "^2.0.0",
        "setasign/fpdi_pdf-parser": "^2.0",
        
        "rguedes/pdfmerger": "dev-master",
...
}

I thought it should work because I'm loading setasign's librairies before your library, but no :-/

Thanks a lot,
Stéphane

PDFMerger is not working anymore

Since you have updated partially FPDF, PDFMerger is not working anymore.

When testing the sample.php script, multiple PHP errors are shown.

I just create a pull request to make a full update of FPDF and FPDI which solve this issue:
#3

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.