Giter Club home page Giter Club logo

Comments (4)

edwinmacalopu avatar edwinmacalopu commented on May 21, 2024 1

@lsnepomuceno yes I attached signed PDF .
sign.pdf

from laravel-a1-pdf-sign.

lsnepomuceno avatar lsnepomuceno commented on May 21, 2024

Hi @edwinmacalopu,

Would you have a signed example pdf file?

That way I can validate the structure.

from laravel-a1-pdf-sign.

edwinmacalopu avatar edwinmacalopu commented on May 21, 2024

@lsnepomuceno find the error is a field that when separating with explode does not have key 1 value in the signature, in my case I put a validator if there is key 1 add it to the array
image

private function processDataToInfo(string $data): array
  {
    $data = explode('/', trim($data));
    $finalData = [];
    foreach ($data as $info) {
      $infoTemp = explode('=', trim($info));
        if (isset($infoTemp[1])) {
        $finalData[] = [$infoTemp[0] => $infoTemp[1]];
       }
      }
    return $finalData;
  }

image

from laravel-a1-pdf-sign.

lsnepomuceno avatar lsnepomuceno commented on May 21, 2024

@edwinmacalopu

Although I haven't identified the problem with validating array indexes (as shown in the screenshots below), I've updated the method to avoid potential issues.

Available in version 0.0.14.

Thank you for your contribution.

validate-2
validate-1

from laravel-a1-pdf-sign.

Related Issues (20)

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.