Skip to content
This repository has been archived by the owner on Nov 25, 2020. It is now read-only.

I cant use the Fork #61

Open
Luvelnet opened this issue Sep 2, 2020 · 5 comments
Open

I cant use the Fork #61

Luvelnet opened this issue Sep 2, 2020 · 5 comments

Comments

@Luvelnet
Copy link

Luvelnet commented Sep 2, 2020

Hi all,

Im trying to config the fork Qipsius but it's not possible. I've done all step in doc:

  1. Install and register the bundle
  2. Create service Qipsius\TCPDFBundle\Controller\TCPDFController: '@qipsius.tcpdf'
  3. And the last: $pdfObj = $container->get("qipsius.tcpdf")->create();

I get the following error: "Service "qipsius.tcpdf" not found: even though it exists in the app's container"

I'm using Symfony 5 version.

Thanks for help!

@davnavarro
Copy link

Hi Luvelnet,

I have to improve the documentation for QipsiusTCPDFBundle

Try this, instead of using the container, inject the TCPDFController service:

use Qipsius\TCPDFBundle\Controller\TCPDFController;

class PDFService
{
    protected TCPDFController $tcpdf;

    public function __construct(
        TCPDFController $tcpdf
    ) {
        $this->tcpdf = $tcpdf;
    }

   ...
}

@Luvelnet
Copy link
Author

Luvelnet commented Sep 2, 2020 via email

@davnavarro
Copy link

davnavarro commented Sep 2, 2020

Nada, lo que necesites.

Nosotros usamos este bundle precisamente para eso, para la firma digital.

Saludos

@Luvelnet
Copy link
Author

Luvelnet commented Sep 2, 2020 via email

@davnavarro
Copy link

Luis, yo uso setasign/fpdi.

Te hará falta además esto:

use setasign\Fpdi\Tcpdf\Fpdi;

class TCPDFService extends Fpdi
{
}

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants