Comments (4)
For anyone else with this issue, I have now forked this repo and added this rough fix along with a couple of other quick and dirty fixes. Performed some limited testing and so far all good.
https://github.com/TristanHammat-AgilisIT/fpdm/
from fpdm.
For anyone else with this issue, I have now forked this repo and added this rough fix along with a couple of other quick and dirty fixes. Performed some limited testing and so far all good.
https://github.com/TristanHammat-AgilisIT/fpdm/
Hi, Always same problem
from fpdm.
For anyone else with this issue, I have now forked this repo and added this rough fix along with a couple of other quick and dirty fixes. Performed some limited testing and so far all good.
https://github.com/TristanHammat-AgilisIT/fpdm/Hi, Always same problem
Even when using my fork?
from fpdm.
Hello, this is a solution which work for me.
On line 1878, I initialize in the object["infos"] like this :
elseif (($as=='')&&$this->extract_pdf_definition_value("/AS", $CurLine, $match)) {
$as=$match[1];
$object["infos"]["checkbox_yes"] = "";
$object["infos"]["checkbox_no"] = "";
if ($verbose_parsing) {
echo("<br>Object's AS is '<i>$as</i>'");
}
$object["infos"]["checkbox_state"]=$as;
$object["infos"]["checkbox_state_line"]=$Counter;
}
I add this lines :
$object["infos"]["checkbox_yes"] = "";
$object["infos"]["checkbox_no"] = "";
In order to do the change with the best practices, you can extends FPDM class, and redefines copy/paste the function parsePDFEntries() and make the update here.
After that use your new class instead of \FPDM
Example :
class FPDMupdate extends \FPDM
{
function parsePDFEntries(&$lines){
[...]
elseif (($as=='')&&$this->extract_pdf_definition_value("/AS", $CurLine, $match)) {
$as=$match[1];
$object["infos"]["checkbox_yes"] = "";
$object["infos"]["checkbox_no"] = "";
if ($verbose_parsing) {
echo("<br>Object's AS is '<i>$as</i>'");
}
$object["infos"]["checkbox_state"]=$as;
$object["infos"]["checkbox_state_line"]=$Counter;
}
[...]
}
}
$pdf = new FPDMupdate("template.pdf");
from fpdm.
Related Issues (20)
- FPDF-Merge Error: No more resource to execute the command
- PHP 7.4 Deprecated function : Array and string offset access syntax with curly braces is deprecated HOT 1
- PHP 7.4 Warning: implode(): Invalid arguments passed in \fpdm\fpdm->get_buffer()
- Don't replace fields containing parentheses
- Checkboxes in a parent group can not be addressed HOT 2
- a new version is released by fpdf.org
- Question, can we extracted list of fields(names) of the template pdf HOT 2
- radiobuttons (checkbox-groups) added HOT 1
- Checkboxes not checked correctly. HOT 5
- FPDF-Merge Error: Object streams are not supported HOT 2
- Link on textbox is not working
- php 8.1.5 from php 7.4 FPDF-Merge Error: field Speciality not found HOT 1
- uppgrading from php 7.4 to php 8.1.5. Fields contatining åäö FPDF-Merge Error: field Månader not found HOT 8
- Sign PDF with FPDM ?
- FilterFlateDecode: invalid stream data error HOT 1
- FPDM Output Not Saving File HOT 1
- FPDF-Merge Error: Number of objects (277) differs with number of xrefs (280), something , pdf xref table is corrupted :(
- Mapping fields in the template with the values in Array
- Compatibility with php 8.1 HOT 1
- New release of original script (v2.10) HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from fpdm.