Just want to output the array I get using: https://github.com/dahabtours/amadeus-php-sdk
$date_checkin = '2019-07-16';
$date_checkout = '2019-07-18';
require('AmadeusClient.php');
$amadeus_api = new AmadeusDahabtours\SelfServiceApiClient('CLIENT_ID','CLIENT_SECRET');
# Flight Low-fare Search
$flight_offers = $amadeus_api->lowFares([
'origin' => 'AMS',
'destination' => 'BCN',
'departureDate' => $date_checkin,
'returnDate' => $date_checkout,
'nonStop' => true,
'currency' => 'EUR',
'max' => 2,
]);
I want the output to be something like this:
<div class="flights">
<div class="flight-1">VALUES</div>
<div class="flight-2">VALUES</div>
<div class="flight-3">VALUES</div>
</div>
Array:
array(5) {
["success"]=>
bool(true)
["msgs"]=>
array(0) {
}
["http_code"]=>
int(200)
["response_text"]=>
string(2597) "{"data":[{"type":"flight-offer","id":"1562680375384--1832628087","offerItems":[{"services":[{"segments":[{"flightSegment":{"departure":{"iataCode":"AMS","terminal":"3","at":"2019-07-16T07:00:00+02:00"},"arrival":{"iataCode":"BCN","terminal":"1","at":"2019-07-16T09:20:00+02:00"},"carrierCode":"IB","number":"5224","aircraft":{"code":"320"},"operating":{"carrierCode":"VY","number":"5224"},"duration":"0DT2H20M"},"pricingDetailPerAdult":{"travelClass":"ECONOMY","fareClass":"V","availability":4,"fareBasis":"VRTNVY"}}]},{"segments":[{"flightSegment":{"departure":{"iataCode":"BCN","terminal":"1","at":"2019-07-18T12:05:00+02:00"},"arrival":{"iataCode":"AMS","at":"2019-07-18T14:30:00+02:00"},"carrierCode":"IB","number":"5685","aircraft":{"code":"320"},"operating":{"carrierCode":"VY","number":"5685"},"duration":"0DT2H25M"},"pricingDetailPerAdult":{"travelClass":"ECONOMY","fareClass":"A","availability":4,"fareBasis":"ARTNVY"}}]}],"price":{"total":"209.09","totalTaxes":"74.09"},"pricePerAdult":{"total":"209.09","totalTaxes":"74.09"}}]},{"type":"flight-offer","id":"1562680375384--510820791","offerItems":[{"services":[{"segments":[{"flightSegment":{"departure":{"iataCode":"AMS","at":"2019-07-16T07:00:00+02:00"},"arrival":{"iataCode":"BCN","terminal":"1","at":"2019-07-16T09:20:00+02:00"},"carrierCode":"VY","number":"8318","aircraft":{"code":"320"},"operating":{"carrierCode":"VY","number":"8318"},"duration":"0DT2H20M"},"pricingDetailPerAdult":{"travelClass":"ECONOMY","fareClass":"X","availability":6,"fareBasis":"XRTVY"}}]},{"segments":[{"flightSegment":{"departure":{"iataCode":"BCN","terminal":"1","at":"2019-07-18T12:05:00+02:00"},"arrival":{"iataCode":"AMS","at":"2019-07-18T14:30:00+02:00"},"carrierCode":"VY","number":"8302","aircraft":{"code":"321"},"operating":{"carrierCode":"VY","number":"8302"},"duration":"0DT2H25M"},"pricingDetailPerAdult":{"travelClass":"ECONOMY","fareClass":"P","availability":8,"fareBasis":"PRTVY"}}]}],"price":{"total":"209.09","totalTaxes":"74.09"},"pricePerAdult":{"total":"209.09","totalTaxes":"74.09"}}]}],"dictionaries":{"carriers":{"VY":"VUELING AIRLINES","IB":"IBERIA"},"currencies":{"EUR":"EURO"},"aircraft":{"320":"AIRBUS INDUSTRIE A320-100/200","321":"AIRBUS INDUSTRIE A321"},"locations":{"AMS":{"subType":"AIRPORT","detailedName":"SCHIPHOL AIRPORT"},"BCN":{"subType":"AIRPORT","detailedName":"AIRPORT"}}},"meta":{"links":{"self":"https://test.api.amadeus.com/v1/shopping/flight-offers?origin=AMS&destination=BCN&departureDate=2019-07-16&returnDate=2019-07-18&adults=1&nonStop=true¤cy=EUR&max=2"},"currency":"EUR","defaults":{"adults":1}}}"
["response"]=>
array(3) {
["data"]=>
array(2) {
[0]=>
array(3) {
["type"]=>
string(12) "flight-offer"
["id"]=>
string(25) "1562680375384--1832628087"
["offerItems"]=>
array(1) {
[0]=>
array(3) {
["services"]=>
array(2) {
[0]=>
array(1) {
["segments"]=>
array(1) {
[0]=>
array(2) {
["flightSegment"]=>
array(7) {
["departure"]=>
array(3) {
["iataCode"]=>
string(3) "AMS"
["terminal"]=>
string(1) "3"
["at"]=>
string(25) "2019-07-16T07:00:00+02:00"
}
["arrival"]=>
array(3) {
["iataCode"]=>
string(3) "BCN"
["terminal"]=>
string(1) "1"
["at"]=>
string(25) "2019-07-16T09:20:00+02:00"
}
["carrierCode"]=>
string(2) "IB"
["number"]=>
string(4) "5224"
["aircraft"]=>
array(1) {
["code"]=>
string(3) "320"
}
["operating"]=>
array(2) {
["carrierCode"]=>
string(2) "VY"
["number"]=>
string(4) "5224"
}
["duration"]=>
string(8) "0DT2H20M"
}
["pricingDetailPerAdult"]=>
array(4) {
["travelClass"]=>
string(7) "ECONOMY"
["fareClass"]=>
string(1) "V"
["availability"]=>
int(4)
["fareBasis"]=>
string(6) "VRTNVY"
}
}
}
}
[1]=>
array(1) {
["segments"]=>
array(1) {
[0]=>
array(2) {
["flightSegment"]=>
array(7) {
["departure"]=>
array(3) {
["iataCode"]=>
string(3) "BCN"
["terminal"]=>
string(1) "1"
["at"]=>
string(25) "2019-07-18T12:05:00+02:00"
}
["arrival"]=>
array(2) {
["iataCode"]=>
string(3) "AMS"
["at"]=>
string(25) "2019-07-18T14:30:00+02:00"
}
["carrierCode"]=>
string(2) "IB"
["number"]=>
string(4) "5685"
["aircraft"]=>
array(1) {
["code"]=>
string(3) "320"
}
["operating"]=>
array(2) {
["carrierCode"]=>
string(2) "VY"
["number"]=>
string(4) "5685"
}
["duration"]=>
string(8) "0DT2H25M"
}
["pricingDetailPerAdult"]=>
array(4) {
["travelClass"]=>
string(7) "ECONOMY"
["fareClass"]=>
string(1) "A"
["availability"]=>
int(4)
["fareBasis"]=>
string(6) "ARTNVY"
}
}
}
}
}
["price"]=>
array(2) {
["total"]=>
string(6) "209.09"
["totalTaxes"]=>
string(5) "74.09"
}
["pricePerAdult"]=>
array(2) {
["total"]=>
string(6) "209.09"
["totalTaxes"]=>
string(5) "74.09"
}
}
}
}
[1]=>
array(3) {
["type"]=>
string(12) "flight-offer"
["id"]=>
string(24) "1562680375384--510820791"
["offerItems"]=>
array(1) {
[0]=>
array(3) {
["services"]=>
array(2) {
[0]=>
array(1) {
["segments"]=>
array(1) {
[0]=>
array(2) {
["flightSegment"]=>
array(7) {
["departure"]=>
array(2) {
["iataCode"]=>
string(3) "AMS"
["at"]=>
string(25) "2019-07-16T07:00:00+02:00"
}
["arrival"]=>
array(3) {
["iataCode"]=>
string(3) "BCN"
["terminal"]=>
string(1) "1"
["at"]=>
string(25) "2019-07-16T09:20:00+02:00"
}
["carrierCode"]=>
string(2) "VY"
["number"]=>
string(4) "8318"
["aircraft"]=>
array(1) {
["code"]=>
string(3) "320"
}
["operating"]=>
array(2) {
["carrierCode"]=>
string(2) "VY"
["number"]=>
string(4) "8318"
}
["duration"]=>
string(8) "0DT2H20M"
}
["pricingDetailPerAdult"]=>
array(4) {
["travelClass"]=>
string(7) "ECONOMY"
["fareClass"]=>
string(1) "X"
["availability"]=>
int(6)
["fareBasis"]=>
string(5) "XRTVY"
}
}
}
}
[1]=>
array(1) {
["segments"]=>
array(1) {
[0]=>
array(2) {
["flightSegment"]=>
array(7) {
["departure"]=>
array(3) {
["iataCode"]=>
string(3) "BCN"
["terminal"]=>
string(1) "1"
["at"]=>
string(25) "2019-07-18T12:05:00+02:00"
}
["arrival"]=>
array(2) {
["iataCode"]=>
string(3) "AMS"
["at"]=>
string(25) "2019-07-18T14:30:00+02:00"
}
["carrierCode"]=>
string(2) "VY"
["number"]=>
string(4) "8302"
["aircraft"]=>
array(1) {
["code"]=>
string(3) "321"
}
["operating"]=>
array(2) {
["carrierCode"]=>
string(2) "VY"
["number"]=>
string(4) "8302"
}
["duration"]=>
string(8) "0DT2H25M"
}
["pricingDetailPerAdult"]=>
array(4) {
["travelClass"]=>
string(7) "ECONOMY"
["fareClass"]=>
string(1) "P"
["availability"]=>
int(8)
["fareBasis"]=>
string(5) "PRTVY"
}
}
}
}
}
["price"]=>
array(2) {
["total"]=>
string(6) "209.09"
["totalTaxes"]=>
string(5) "74.09"
}
["pricePerAdult"]=>
array(2) {
["total"]=>
string(6) "209.09"
["totalTaxes"]=>
string(5) "74.09"
}
}
}
}
}
["dictionaries"]=>
array(4) {
["carriers"]=>
array(2) {
["VY"]=>
string(16) "VUELING AIRLINES"
["IB"]=>
string(6) "IBERIA"
}
["currencies"]=>
array(1) {
["EUR"]=>
string(4) "EURO"
}
["aircraft"]=>
array(2) {
[320]=>
string(29) "AIRBUS INDUSTRIE A320-100/200"
[321]=>
string(21) "AIRBUS INDUSTRIE A321"
}
["locations"]=>
array(2) {
["AMS"]=>
array(2) {
["subType"]=>
string(7) "AIRPORT"
["detailedName"]=>
string(16) "SCHIPHOL AIRPORT"
}
["BCN"]=>
array(2) {
["subType"]=>
string(7) "AIRPORT"
["detailedName"]=>
string(7) "AIRPORT"
}
}
}
["meta"]=>
array(3) {
["links"]=>
array(1) {
["self"]=>
string(169) "https://test.api.amadeus.com/v1/shopping/flight-offers?origin=AMS&destination=BCN&departureDate=2019-07-16&returnDate=2019-07-18&adults=1&nonStop=true¤cy=EUR&max=2"
}
["currency"]=>
string(3) "EUR"
["defaults"]=>
array(1) {
["adults"]=>
int(1)
}
}
}
}
Now i have this:
foreach ( $flight_offers as $flights ) {
if (is_array( $flights ) ){
foreach ( $flights as $value ) {
echo $value;
}
} else {
echo $flights;
}
}
I have a massive array that i can't get data out of. I can only get data out of the first set of items.
I need to get to
["USFICO"]=>
array(3) {
["FICOScore"]=>
string(5) "00650"
out of it. But i can only get the top portion to work w/ $tester = $array['EfxReport']['#attributes']['reportId']; outputs to string(22) "USConsumerCreditReport" as expected.
how can i get the FICO score out of this array.
Here is the array.
array(1) {
["EfxReport"]=>
array(3) {
["#attributes"]=>
array(2) {
["requestNumber"]=>
string(1) "1"
["reportId"]=>
string(22) "USConsumerCreditReport"
}
["USDecisionPowerExpressReports"]=>
array(1) {
["USDecisionPowerExpressReport"]=>
array(4) {
["#attributes"]=>
array(2) {
["subjectType"]=>
string(7) "Subject"
["multipleNumber"]=>
string(1) "1"
}
["USMasterHeader"]=>
array(5) {
["CustomerReferenceNumber"]=>
string(6) "EFX QA"
["CustomerNumber"]=>
string(10) "999KI00553"
["ECOAInquiryType"]=>
string(1) "I"
["DateOfRequest"]=>
string(10) "02/23/2017"
["EquifaxReferenceNumber"]=>
string(9) "187391427"
}
["USConsumerCreditReport"]=>
array(6) {
["#attributes"]=>
array(2) {
["subjectType"]=>
string(7) "Subject"
["multipleNumber"]=>
string(1) "1"
}
["USHeader"]=>
array(3) {
["Request"]=>
array(6) {
["CustomerReferenceNumber"]=>
string(6) "EFX QA"
["CustomerNumber"]=>
string(10) "999KI00553"
["ConsumerReferralCode"]=>
string(3) "024"
["ECOAInquiryType"]=>
string(1) "I"
["NumberOfMonthsToCountInquiries"]=>
string(14) "Last 24 Months"
["NumberOfMonthsToCountDelinquencies"]=>
string(23) "Last 6 Years, 11 Months"
}
["CreditFile"]=>
array(11) {
["HitCode"]=>
array(1) {
["#attributes"]=>
array(2) {
["code"]=>
string(1) "1"
["description"]=>
string(3) "Hit"
}
}
["FileSinceDate"]=>
string(10) "04/16/2003"
["DateOfLastActivity"]=>
string(10) "01/24/2017"
["DateOfRequest"]=>
string(10) "02/23/2017"
["Identityscans"]=>
array(1) {
["Identityscan"]=>
array(1) {
["#attributes"]=>
array(2) {
["code"]=>
string(1) "8"
["description"]=>
string(74) "Unable to perform telephone validation due to insufficient telephone input"
}
}
}
["AddressDiscrepancyIndicator"]=>
string(1) "N"
["CreateCode"]=>
string(1) "2"
["FileStatus1"]=>
string(3) "016"
["FileStatus2"]=>
string(3) "242"
["FileStatus3"]=>
string(3) "004"
["BureauCode"]=>
string(3) "244"
}
["Subject"]=>
array(2) {
["SubjectName"]=>
array(3) {
["LastName"]=>
string(7) "DGNNLXZ"
["FirstName"]=>
string(7) "CHANITA"
["MiddleName"]=>
string(1) "S"
}
["SubjectId"]=>
array(2) {
["SubjectSSN"]=>
string(8) "66639074"
["DateOfBirth"]=>
string(10) "08/17/1988"
}
}
}
["USAddresses"]=>
array(1) {
["USAddress"]=>
array(3) {
[0]=>
array(8) {
["#attributes"]=>
array(2) {
["code"]=>
string(2) "CA"
["description"]=>
string(15) "Current Address"
}
["ParsedStreetAddress"]=>
array(3) {
["StreetNumber"]=>
string(4) "4338"
["StreetName"]=>
string(9) "W POTOMAC"
["StreetType"]=>
string(3) "AVE"
}
["City"]=>
string(7) "CHICAGO"
["State"]=>
string(2) "IL"
["PostalCode"]=>
string(5) "60651"
["DateAddressFirstReported"]=>
string(7) "07/2015"
["AddressSource"]=>
array(1) {
["#attributes"]=>
array(2) {
["code"]=>
string(1) "T"
["description"]=>
string(4) "Tape"
}
}
["DateAddressLastReported"]=>
string(7) "02/2017"
}
[1]=>
array(8) {
["#attributes"]=>
array(2) {
["code"]=>
string(2) "FA"
["description"]=>
string(14) "Former Address"
}
["ParsedStreetAddress"]=>
array(3) {
["StreetNumber"]=>
string(4) "1301"
["StreetName"]=>
string(7) "BRUMMEL"
["StreetType"]=>
string(8) "ST APT 8"
}
["City"]=>
string(8) "EVANSTON"
["State"]=>
string(2) "IL"
["PostalCode"]=>
string(5) "60202"
["DateAddressFirstReported"]=>
string(7) "04/2015"
["AddressSource"]=>
array(1) {
["#attributes"]=>
array(2) {
["code"]=>
string(1) "T"
["description"]=>
string(4) "Tape"
}
}
["DateAddressLastReported"]=>
string(7) "04/2015"
}
[2]=>
array(8) {
["#attributes"]=>
array(2) {
["code"]=>
string(2) "F2"
["description"]=>
string(21) "Second Former Address"
}
["ParsedStreetAddress"]=>
array(3) {
["StreetNumber"]=>
string(4) "1208"
["StreetName"]=>
string(11) "W JEFFERSON"
["StreetType"]=>
string(8) "ST APT C"
}
["City"]=>
string(11) "SPRINGFIELD"
["State"]=>
string(2) "IL"
["PostalCode"]=>
string(5) "62702"
["DateAddressFirstReported"]=>
string(7) "06/2014"
["AddressSource"]=>
array(1) {
["#attributes"]=>
array(2) {
["code"]=>
string(1) "T"
["description"]=>
string(4) "Tape"
}
}
["DateAddressLastReported"]=>
string(7) "06/2014"
}
}
}
["USEmployments"]=>
array(1) {
["USEmployment"]=>
array(3) {
["#attributes"]=>
array(2) {
["code"]=>
string(2) "ES"
["description"]=>
string(24) "Last Reported Employment"
}
["Occupation"]=>
string(14) "CORRECTION OFF"
["Employer"]=>
string(18) "MACON STATE PRISON"
}
}
["USFICO"]=>
array(3) {
["FICOScore"]=>
string(5) "00650"
["ScoreReasons"]=>
array(1) {
["ScoreReason"]=>
array(4) {
[0]=>
array(1) {
["#attributes"]=>
array(3) {
["code"]=>
string(5) "00038"
["description"]=>
string(69) "Serious delinquency, and derogatory public record or collection filed"
["number"]=>
string(1) "1"
}
}
[1]=>
array(1) {
["#attributes"]=>
array(3) {
["code"]=>
string(5) "00010"
["description"]=>
string(76) "Prop of balances to credit limits is too high on bank rev or other rev accts"
["number"]=>
string(1) "2"
}
}
[2]=>
array(1) {
["#attributes"]=>
array(3) {
["code"]=>
string(5) "00018"
["description"]=>
string(35) "Number of accounts with delinquency"
["number"]=>
string(1) "3"
}
}
[3]=>
array(1) {
["#attributes"]=>
array(3) {
["code"]=>
string(5) "00014"
["description"]=>
string(45) "Length of time accounts have been established"
["number"]=>
string(1) "4"
}
}
}
}
["ScoreIndicator"]=>
array(1) {
["#attributes"]=>
array(2) {
["code"]=>
string(1) "J"
["description"]=>
string(39) "FICO Score 5 based on Equifax Data (NF)"
}
}
}
["USIdentificationSSN"]=>
array(4) {
["MDBSubjectSSN"]=>
string(9) "666390749"
["InquirySubjectSSN"]=>
string(9) "666390749"
["InquirySSNDateIssued"]=>
string(4) "1992"
["InquirySSNStateIssued"]=>
string(2) "GA"
}
}
["USDecisionPowerExpressSegment"]=>
array(4) {
["ConsumerDisclosureIndicator"]=>
array(0) {
}
["ReportTextMessage"]=>
string(7) "OFFER C"
["SSNVarianceIndicator"]=>
array(0) {
}
["DPExpressProducts"]=>
array(1) {
["DPExpressProduct"]=>
array(4) {
[0]=>
array(5) {
["#attributes"]=>
array(1) {
["number"]=>
string(1) "1"
}
["Description"]=>
string(1) "A"
["ApprovalIndicator"]=>
string(1) "N"
["Limit"]=>
array(0) {
}
["Miscellaneous"]=>
array(0) {
}
}
[1]=>
array(5) {
["#attributes"]=>
array(1) {
["number"]=>
string(1) "2"
}
["Description"]=>
string(1) "B"
["ApprovalIndicator"]=>
string(1) "N"
["Limit"]=>
array(0) {
}
["Miscellaneous"]=>
array(0) {
}
}
[2]=>
array(5) {
["#attributes"]=>
array(1) {
["number"]=>
string(1) "3"
}
["Description"]=>
string(1) "C"
["ApprovalIndicator"]=>
string(1) "Y"
["Limit"]=>
array(0) {
}
["Miscellaneous"]=>
array(0) {
}
}
[3]=>
array(5) {
["#attributes"]=>
array(1) {
["number"]=>
string(1) "4"
}
["Description"]=>
string(1) "D"
["ApprovalIndicator"]=>
string(1) "N"
["Limit"]=>
array(0) {
}
["Miscellaneous"]=>
array(0) {
}
}
}
}
}
}
}
["USPrintImage"]=>
array(0) {
}
}
}
What's the error you're getting? Try:
$tester = $array['EfxReport']['USDecisionPowerExpressReports']['USDecisionPowerExpressReport']['USConsumerCreditReport']['USFICO']['FICOScore'];
Also I really hope this is fake data, you've included very personal/sensitive information in your array printout.
The title of this question is 100% what I'm after.
I have a JSON signature which is stored like this:
{"lines":[[[228.95,21.4],[228.95,24.4],[227.95,32.4],[225.95,40.4],[223.95,47.4],[221.95,54.4],[219.95,61.4],[216.95,69.4],[214.95,74.4],[212.95,80.4],[210.95,88.4],[208.95,93.4],[207.95,99.4],[206.95,106.4],[205.95,113.4],[205.95,119.4],[204.95,125.4],[204.95,129.4],[203.95,132.4],[202.95,134.4],[202.95,136.4],[202.95,137.4],[202.95,138.4],[201.95,139.4],[200.95,140.4],[200.95,141.4],[200.95,142.4],[200.95,143.4]],[[207.95,27.4],[231.95,24.4],[244.95,22.4],[257.95,22.4],[270.95,24.4],[282.95,26.4],[293.95,30.4],[303.95,35.4],[309.95,39.4],[314.95,44.4],[315.95,47.4],[315.95,51.4],[315.95,56.4],[312.95,62.4],[308.95,68.4],[301.95,75.4],[293.95,81.4],[284.95,87.4],[277.95,92.4],[268.95,97.4],[261.95,101.4],[255.95,103.4],[249.95,105.4],[244.95,105.4],[240.95,106.4],[235.95,107.4],[233.95,107.4],[231.95,107.4],[230.95,107.4],[229.95,107.4],[231.95,107.4],[234.95,107.4],[238.95,107.4],[245.95,107.4],[254.95,107.4],[268.95,109.4],[290.95,114.4],[317.95,120.4],[348.95,128.4],[378.95,135.4],[399.95,140.4],[413.95,142.4],[421.95,143.4],[427.95,144.4],[429.95,144.4],[430.95,144.4],[429.95,144.4],[427.95,144.4],[426.95,144.4],[423.95,144.4]]]}
I can show the signature on an page using jQuery like:
$('#sig').signature('draw', <?php echo $signature_1; ?>);
I can't figure it out though how I can decode the JSON string and display the signature using FPDF.
using
var_dump(json_decode();
I get
object(stdClass)#1 (1) { ["lines"]=> array(2) { [0]=> array(28) { [0]=> array(2) { [0]=> float(228.95) [1]=> float(21.4) } [1]=> array(2) { [0]=> float(228.95) [1]=> float(24.4) } [2]=> array(2) { [0]=> float(227.95) [1]=> float(32.4) } [3]=> array(2) { [0]=> float(225.95) [1]=> float(40.4) } [4]=> array(2) { [0]=> float(223.95) [1]=> float(47.4) } [5]=> array(2) { [0]=> float(221.95) [1]=> float(54.4) } [6]=> array(2) { [0]=> float(219.95) [1]=> float(61.4) } [7]=> array(2) { [0]=> float(216.95) [1]=> float(69.4) } [8]=> array(2) { [0]=> float(214.95) [1]=> float(74.4) } [9]=> array(2) { [0]=> float(212.95) [1]=> float(80.4) } [10]=> array(2) { [0]=> float(210.95) [1]=> float(88.4) } [11]=> array(2) { [0]=> float(208.95) [1]=> float(93.4) } [12]=> array(2) { [0]=> float(207.95) [1]=> float(99.4) } [13]=> array(2) { [0]=> float(206.95) [1]=> float(106.4) } [14]=> array(2) { [0]=> float(205.95) [1]=> float(113.4) } [15]=> array(2) { [0]=> float(205.95) [1]=> float(119.4) } [16]=> array(2) { [0]=> float(204.95) [1]=> float(125.4) } [17]=> array(2) { [0]=> float(204.95) [1]=> float(129.4) } [18]=> array(2) { [0]=> float(203.95) [1]=> float(132.4) } [19]=> array(2) { [0]=> float(202.95) [1]=> float(134.4) } [20]=> array(2) { [0]=> float(202.95) [1]=> float(136.4) } [21]=> array(2) { [0]=> float(202.95) [1]=> float(137.4) } [22]=> array(2) { [0]=> float(202.95) [1]=> float(138.4) } [23]=> array(2) { [0]=> float(201.95) [1]=> float(139.4) } [24]=> array(2) { [0]=> float(200.95) [1]=> float(140.4) } [25]=> array(2) { [0]=> float(200.95) [1]=> float(141.4) } [26]=> array(2) { [0]=> float(200.95) [1]=> float(142.4) } [27]=> array(2) { [0]=> float(200.95) [1]=> float(143.4) } } [1]=> array(50) { [0]=> array(2) { [0]=> float(207.95) [1]=> float(27.4) } [1]=> array(2) { [0]=> float(231.95) [1]=> float(24.4) } [2]=> array(2) { [0]=> float(244.95) [1]=> float(22.4) } [3]=> array(2) { [0]=> float(257.95) [1]=> float(22.4) } [4]=> array(2) { [0]=> float(270.95) [1]=> float(24.4) } [5]=> array(2) { [0]=> float(282.95) [1]=> float(26.4) } [6]=> array(2) { [0]=> float(293.95) [1]=> float(30.4) } [7]=> array(2) { [0]=> float(303.95) [1]=> float(35.4) } [8]=> array(2) { [0]=> float(309.95) [1]=> float(39.4) } [9]=> array(2) { [0]=> float(314.95) [1]=> float(44.4) } [10]=> array(2) { [0]=> float(315.95) [1]=> float(47.4) } [11]=> array(2) { [0]=> float(315.95) [1]=> float(51.4) } [12]=> array(2) { [0]=> float(315.95) [1]=> float(56.4) } [13]=> array(2) { [0]=> float(312.95) [1]=> float(62.4) } [14]=> array(2) { [0]=> float(308.95) [1]=> float(68.4) } [15]=> array(2) { [0]=> float(301.95) [1]=> float(75.4) } [16]=> array(2) { [0]=> float(293.95) [1]=> float(81.4) } [17]=> array(2) { [0]=> float(284.95) [1]=> float(87.4) } [18]=> array(2) { [0]=> float(277.95) [1]=> float(92.4) } [19]=> array(2) { [0]=> float(268.95) [1]=> float(97.4) } [20]=> array(2) { [0]=> float(261.95) [1]=> float(101.4) } [21]=> array(2) { [0]=> float(255.95) [1]=> float(103.4) } [22]=> array(2) { [0]=> float(249.95) [1]=> float(105.4) } [23]=> array(2) { [0]=> float(244.95) [1]=> float(105.4) } [24]=> array(2) { [0]=> float(240.95) [1]=> float(106.4) } [25]=> array(2) { [0]=> float(235.95) [1]=> float(107.4) } [26]=> array(2) { [0]=> float(233.95) [1]=> float(107.4) } [27]=> array(2) { [0]=> float(231.95) [1]=> float(107.4) } [28]=> array(2) { [0]=> float(230.95) [1]=> float(107.4) } [29]=> array(2) { [0]=> float(229.95) [1]=> float(107.4) } [30]=> array(2) { [0]=> float(231.95) [1]=> float(107.4) } [31]=> array(2) { [0]=> float(234.95) [1]=> float(107.4) } [32]=> array(2) { [0]=> float(238.95) [1]=> float(107.4) } [33]=> array(2) { [0]=> float(245.95) [1]=> float(107.4) } [34]=> array(2) { [0]=> float(254.95) [1]=> float(107.4) } [35]=> array(2) { [0]=> float(268.95) [1]=> float(109.4) } [36]=> array(2) { [0]=> float(290.95) [1]=> float(114.4) } [37]=> array(2) { [0]=> float(317.95) [1]=> float(120.4) } [38]=> array(2) { [0]=> float(348.95) [1]=> float(128.4) } [39]=> array(2) { [0]=> float(378.95) [1]=> float(135.4) } [40]=> array(2) { [0]=> float(399.95) [1]=> float(140.4) } [41]=> array(2) { [0]=> float(413.95) [1]=> float(142.4) } [42]=> array(2) { [0]=> float(421.95) [1]=> float(143.4) } [43]=> array(2) { [0]=> float(427.95) [1]=> float(144.4) } [44]=> array(2) { [0]=> float(429.95) [1]=> float(144.4) } [45]=> array(2) { [0]=> float(430.95) [1]=> float(144.4) } [46]=> array(2) { [0]=> float(429.95) [1]=> float(144.4) } [47]=> array(2) { [0]=> float(427.95) [1]=> float(144.4) } [48]=> array(2) { [0]=> float(426.95) [1]=> float(144.4) } [49]=> array(2) { [0]=> float(423.95) [1]=> float(144.4) } } } }
Looking for help.
Thanks.
BB
In my opinion you should obtain an image of your signature an include it into the pdf.
You have two paths for doing this, client side and server side.
For server side there is this script for other js project, now discontinued but maybe usefull for you https://github.com/thomasjbradley/signature-to-image/ I don't now if your plugin generates de signature JSON in the same fashion that this one, but reading this code can help you doing the server work
Other server side solution is to send the signature in svg format from your plugin and convert it to pdf, this php project supports svg natively https://tcpdf.org/
In the client side, you can get the canvas image through
HTMLCanvasElement.toDataURL()
This generates an uri containing the base64 encoded image string that you can send to the server, but depends on the browser support of the feature
Info here https://developer.mozilla.org/en-US/docs/Web/API/HTMLCanvasElement/toDataURL
Good luck