Advanced Order Export For WooCommerce - Version 2.1.0

Version Description

  • 2019-02-06 =
  • New format - PDF
  • Fixed some vulnerabilities
  • Added button "Reset settings"
  • Section "Setup fields" works on phone/tablet
  • New XLS option to avoid formatting - "Force general format for all cells"
  • Fixed bug - fields "Summary Report Total xxxx" stayed at bottom
  • Fixed bug - "Summary report" was not sorted by item name
  • Fixed bug - fields reset when user switches between flat formats
  • Fixed bug - field "full categories" was empty for variations
  • Tested for jQuery 3.0+
Download this release

Release Info

Developer algol.plus
Plugin Icon 128x128 Advanced Order Export For WooCommerce
Version 2.1.0
Comparing to
See all releases

Code changes from version 2.0.1 to 2.1.0

Files changed (41) hide show
  1. assets/css/export.css +15 -0
  2. assets/js/export.js +25 -14
  3. assets/js/settings-form.js +100 -41
  4. classes/FPDF/class-woe-pdf-mc-table.php +433 -0
  5. classes/FPDF/font/courier.php +10 -0
  6. classes/FPDF/font/courierb.php +10 -0
  7. classes/FPDF/font/courierbi.php +10 -0
  8. classes/FPDF/font/courieri.php +10 -0
  9. classes/FPDF/font/helvetica.php +21 -0
  10. classes/FPDF/font/helveticab.php +21 -0
  11. classes/FPDF/font/helveticabi.php +21 -0
  12. classes/FPDF/font/helveticai.php +21 -0
  13. classes/FPDF/font/symbol.php +20 -0
  14. classes/FPDF/font/times.php +21 -0
  15. classes/FPDF/font/timesb.php +21 -0
  16. classes/FPDF/font/timesbi.php +21 -0
  17. classes/FPDF/font/timesi.php +21 -0
  18. classes/FPDF/font/zapfdingbats.php +20 -0
  19. classes/FPDF/fpdf.php +1898 -0
  20. classes/admin/class-wc-order-export-ajax.php +17 -3
  21. classes/admin/class-wc-order-export-manage.php +75 -19
  22. classes/class-wc-order-export-admin.php +122 -28
  23. classes/core/class-wc-order-export-data-extractor-ui.php +25 -14
  24. classes/core/class-wc-order-export-data-extractor.php +23 -9
  25. classes/core/class-wc-order-export-engine.php +4 -2
  26. classes/formats/abstract-class-woe-formatter-plain-format.php +9 -0
  27. classes/formats/abstract-class-woe-formatter-sv.php +3 -3
  28. classes/formats/abstract-class-woe-formatter.php +4 -4
  29. classes/formats/class-woe-formatter-csv.php +1 -1
  30. classes/formats/class-woe-formatter-pdf.php +142 -0
  31. classes/formats/class-woe-formatter-xls.php +24 -23
  32. classes/formats/trait-woe-plain-format.php +16 -0
  33. i18n/languages/woo-order-export-lite.pot +913 -779
  34. readme.txt +13 -1
  35. view/main.php +1 -0
  36. view/settings-form.php +177 -5
  37. view/tab/order-actions.php +1 -1
  38. view/tab/profiles.php +1 -1
  39. view/tab/schedules.php +1 -1
  40. view/tab/tools.php +20 -13
  41. woo-order-export-lite.php +2 -2
assets/css/export.css CHANGED
@@ -905,4 +905,19 @@ input.date{
905
position: absolute;
906
top: 5px;
907
right: 5px;
908
}
905
position: absolute;
906
top: 5px;
907
right: 5px;
908
+ }
909
+
910
+ .pdf_two_col_block {
911
+ display: inline-block;
912
+ width: 48%;
913
+ vertical-align: top;
914
+ }
915
+
916
+ .pdf_two_col_block input[type=number]{
917
+ width: 40%;
918
+ }
919
+
920
+ #unselected_fields_list {
921
+ overflow-y: scroll;
922
+ height: 700px;
923
}
assets/js/export.js CHANGED
@@ -50,7 +50,8 @@ function bind_events() {
50
var data = {
51
'cf_name': jQuery( this ).val(),
52
method: "get_order_custom_fields_values",
53
- action: "order_exporter"
54
};
55
var val_op = jQuery( '#custom_fields_compare' ).val();
56
jQuery( '#text_custom_fields' ).val( '' );
@@ -141,7 +142,8 @@ function bind_events() {
141
var data = {
142
'attr': jQuery( this ).val(),
143
method: "get_products_attributes_values",
144
- action: "order_exporter"
145
};
146
147
var val_op = jQuery( '#attributes_compare' ).val();
@@ -221,7 +223,8 @@ function bind_events() {
221
var data = {
222
'item': window.atob(selected64),
223
method: "get_products_itemmeta_values",
224
- action: "order_exporter"
225
};
226
227
var val_op = jQuery( '#itemmeta_compare' ).val();
@@ -300,7 +303,8 @@ function bind_events() {
300
var data = {
301
'tax': jQuery( this ).val(),
302
method: "get_products_taxonomies_values",
303
- action: "order_exporter"
304
};
305
306
jQuery.post( ajaxurl, data, function( response ) {
@@ -373,7 +377,8 @@ function bind_events() {
373
var data = {
374
'cf_name': jQuery( this ).val(),
375
method: "get_product_custom_fields_values",
376
- action: "order_exporter"
377
};
378
379
var val_op = jQuery( '#product_custom_fields_compare' ).val();
@@ -500,7 +505,7 @@ function bind_events() {
500
}
501
else {
502
var json = makeJsonVar(jQuery( '#export_job_settings' ));
503
- var data = "json="+ json +"&action=order_exporter&method=get_used_custom_order_meta";
504
505
jQuery.post( ajaxurl, data, function( response ) {
506
if ( response ) {
@@ -535,8 +540,8 @@ function bind_events() {
535
else {
536
// jQuery('#modal-manage-products').html(jQuery('#TB_ajaxContent').html());
537
var data = jQuery( '#export_job_settings' ).serialize(),
538
- data_products = data + "&action=order_exporter&method=get_used_custom_products_meta&mode=" + mode + "&id=" + job_id,
539
- data_order_items = data + "&action=order_exporter&method=get_used_custom_order_items_meta&mode=" + mode + "&id=" + job_id;
540
541
jQuery.post( ajaxurl, data_products, function( response ) {
542
if ( response ) {
@@ -575,7 +580,7 @@ function bind_events() {
575
}
576
else {
577
var data = jQuery( '#export_job_settings' ).serialize()
578
- data = data + "&action=order_exporter&method=get_used_custom_coupons_meta";
579
580
jQuery.post( ajaxurl, data, function( response ) {
581
if ( response ) {
@@ -628,7 +633,8 @@ function bind_events() {
628
var data = {
629
'item': jQuery( this ).val(),
630
method: "get_order_shipping_values",
631
- action: "order_exporter"
632
};
633
634
jQuery.post( ajaxurl, data, function( response ) {
@@ -687,7 +693,8 @@ function bind_events() {
687
var data = {
688
'item': jQuery( this ).val(),
689
method: "get_order_billing_values",
690
- action: "order_exporter"
691
};
692
693
jQuery.post( ajaxurl, data, function( response ) {
@@ -747,7 +754,8 @@ function bind_events() {
747
var data = {
748
'item_type': jQuery( this ).val(),
749
method: "get_order_item_names",
750
- action: "order_exporter"
751
};
752
753
jQuery.post( ajaxurl, data, function( response ) {
@@ -806,7 +814,8 @@ function bind_events() {
806
var data = {
807
'meta_key': jQuery( this ).val(),
808
method: "get_order_item_meta_key_values",
809
- action: "order_exporter"
810
};
811
812
jQuery.post( ajaxurl, data, function( response ) {
@@ -868,7 +877,8 @@ function bind_events_users() {
868
var data = {
869
'cf_name': jQuery( this ).val(),
870
method: "get_user_custom_fields_values",
871
- action: "order_exporter"
872
};
873
var val_op = jQuery( '#select_user_custom_fields' ).val();
874
jQuery( '#text_user_custom_fields' ).val( '' );
@@ -1538,6 +1548,7 @@ jQuery( document ).ready( function ($) {
1538
'method': 'reorder_jobs',
1539
'new_jobs_order': $( "#the-list" ).sortable( "toArray", {attribute: 'data-job_id'} ),
1540
'tab_name': $tab_name,
1541
},
1542
error: function ( response ) {},
1543
dataType: 'json',
50
var data = {
51
'cf_name': jQuery( this ).val(),
52
method: "get_order_custom_fields_values",
53
+ action: "order_exporter",
54
+ woe_nonce: woe_nonce,
55
};
56
var val_op = jQuery( '#custom_fields_compare' ).val();
57
jQuery( '#text_custom_fields' ).val( '' );
142
var data = {
143
'attr': jQuery( this ).val(),
144
method: "get_products_attributes_values",
145
+ action: "order_exporter",
146
+ woe_nonce: woe_nonce,
147
};
148
149
var val_op = jQuery( '#attributes_compare' ).val();
223
var data = {
224
'item': window.atob(selected64),
225
method: "get_products_itemmeta_values",
226
+ action: "order_exporter",
227
+ woe_nonce: woe_nonce,
228
};
229
230
var val_op = jQuery( '#itemmeta_compare' ).val();
303
var data = {
304
'tax': jQuery( this ).val(),
305
method: "get_products_taxonomies_values",
306
+ action: "order_exporter",
307
+ woe_nonce: woe_nonce,
308
};
309
310
jQuery.post( ajaxurl, data, function( response ) {
377
var data = {
378
'cf_name': jQuery( this ).val(),
379
method: "get_product_custom_fields_values",
380
+ action: "order_exporter",
381
+ woe_nonce: woe_nonce,
382
};
383
384
var val_op = jQuery( '#product_custom_fields_compare' ).val();
505
}
506
else {
507
var json = makeJsonVar(jQuery( '#export_job_settings' ));
508
+ var data = "json="+ json +"&action=order_exporter&method=get_used_custom_order_meta&woe_nonce=" + woe_nonce;
509
510
jQuery.post( ajaxurl, data, function( response ) {
511
if ( response ) {
540
else {
541
// jQuery('#modal-manage-products').html(jQuery('#TB_ajaxContent').html());
542
var data = jQuery( '#export_job_settings' ).serialize(),
543
+ data_products = data + "&action=order_exporter&method=get_used_custom_products_meta&mode=" + mode + "&id=" + job_id + '&woe_nonce=' + woe_nonce;
544
+ data_order_items = data + "&action=order_exporter&method=get_used_custom_order_items_meta&mode=" + mode + "&id=" + job_id + '&woe_nonce='+ woe_nonce;
545
546
jQuery.post( ajaxurl, data_products, function( response ) {
547
if ( response ) {
580
}
581
else {
582
var data = jQuery( '#export_job_settings' ).serialize()
583
+ data = data + "&action=order_exporter&method=get_used_custom_coupons_meta&woe_nonce=" + woe_nonce;
584
585
jQuery.post( ajaxurl, data, function( response ) {
586
if ( response ) {
633
var data = {
634
'item': jQuery( this ).val(),
635
method: "get_order_shipping_values",
636
+ action: "order_exporter",
637
+ woe_nonce: woe_nonce,
638
};
639
640
jQuery.post( ajaxurl, data, function( response ) {
693
var data = {
694
'item': jQuery( this ).val(),
695
method: "get_order_billing_values",
696
+ action: "order_exporter",
697
+ woe_nonce: woe_nonce,
698
};
699
700
jQuery.post( ajaxurl, data, function( response ) {
754
var data = {
755
'item_type': jQuery( this ).val(),
756
method: "get_order_item_names",
757
+ action: "order_exporter",
758
+ woe_nonce: woe_nonce,
759
};
760
761
jQuery.post( ajaxurl, data, function( response ) {
814
var data = {
815
'meta_key': jQuery( this ).val(),
816
method: "get_order_item_meta_key_values",
817
+ action: "order_exporter",
818
+ woe_nonce: woe_nonce,
819
};
820
821
jQuery.post( ajaxurl, data, function( response ) {
877
var data = {
878
'cf_name': jQuery( this ).val(),
879
method: "get_user_custom_fields_values",
880
+ action: "order_exporter",
881
+ woe_nonce: woe_nonce,
882
};
883
var val_op = jQuery( '#select_user_custom_fields' ).val();
884
jQuery( '#text_user_custom_fields' ).val( '' );
1548
'method': 'reorder_jobs',
1549
'new_jobs_order': $( "#the-list" ).sortable( "toArray", {attribute: 'data-job_id'} ),
1550
'tab_name': $tab_name,
1551
+ woe_nonce: woe_nonce,
1552
},
1553
error: function ( response ) {},
1554
dataType: 'json',
assets/js/settings-form.js CHANGED
@@ -268,7 +268,7 @@ jQuery( document ).ready( function( $ ) {
268
$( '.wc_oe_test' ).click( function() {
269
var test = $( this ).attr( 'data-test' );
270
var data = 'json=' + makeJsonVar( $( '#export_job_settings' ) )
271
- data = data + "&action=order_exporter&method=test_destination&mode=" + mode + "&id=" + job_id + "&destination=" + test;
272
$( '#test_reply_div' ).hide();
273
$.post( ajaxurl, data, function( data ) {
274
$( '#test_reply' ).val( data );
@@ -292,16 +292,17 @@ jQuery( document ).ready( function( $ ) {
292
} );
293
294
setTimeout( function () {
295
- if (window.location.hash.indexOf('segment') !== -1) {
296
$('.segment_choice[href="'+ window.location.hash +'"]').click()
297
} else {
298
- $('.segment_choice').first().addClass('active');
299
- $('.settings-segment').first().addClass('active');
300
}
301
}, 1000 );
302
303
304
- let text_area = $( '#destination-email-body' );
305
306
$( '#show-email-body' ).click( function () {
307
text_area.toggle();
@@ -614,7 +615,7 @@ function to_xml_tags( str ) {
614
615
616
function change_filename_ext() {
617
- if ( jQuery( '#export_filename' ).size() ) {
618
var filename = jQuery( '#export_filename input' ).val();
619
var ext = output_format.toLowerCase();
620
if( ext=='xls' && !jQuery( '#format_xls_use_xls_format' ).prop('checked') ) //fix for XLSX
@@ -727,10 +728,11 @@ jQuery( document ).ready( function( $ ) {
727
jQuery( this ).next().addClass( 'ui-icon-triangle-1-n' );
728
jQuery( '#' + output_format + '_options' ).hide();
729
jQuery( '#' + new_format + '_options' ).show();
730
old_output_format = output_format;
731
output_format = new_format;
732
- synch_selected_fields(old_output_format, output_format);
733
- create_selected_fields( old_output_format, output_format, true );
734
jQuery( '.field_section' ).prop('checked', true);
735
jQuery( '#output_preview, #output_preview_csv' ).hide();
736
// jQuery( '#fields' ).hide();
@@ -778,7 +780,7 @@ jQuery( document ).ready( function( $ ) {
778
} );
779
780
$( '#order_fields input[type=checkbox]' ).change( function() {
781
- if ( $( '#order_fields input[type=checkbox]:not(:checked)' ).size() ) {
782
$( 'input[name=orders_all]' ).attr( 'checked', false );
783
}
784
else {
@@ -795,7 +797,7 @@ jQuery( document ).ready( function( $ ) {
795
}
796
} );
797
798
- if ( $( '#order_fields input[type=checkbox]' ).size() ) {
799
$( '#order_fields input[type=checkbox]:first' ).change();
800
}
801
@@ -818,7 +820,7 @@ jQuery( document ).ready( function( $ ) {
818
function preview(size) {
819
jQuery( '#output_preview, #output_preview_csv' ).hide();
820
var data = 'json=' + makeJsonVar( $( '#export_job_settings' ) );
821
- var estimate_data = data + "&action=order_exporter&method=estimate&mode=" + mode + "&id=" + job_id;
822
$.post( ajaxurl, estimate_data, function( response ) {
823
if (!response || typeof response.total == 'undefined') {
824
woe_show_error_message(response);
@@ -845,7 +847,7 @@ jQuery( document ).ready( function( $ ) {
845
window.scrollTo( 0, document.body.scrollHeight );
846
}
847
848
- data = data + "&action=order_exporter&method=preview&limit="+size+"&mode=" + mode + "&id=" + job_id;
849
$.post( ajaxurl, data, showPreview, "html" ).fail( function( xhr, textStatus, errorThrown ) {
850
showPreview( xhr.responseText );
851
});
@@ -892,6 +894,7 @@ jQuery( document ).ready( function( $ ) {
892
data.push( { name: 'method', value: method } );
893
data.push( { name: 'start', value: start } );
894
data.push( { name: 'file_id', value: window.file_id } );
895
896
jQuery.ajax( {
897
type: "post",
@@ -918,6 +921,7 @@ jQuery( document ).ready( function( $ ) {
918
data = get_data();
919
data.push( { name: 'method', value: 'export_finish' } );
920
data.push( { name: 'file_id', value: window.file_id } );
921
jQuery.ajax( {
922
type: "post",
923
data: data,
@@ -994,7 +998,7 @@ jQuery( document ).ready( function( $ ) {
994
verify_checkboxes = verify_checkboxes || 0;
995
var f = false;
996
$( '#'+object_id+' ul' ).each( function( index ) {
997
- if ( $( this ).find( 'li:not(:first)' ).size() ) {
998
f = true;
999
}
1000
} );
@@ -1020,7 +1024,7 @@ jQuery( document ).ready( function( $ ) {
1020
return false;
1021
}
1022
}
1023
- if ( $( '#order_fields > li' ).size() == 0 )
1024
{
1025
alert( export_messages.no_fields );
1026
return false;
@@ -1042,7 +1046,10 @@ jQuery( document ).ready( function( $ ) {
1042
data = get_data();
1043
1044
data.push( { name: 'method', value: 'export_start' } );
1045
- if ( ( $( "#from_date" ).val() ) && ( $( "#to_date" ).val() ) ) {
1046
var d1 = new Date( $( "#from_date" ).val() );
1047
var d2 = new Date( $( "#to_date" ).val() );
1048
if ( d1.getTime() > d2.getTime() ) {
@@ -1051,14 +1058,13 @@ jQuery( document ).ready( function( $ ) {
1051
}
1052
}
1053
1054
- if ( $( '#order_fields > li' ).size() == 0 )
1055
{
1056
alert( export_messages.no_fields );
1057
return false;
1058
}
1059
1060
-
1061
- jQuery.ajax( {
1062
type: "post",
1063
data: data,
1064
cache: false,
@@ -1093,7 +1099,7 @@ jQuery( document ).ready( function( $ ) {
1093
}
1094
setFormSubmitting();
1095
var data = 'json=' + makeJsonVar( $( '#export_job_settings' ) )
1096
- data = data + "&action=order_exporter&method=save_settings&mode=" + mode + "&id=" + job_id;
1097
$.post( ajaxurl, data, function( response ) {
1098
document.location = settings_form.save_settings_url;
1099
}, "json" );
@@ -1105,7 +1111,7 @@ jQuery( document ).ready( function( $ ) {
1105
}
1106
setFormSubmitting();
1107
var data = 'json=' + makeJsonVar( $( '#export_job_settings' ) )
1108
- data = data + "&action=order_exporter&method=save_settings&mode=" + mode + "&id=" + job_id;
1109
$('#Settings_updated').hide();
1110
$.post( ajaxurl, data, function( response ) {
1111
$('#Settings_updated').show().delay(5000).fadeOut();
@@ -1118,13 +1124,26 @@ jQuery( document ).ready( function( $ ) {
1118
}
1119
1120
var data = 'json=' + makeJsonVar( $( '#export_job_settings' ) )
1121
- data = data + "&action=order_exporter&method=save_settings&mode=" + settings_form.EXPORT_PROFILE + "&id=";
1122
$.post( ajaxurl, data, function( response ) {
1123
document.location =settings_form.copy_to_profiles_url + '&profile_id=' + response.id;
1124
}, "json" );
1125
return false;
1126
} );
1127
1128
openFilter('my-order', 1);
1129
1130
openFilter('my-products');
@@ -1151,7 +1170,7 @@ jQuery( document ).ready( function( $ ) {
1151
jQuery('#summary_setup_fields').hide();
1152
1153
//logic for setup link
1154
- jQuery( "#summary_report_by_products_checkbox" ).change( function() {
1155
var summary_report_fields = [];
1156
summary_report_fields.push($('#products_unselected_segment input[value="plain_products_summary_report_total_qty"]').parents('li'));
1157
summary_report_fields.push($('#products_unselected_segment input[value="plain_products_summary_report_total_amount"]').parents('li'));
@@ -1172,22 +1191,24 @@ jQuery( document ).ready( function( $ ) {
1172
}
1173
} );
1174
1175
- // purge summary report fields before insert
1176
- $('#order_fields input[value="plain_products_summary_report_total_qty"]').closest('.mapping_row').remove();
1177
- $('#order_fields input[value="plain_products_summary_report_total_amount"]').closest('.mapping_row').remove();
1178
-
1179
- // insert summary report fields
1180
- jQuery.each( summary_report_fields, function( i, value ) {
1181
- $(value).show();
1182
- var $field_to_copy = $(value).clone();
1183
- $field_to_copy
1184
- .attr('style', '')
1185
- .addClass('ui-draggabled')
1186
- .removeClass('segment_field')
1187
- .find('input').prop('disabled', false);
1188
-
1189
- jQuery('#manage_fields #order_fields').append($field_to_copy);
1190
- } );
1191
1192
} else {
1193
var segment = window.location.hash.replace('#segment=', '');
@@ -1198,7 +1219,7 @@ jQuery( document ).ready( function( $ ) {
1198
if ( typeof $value === 'undefined' ) {
1199
return;
1200
}
1201
-
1202
if ( $value.match( /plain_products_(line|qty).*/ ) ) {
1203
$( this ).closest( '.mapping_row' ).show();
1204
}
@@ -1219,7 +1240,7 @@ jQuery( document ).ready( function( $ ) {
1219
});
1220
1221
setTimeout(function () {
1222
- jQuery( "#summary_report_by_products_checkbox" ).trigger('change');
1223
}, 1)
1224
1225
// this line must be last , we don't have any errors
@@ -1277,6 +1298,7 @@ jQuery( document ).ready( function( $ ) {
1277
return false;
1278
});
1279
1280
1281
} );
1282
@@ -1667,4 +1689,41 @@ function woe_show_error_message(text) {
1667
if (!text)
1668
text = "Please, open section 'Misc Settings' and \n mark checkbox 'Enable debug output' \n to see exact error message";
1669
alert(text);
1670
- }
268
$( '.wc_oe_test' ).click( function() {
269
var test = $( this ).attr( 'data-test' );
270
var data = 'json=' + makeJsonVar( $( '#export_job_settings' ) )
271
+ data = data + "&action=order_exporter&method=test_destination&mode=" + mode + "&id=" + job_id + "&destination=" + test + '&woe_nonce=' + woe_nonce;
272
$( '#test_reply_div' ).hide();
273
$.post( ajaxurl, data, function( data ) {
274
$( '#test_reply' ).val( data );
292
} );
293
294
setTimeout( function () {
295
+ if (summary_mode) {
296
+ $('.segment_choice[href="products"]').click()
297
+ } else if (window.location.hash.indexOf('segment') !== -1) {
298
$('.segment_choice[href="'+ window.location.hash +'"]').click()
299
} else {
300
+ $('.segment_choice').first().click();
301
}
302
}, 1000 );
303
304
305
+ var text_area = $( '#destination-email-body' );
306
307
$( '#show-email-body' ).click( function () {
308
text_area.toggle();
615
616
617
function change_filename_ext() {
618
+ if ( jQuery( '#export_filename' ).length ) {
619
var filename = jQuery( '#export_filename input' ).val();
620
var ext = output_format.toLowerCase();
621
if( ext=='xls' && !jQuery( '#format_xls_use_xls_format' ).prop('checked') ) //fix for XLSX
728
jQuery( this ).next().addClass( 'ui-icon-triangle-1-n' );
729
jQuery( '#' + output_format + '_options' ).hide();
730
jQuery( '#' + new_format + '_options' ).show();
731
+ var format_type_changed = ! (is_flat_format(new_format) && is_flat_format(output_format));
732
old_output_format = output_format;
733
output_format = new_format;
734
+ synch_selected_fields( old_output_format, output_format );
735
+ create_selected_fields( old_output_format, output_format, format_type_changed );
736
jQuery( '.field_section' ).prop('checked', true);
737
jQuery( '#output_preview, #output_preview_csv' ).hide();
738
// jQuery( '#fields' ).hide();
780
} );
781
782
$( '#order_fields input[type=checkbox]' ).change( function() {
783
+ if ( $( '#order_fields input[type=checkbox]:not(:checked)' ).length ) {
784
$( 'input[name=orders_all]' ).attr( 'checked', false );
785
}
786
else {
797
}
798
} );
799
800
+ if ( $( '#order_fields input[type=checkbox]' ).length ) {
801
$( '#order_fields input[type=checkbox]:first' ).change();
802
}
803
820
function preview(size) {
821
jQuery( '#output_preview, #output_preview_csv' ).hide();
822
var data = 'json=' + makeJsonVar( $( '#export_job_settings' ) );
823
+ var estimate_data = data + "&action=order_exporter&method=estimate&mode=" + mode + "&id=" + job_id + '&woe_nonce=' + woe_nonce;
824
$.post( ajaxurl, estimate_data, function( response ) {
825
if (!response || typeof response.total == 'undefined') {
826
woe_show_error_message(response);
847
window.scrollTo( 0, document.body.scrollHeight );
848
}
849
850
+ data = data + "&action=order_exporter&method=preview&limit="+size+"&mode=" + mode + "&id=" + job_id + '&woe_nonce=' + woe_nonce;
851
$.post( ajaxurl, data, showPreview, "html" ).fail( function( xhr, textStatus, errorThrown ) {
852
showPreview( xhr.responseText );
853
});
894
data.push( { name: 'method', value: method } );
895
data.push( { name: 'start', value: start } );
896
data.push( { name: 'file_id', value: window.file_id } );
897
+ data.push( { name: 'woe_nonce', value: woe_nonce } );
898
899
jQuery.ajax( {
900
type: "post",
921
data = get_data();
922
data.push( { name: 'method', value: 'export_finish' } );
923
data.push( { name: 'file_id', value: window.file_id } );
924
+ data.push( { name: 'woe_nonce', value: woe_nonce } );
925
jQuery.ajax( {
926
type: "post",
927
data: data,
998
verify_checkboxes = verify_checkboxes || 0;
999
var f = false;
1000
$( '#'+object_id+' ul' ).each( function( index ) {
1001
+ if ( $( this ).find( 'li:not(:first)' ).length ) {
1002
f = true;
1003
}
1004
} );
1024
return false;
1025
}
1026
}
1027
+ if ( $( '#order_fields > li' ).length == 0 )
1028
{
1029
alert( export_messages.no_fields );
1030
return false;
1046
data = get_data();
1047
1048
data.push( { name: 'method', value: 'export_start' } );
1049
+
1050
+ data.push( { name: 'woe_nonce', value: woe_nonce } );
1051
+
1052
+ if ( ( $( "#from_date" ).val() ) && ( $( "#to_date" ).val() ) ) {
1053
var d1 = new Date( $( "#from_date" ).val() );
1054
var d2 = new Date( $( "#to_date" ).val() );
1055
if ( d1.getTime() > d2.getTime() ) {
1058
}
1059
}
1060
1061
+ if ( $( '#order_fields > li' ).length == 0 )
1062
{
1063
alert( export_messages.no_fields );
1064
return false;
1065
}
1066
1067
+ jQuery.ajax( {
1068
type: "post",
1069
data: data,
1070
cache: false,
1099
}
1100
setFormSubmitting();
1101
var data = 'json=' + makeJsonVar( $( '#export_job_settings' ) )
1102
+ data = data + "&action=order_exporter&method=save_settings&mode=" + mode + "&id=" + job_id + '&woe_nonce=' + woe_nonce;
1103
$.post( ajaxurl, data, function( response ) {
1104
document.location = settings_form.save_settings_url;
1105
}, "json" );
1111
}
1112
setFormSubmitting();
1113
var data = 'json=' + makeJsonVar( $( '#export_job_settings' ) )
1114
+ data = data + "&action=order_exporter&method=save_settings&mode=" + mode + "&id=" + job_id + '&woe_nonce=' + woe_nonce;
1115
$('#Settings_updated').hide();
1116
$.post( ajaxurl, data, function( response ) {
1117
$('#Settings_updated').show().delay(5000).fadeOut();
1124
}
1125
1126
var data = 'json=' + makeJsonVar( $( '#export_job_settings' ) )
1127
+ data = data + "&action=order_exporter&method=save_settings&mode=" + settings_form.EXPORT_PROFILE + "&id=" + '&woe_nonce=' + woe_nonce;
1128
$.post( ajaxurl, data, function( response ) {
1129
document.location =settings_form.copy_to_profiles_url + '&profile_id=' + response.id;
1130
}, "json" );
1131
return false;
1132
} );
1133
1134
+ $( "#reset-profile" ).click( function () {
1135
+ if ( confirm( localize_settings_form.reset_profile_confirm ) ) {
1136
+ var data = "action=order_exporter&method=reset_profile&mode=" + mode + "&id=" + '&woe_nonce=' + woe_nonce;
1137
+ $.post( ajaxurl, data, function ( response ) {
1138
+ if (response.success) {
1139
+ document.location.reload();
1140
+ }
1141
+ }, "json" );
1142
+ }
1143
+
1144
+ return false;
1145
+ } );
1146
+
1147
openFilter('my-order', 1);
1148
1149
openFilter('my-products');
1170
jQuery('#summary_setup_fields').hide();
1171
1172
//logic for setup link
1173
+ jQuery( "#summary_report_by_products_checkbox" ).change( function(e, action) {
1174
var summary_report_fields = [];
1175
summary_report_fields.push($('#products_unselected_segment input[value="plain_products_summary_report_total_qty"]').parents('li'));
1176
summary_report_fields.push($('#products_unselected_segment input[value="plain_products_summary_report_total_amount"]').parents('li'));
1191
}
1192
} );
1193
1194
+ if ( 'onstart' !== action ) {
1195
+ // purge summary report fields before insert
1196
+ $('#order_fields input[value="plain_products_summary_report_total_qty"]').closest('.mapping_row').remove();
1197
+ $('#order_fields input[value="plain_products_summary_report_total_amount"]').closest('.mapping_row').remove();
1198
+
1199
+ // insert summary report fields
1200
+ jQuery.each( summary_report_fields, function( i, value ) {
1201
+ $(value).show();
1202
+ var $field_to_copy = $(value).clone();
1203
+ $field_to_copy
1204
+ .attr('style', '')
1205
+ .addClass('ui-draggabled')
1206
+ .removeClass('segment_field')
1207
+ .find('input').prop('disabled', false);
1208
+
1209
+ jQuery('#manage_fields #order_fields').append($field_to_copy);
1210
+ } );
1211
+ }
1212
1213
} else {
1214
var segment = window.location.hash.replace('#segment=', '');
1219
if ( typeof $value === 'undefined' ) {
1220
return;
1221
}
1222
+
1223
if ( $value.match( /plain_products_(line|qty).*/ ) ) {
1224
$( this ).closest( '.mapping_row' ).show();
1225
}
1240
});
1241
1242
setTimeout(function () {
1243
+ jQuery( "#summary_report_by_products_checkbox" ).trigger('change', 'onstart');
1244
}, 1)
1245
1246
// this line must be last , we don't have any errors
1298
return false;
1299
});
1300
1301
+ init_image_uploaders();
1302
1303
} );
1304
1689
if (!text)
1690
text = "Please, open section 'Misc Settings' and \n mark checkbox 'Enable debug output' \n to see exact error message";
1691
alert(text);
1692
+ }
1693
+
1694
+ function init_image_uploaders() {
1695
+ var custom_uploader;
1696
+ jQuery( '.image-upload-button' ).click( function ( e ) {
1697
+ e.preventDefault();
1698
+ if ( custom_uploader ) {
1699
+ custom_uploader.open();
1700
+ return;
1701
+ }
1702
+
1703
+ custom_uploader = wp.media.frames.file_frame = wp.media( {
1704
+ title: 'Choose Image',
1705
+ button: {
1706
+ text: 'Choose Image'
1707
+ },
1708
+ multiple: false
1709
+ } );
1710
+
1711
+ var self = this;
1712
+ custom_uploader.on( 'select', function () {
1713
+ attachment = custom_uploader.state().get( 'selection' ).first().toJSON();
1714
+ jQuery( self ).siblings( 'input[type="hidden"]' ).val( attachment.url );
1715
+ jQuery( self ).siblings( 'img' ).attr( 'src', attachment.url ).removeClass('hidden');
1716
+ jQuery( self ).siblings( '.image-clear-button' ).removeClass('hidden');
1717
+ } );
1718
+
1719
+ custom_uploader.open();
1720
+ } );
1721
+
1722
+ jQuery( '.image-clear-button' ).click( function ( e ) {
1723
+ jQuery( this ).siblings( 'input[type="hidden"]' ).val( '' );
1724
+ jQuery( this ).siblings( 'img' ).attr( 'src', '' ).addClass( 'hidden' );
1725
+ jQuery( this ).addClass( 'hidden' );
1726
+ } );
1727
+
1728
+ return custom_uploader;
1729
+ }
classes/FPDF/class-woe-pdf-mc-table.php ADDED
@@ -0,0 +1,433 @@
1
+ <?php
2
+ if ( ! class_exists( 'FPDF' ) ) {
3
+ require( 'fpdf.php' );
4
+ }
5
+
6
+ class WOE_PDF_MC_Table extends FPDF {
7
+ protected $widths;
8
+ protected $aligns;
9
+
10
+ protected $table_header = array();
11
+
12
+ protected $header_props = array();
13
+ protected $footer_props = array();
14
+ protected $table_header_props = array();
15
+ protected $table_row_props = array();
16
+ protected $table_props = array();
17
+
18
+ protected $stretch_buffer = array();
19
+ protected $stretch_buffer_params = array();
20
+
21
+ protected $default_props = array(
22
+ 'header' => array(
23
+ 'title' => '',
24
+ 'style' => 'B',
25
+ 'size' => 5,
26
+ 'text_color' => array( 0, 0, 0 ),
27
+ 'logo' => array(
28
+ 'source' => '',
29
+ 'width' => 0,
30
+ 'height' => 0,
31
+ 'align' => 'R',
32
+ ),
33
+ ),
34
+ 'table' => array(
35
+ 'stretch' => false,
36
+ 'column_width' => array(),
37
+ ),
38
+ 'table_header' => array(
39
+ 'style' => '',
40
+ 'size' => 5,
41
+ 'text_color' => array( 0, 0, 0 ),
42
+ 'background_color' => array( 255, 255, 255 ),
43
+ 'repeat' => true,
44
+ ),
45
+ 'table_row' => array(
46
+ 'style' => '',
47
+ 'size' => 5,
48
+ 'text_color' => array( 0, 0, 0 ),
49
+ 'background_color' => array( 255, 255, 255 ),
50
+ ),
51
+ 'footer' => array(
52
+ 'title' => '',
53
+ 'style' => 'B',
54
+ 'size' => 5,
55
+ 'text_color' => array( 0, 0, 0 ),
56
+ 'pagination_type' => '',
57
+ ),
58
+ );
59
+
60
+ public function setProperties( $props ) {
61
+ foreach ( $this->default_props as $key => $default_props ) {
62
+ if ( ! empty( $props[ $key ] ) && is_array( $props[ $key ] ) ) {
63
+
64
+ $name = $key . '_props';
65
+ if ( ! isset( $this->$name ) ) {
66
+ continue;
67
+ }
68
+
69
+ $this->$name = array_merge( $default_props, $props[ $key ] );
70
+ }
71
+ }
72
+ }
73
+
74
+ public function setHeaderProperty( $props ) {
75
+ $this->header_props = array_merge( $this->default_props['header'], $props );
76
+ }
77
+
78
+ public function addTableHeader( $header ) {
79
+ $this->table_header = $header;
80
+ $this->changeBrushToDraw( 'table_header' );
81
+ $this->Row( $header );
82
+ }
83
+
84
+ public function setTableHeaderProperty( $props ) {
85
+ $this->table_header_props = array_merge( $this->default_props['table_header'], $props );
86
+ }
87
+
88
+ public function setTableRowProperty( $props ) {
89
+ $this->table_row_props = array_merge( $this->default_props['table_header'], $props );
90
+ }
91
+
92
+ public function setFooterProperty( $props ) {
93
+ $this->footer_props = array_merge( $this->default_props['footer'], $props );
94
+ }
95
+
96
+ public function Header() {
97
+ if ( ! empty( $this->header_props['title'] ) ) {
98
+ $this->changeBrushToDraw( 'header' );
99
+ $this->Cell( 0, 0, $this->header_props['title'], 0, 0, 'C' );
100
+ $this->Ln( 2 );
101
+ }
102
+
103
+ if ( $this->drawLogo() ) {
104
+ $this->Ln( 1 );
105
+ }
106
+ }
107
+
108
+ protected function drawLogo() {
109
+ $source = $this->header_props['logo']['source'];
110
+ $width = $this->header_props['logo']['width'];
111
+ $height = $this->header_props['logo']['height'];
112
+ $align = $this->header_props['logo']['align'];
113
+
114
+ if ( ! $source || ! $height ) {
115
+ return false;
116
+ }
117
+
118
+ $height = $this->validateHeight( $height );
119
+ if ( ! $width ) {
120
+ list( $img_width, $img_height, $type, $attr ) = getimagesize( $source );
121
+ $width = $height * $img_width / $img_height;
122
+ }
123
+ $width = $this->validateWidth( $width );
124
+
125
+ if ( $align == 'R' ) {
126
+ $x = $this->GetPageWidth() - $this->rMargin - $width;
127
+ } elseif ( $align == 'C' ) {
128
+ $x = ( $this->GetPageWidth() - $width ) / 2;
129
+ } else {
130
+ $x = $this->lMargin;
131
+ }
132
+
133
+ $type = strtoupper( pathinfo( $source, PATHINFO_EXTENSION ) );
134
+
135
+ $this->Image( $source, $x, $this->GetY(), $width, $height, $type );
136
+ $this->Ln( $height );
137
+
138
+ return true;
139
+ }
140
+
141
+ public function Footer() {
142
+ $this->SetY( - 15 );
143
+
144
+ $this->changeBrushToDraw( 'footer' );
145
+
146
+ if ( ! empty( $this->footer_props['title'] ) ) {
147
+ // Title
148
+ $this->Cell( 0, 0, $this->footer_props['title'], 0, 0, 'C' );
149
+ // Line break
150
+ $this->Ln( 10 );
151
+ }
152
+
153
+ // Position at 1.5 cm from bottom
154
+ $this->SetY( - 15 );
155
+
156
+ if ( ! empty( $this->footer_props['pagination'] ) ) {
157
+ // Page number
158
+ $align = in_array( $this->footer_props['pagination'], array( 'L', 'C', 'R', ) ) ? $this->footer_props['pagination'] : false;
159
+ if ( $align ) {
160
+ $this->Cell( 0, 10, 'Page ' . $this->PageNo() . '/{nb}', 0, 0, $align );
161
+ }
162
+ }
163
+ }
164
+
165
+ public function addRow( $data, $widths = null, $h = null ) {
166
+ $this->changeBrushToDraw( 'table_row' );
167
+ $this->Row( $data, $widths, $h );
168
+ }
169
+
170
+ protected function Row( $data, $widths = null, $h = null ) {
171
+ if ( ! $data ) {
172
+ return;
173
+ }
174
+
175
+ $widths = ! $widths ? $this->getRowWidths( $data ) : $widths;
176
+ $h = ! $h ? $this->getRowHeight( $widths, $data ) : $h;
177
+
178
+ //Issue a page break first if needed
179
+ $this->CheckPageBreak( $h );
180
+
181
+ $columns_count = $this->getColumnCountInPage( $widths );
182
+ if ( $extra_data = array_slice( $data, $columns_count ) ) {
183
+ $this->stretch_buffer[] = $extra_data;
184
+ $this->stretch_buffer_params[] = array(
185
+ 'widths' => array_slice( $widths, $columns_count ),
186
+ 'height' => $h,
187
+ );
188
+ }
189
+ $data = array_slice( $data, 0, $columns_count );
190
+
191
+
192
+ //Draw the cells of the row
193
+ for ( $i = 0; $i < count( $data ); $i ++ ) {
194
+ $w = $widths[ $i ];
195
+ $a = isset( $this->aligns[ $i ] ) ? $this->aligns[ $i ] : 'L';
196
+ //Save the current position
197
+ $x = $this->GetX();
198
+ $y = $this->GetY();
199
+ //Draw the border
200
+ $this->Rect( $x, $y, $w, $h, 'DF' );
201
+ //Print the text
202
+ $this->MultiCell( $w, 5, $data[ $i ], 0, $a );
203
+ //Put the position to the right of the cell
204
+ $this->SetXY( $x + $w, $y );
205
+ }
206
+ //Go to the next line
207
+ $this->Ln( $h );
208
+ }
209
+
210
+ protected function getColumnCountInPage( $widths ) {
211
+ $count = count( $widths );
212
+ if ( $this->table_props['stretch'] ) {
213
+ $sum_width = 0;
214
+ $page_width = $this->GetPageWidth() - $this->lMargin - $this->rMargin;
215
+ $count = 0;
216
+ foreach ( $widths as $width ) {
217
+ if ( $sum_width + $width > $page_width ) {
218
+ break;
219
+ }
220
+ $sum_width += $width;
221
+ $count ++;
222
+ }
223
+ }
224
+
225
+ return $count;
226
+ }
227
+
228
+ /**
229
+ * Calculate the width for every column of the row
230
+ *
231
+ * @param $row
232
+ *
233
+ * @return array
234
+ */
235
+ protected function getRowWidths( $row ) {
236
+ if ( $this->table_props['stretch'] ) {
237
+ $widths = array();
238
+ for ( $i = 0; $i < count( $row ); $i ++ ) {
239
+ $width = isset( $this->table_props['column_width'][ $i ] ) ? $this->table_props['column_width'][ $i ] :
240
+ $this->table_props['column_width'][ $i % count( $this->table_props['column_width'] ) ];
241
+
242
+ $widths[ $i ] = $this->validateWidth( $width );
243
+ }
244
+
245
+ return $widths;
246
+ } else {
247
+ return array_fill( 0, count( $row ), ( $this->GetPageWidth() - $this->lMargin - $this->rMargin ) / count( $row ) );
248
+ }
249
+ }
250
+
251
+ protected function validateWidth( $width, $min_width = 5 ) {
252
+ $max_width = $this->GetPageWidth() - $this->lMargin - $this->rMargin - 50;
253
+ if ( $width < $min_width ) {
254
+ $width = $min_width;
255
+ } elseif ( $width > $max_width ) {
256
+ $width = $max_width;
257
+ }
258
+
259
+ return $width;
260
+ }
261
+
262
+ protected function validateHeight( $height, $min_height = 5 ) {
263
+ $max_height = $this->GetPageHeight() - $this->tMargin - $this->bMargin - 50;
264
+ if ( $height < $min_height ) {
265
+ $height = $min_height;
266
+ } elseif ( $height > $max_height ) {
267
+ $height = $max_height;
268
+ }
269
+
270
+ return $height;
271
+ }
272
+
273
+ /**
274
+ * Calculate the height of the row
275
+ *
276
+ * @param $widths
277
+ * @param $row
278
+ *
279
+ * @return int|mixed
280
+ */
281
+ protected function getRowHeight( $widths, $row ) {
282
+ $nb = 0;
283
+ for ( $i = 0; $i < count( $row ); $i ++ ) {
284
+ $nb = max( $nb, $this->NbLines( $widths[ $i ], $row[ $i ] ) );
285
+ }
286
+
287
+ return 5 * $nb;
288
+ }
289
+
290
+ public function CheckPageBreak( $h ) {
291
+ //If the height h would cause an overflow, add a new page immediately
292
+ if ( $this->GetY() + $h > $this->PageBreakTrigger ) {
293
+ $this->flush_buffer();
294
+
295
+ $this->AddPage( $this->CurOrientation );
296
+ if ( $this->table_header_props['repeat'] && $this->table_header ) {
297
+ $this->changeBrushToDraw( 'table_header' );
298
+ $this->Row( $this->table_header );
299
+ $this->changeBrushToDraw( 'table_row' );
300
+ }
301
+ }
302
+ }
303
+
304
+ public function Output( $dest = '', $name = '', $isUTF8 = false ) {
305
+ $this->flush_buffer();
306
+ parent::Output( $dest, $name, $isUTF8 );
307
+ }
308
+
309
+ protected function flush_buffer() {
310
+ while ( $this->stretch_buffer ) {
311
+ $this->AddPage( $this->CurOrientation );
312
+
313
+ $buffer = $this->stretch_buffer;
314
+ $stretch_buffer_params = $this->stretch_buffer_params;
315
+ $this->stretch_buffer = array();
316
+ $this->stretch_buffer_params = array();
317
+
318
+ if ( $this->table_header ) {
319
+ $this->changeBrushToDraw( 'table_header' );
320
+ $params = array_shift( $stretch_buffer_params );
321
+ $this->Row( array_shift( $buffer ), $params['widths'], $params['height'] );
322
+ $this->changeBrushToDraw( 'table_row' );
323
+ }
324
+
325
+ foreach ( $buffer as $index => $row ) {
326
+ $params = $stretch_buffer_params[ $index ];
327
+ $this->addRow( $row, $params['widths'], $params['height'] );
328
+ }
329
+ }
330
+ }
331
+
332
+ public function NbLines( $w, $txt ) {
333
+ //Computes the number of lines a MultiCell of width w will take
334
+ $cw =& $this->CurrentFont['cw'];
335
+ if ( $w == 0 ) {
336
+ $w = $this->w - $this->rMargin - $this->x;
337
+ }
338
+ $wmax = ( $w - 2 * $this->cMargin ) * 1000 / $this->FontSize;
339
+ $s = str_replace( "\r", '', $txt );
340
+ $nb = strlen( $s );
341
+ if ( $nb > 0 and $s[ $nb - 1 ] == "\n" ) {
342
+ $nb --;
343
+ }
344
+ $sep = - 1;
345
+ $i = 0;
346
+ $j = 0;
347
+ $l = 0;
348
+ $nl = 1;
349
+ while ( $i < $nb ) {
350
+ $c = $s[ $i ];
351
+ if ( $c == "\n" ) {
352
+ $i ++;
353
+ $sep = - 1;
354
+ $j = $i;
355
+ $l = 0;
356
+ $nl ++;
357
+ continue;
358
+ }
359
+ if ( $c == ' ' ) {
360
+ $sep = $i;
361
+ }
362
+ $l += $cw[ $c ];
363
+ if ( $l > $wmax ) {
364
+ if ( $sep == - 1 ) {
365
+ if ( $i == $j ) {
366
+ $i ++;
367
+ }
368
+ } else {
369
+ $i = $sep + 1;
370
+ }
371
+ $sep = - 1;
372
+ $j = $i;
373
+ $l = 0;
374
+ $nl ++;
375
+ } else {
376
+ $i ++;
377
+ }
378
+ }
379
+
380
+ return $nl;
381
+ }
382
+
383
+ public function SetAligns( $a ) {
384
+ //Set the array of column alignments
385
+ $this->aligns = $a;
386
+ }
387
+
388
+ protected function changeBrushToDraw( $what ) {
389
+ if ( ! in_array( $what, array_keys( $this->default_props ) ) ) {
390
+ return false;
391
+ }
392
+
393
+ $name = $what . '_props';
394
+ if ( ! isset( $this->$name ) ) {
395
+ return false;
396
+ }
397
+ $props = $this->$name;
398
+
399
+ $this->SetFont( $this->FontFamily, $props['style'], $props['size'] );
400
+ $this->loadTextColor( $props );
401
+ $this->loadFillColor( $props );
402
+
403
+ return true;
404
+ }
405
+
406
+ private function loadTextColor( $props ) {
407
+ $color = ! empty( $props['text_color'] ) ? $props['text_color'] : array();
408
+
409
+ if ( $color ) {
410
+ $color = $this->convert_color( $color );
411
+ $this->SetTextColor( $color[0], $color[1], $color[2] );
412
+ }
413
+ }
414
+
415
+ private function loadFillColor( $props ) {
416
+ $color = ! empty( $props['background_color'] ) ? $props['background_color'] : array();
417
+
418
+ if ( $color ) {
419
+ $color = $this->convert_color( $color );
420
+ $this->SetFillColor( $color[0], $color[1], $color[2] );
421
+ }
422
+ }
423
+
424
+ private function convert_color( $array ) {
425
+ for ( $i = 0; $i < 2; $i ++ ) {
426
+ $array[ $i ] = ( isset( $array[ $i ] ) && is_numeric( $array[ $i ] ) && $array[ $i ] >= 0 && $array[ $i ] <= 255 ) ? $array[ $i ] : null;
427
+ }
428
+
429
+ return array_slice( $array, 0, 3 );
430
+ }
431
+
432
+ }
433
+
classes/FPDF/font/courier.php ADDED
@@ -0,0 +1,10 @@
1
+ <?php
2
+ $type = 'Core';
3
+ $name = 'Courier';
4
+ $up = -100;
5
+ $ut = 50;
6
+ for($i=0;$i<=255;$i++)
7
+ $cw[chr($i)] = 600;
8
+ $enc = 'cp1252';
9
+ $uv = array(0=>array(0,128),128=>8364,130=>8218,131=>402,132=>8222,133=>8230,134=>array(8224,2),136=>710,137=>8240,138=>352,139=>8249,140=>338,142=>381,145=>array(8216,2),147=>array(8220,2),149=>8226,150=>array(8211,2),152=>732,153=>8482,154=>353,155=>8250,156=>339,158=>382,159=>376,160=>array(160,96));
10
+ ?>
classes/FPDF/font/courierb.php ADDED
@@ -0,0 +1,10 @@
1
+ <?php
2
+ $type = 'Core';
3
+ $name = 'Courier-Bold';
4
+ $up = -100;
5
+ $ut = 50;
6
+ for($i=0;$i<=255;$i++)
7
+ $cw[chr($i)] = 600;
8
+ $enc = 'cp1252';
9
+ $uv = array(0=>array(0,128),128=>8364,130=>8218,131=>402,132=>8222,133=>8230,134=>array(8224,2),136=>710,137=>8240,138=>352,139=>8249,140=>338,142=>381,145=>array(8216,2),147=>array(8220,2),149=>8226,150=>array(8211,2),152=>732,153=>8482,154=>353,155=>8250,156=>339,158=>382,159=>376,160=>array(160,96));
10
+ ?>
classes/FPDF/font/courierbi.php ADDED
@@ -0,0 +1,10 @@
1
+ <?php
2
+ $type = 'Core';
3
+ $name = 'Courier-BoldOblique';
4
+ $up = -100;
5
+ $ut = 50;
6
+ for($i=0;$i<=255;$i++)
7
+ $cw[chr($i)] = 600;
8
+ $enc = 'cp1252';
9
+ $uv = array(0=>array(0,128),128=>8364,130=>8218,131=>402,132=>8222,133=>8230,134=>array(8224,2),136=>710,137=>8240,138=>352,139=>8249,140=>338,142=>381,145=>array(8216,2),147=>array(8220,2),149=>8226,150=>array(8211,2),152=>732,153=>8482,154=>353,155=>8250,156=>339,158=>382,159=>376,160=>array(160,96));
10
+ ?>
classes/FPDF/font/courieri.php ADDED
@@ -0,0 +1,10 @@
1
+ <?php
2
+ $type = 'Core';
3
+ $name = 'Courier-Oblique';
4
+ $up = -100;
5
+ $ut = 50;
6
+ for($i=0;$i<=255;$i++)
7
+ $cw[chr($i)] = 600;
8
+ $enc = 'cp1252';
9
+ $uv = array(0=>array(0,128),128=>8364,130=>8218,131=>402,132=>8222,133=>8230,134=>array(8224,2),136=>710,137=>8240,138=>352,139=>8249,140=>338,142=>381,145=>array(8216,2),147=>array(8220,2),149=>8226,150=>array(8211,2),152=>732,153=>8482,154=>353,155=>8250,156=>339,158=>382,159=>376,160=>array(160,96));
10
+ ?>
classes/FPDF/font/helvetica.php ADDED
@@ -0,0 +1,21 @@
1
+ <?php
2
+ $type = 'Core';
3
+ $name = 'Helvetica';
4
+ $up = -100;
5
+ $ut = 50;
6
+ $cw = array(
7
+ chr(0)=>278,chr(1)=>278,chr(2)=>278,chr(3)=>278,chr(4)=>278,chr(5)=>278,chr(6)=>278,chr(7)=>278,chr(8)=>278,chr(9)=>278,chr(10)=>278,chr(11)=>278,chr(12)=>278,chr(13)=>278,chr(14)=>278,chr(15)=>278,chr(16)=>278,chr(17)=>278,chr(18)=>278,chr(19)=>278,chr(20)=>278,chr(21)=>278,
8
+ chr(22)=>278,chr(23)=>278,chr(24)=>278,chr(25)=>278,chr(26)=>278,chr(27)=>278,chr(28)=>278,chr(29)=>278,chr(30)=>278,chr(31)=>278,' '=>278,'!'=>278,'"'=>355,'#'=>556,'#x27;=>556,'%'=>889,'&'=>667,'\''=>191,'('=>333,')'=>333,'*'=>389,'+'=>584,
9
+ ','=>278,'-'=>333,'.'=>278,'/'=>278,'0'=>556,'1'=>556,'2'=>556,'3'=>556,'4'=>556,'5'=>556,'6'=>556,'7'=>556,'8'=>556,'9'=>556,':'=>278,';'=>278,'<'=>584,'='=>584,'>'=>584,'?'=>556,'@'=>1015,'A'=>667,
10
+ 'B'=>667,'C'=>722,'D'=>722,'E'=>667,'F'=>611,'G'=>778,'H'=>722,'I'=>278,'J'=>500,'K'=>667,'L'=>556,'M'=>833,'N'=>722,'O'=>778,'P'=>667,'Q'=>778,'R'=>722,'S'=>667,'T'=>611,'U'=>722,'V'=>667,'W'=>944,
11
+ 'X'=>667,'Y'=>667,'Z'=>611,'['=>278,'\\'=>278,']'=>278,'^'=>469,'_'=>556,'`'=>333,'a'=>556,'b'=>556,'c'=>500,'d'=>556,'e'=>556,'f'=>278,'g'=>556,'h'=>556,'i'=>222,'j'=>222,'k'=>500,'l'=>222,'m'=>833,
12
+ 'n'=>556,'o'=>556,'p'=>556,'q'=>556,'r'=>333,'s'=>500,'t'=>278,'u'=>556,'v'=>500,'w'=>722,'x'=>500,'y'=>500,'z'=>500,'{'=>334,'|'=>260,'}'=>334,'~'=>584,chr(127)=>350,chr(128)=>556,chr(129)=>350,chr(130)=>222,chr(131)=>556,
13
+ chr(132)=>333,chr(133)=>1000,chr(134)=>556,chr(135)=>556,chr(136)=>333,chr(137)=>1000,chr(138)=>667,chr(139)=>333,chr(140)=>1000,chr(141)=>350,chr(142)=>611,chr(143)=>350,chr(144)=>350,chr(145)=>222,chr(146)=>222,chr(147)=>333,chr(148)=>333,chr(149)=>350,chr(150)=>556,chr(151)=>1000,chr(152)=>333,chr(153)=>1000,
14
+ chr(154)=>500,chr(155)=>333,chr(156)=>944,chr(157)=>350,chr(158)=>500,chr(159)=>667,chr(160)=>278,chr(161)=>333,chr(162)=>556,chr(163)=>556,chr(164)=>556,chr(165)=>556,chr(166)=>260,chr(167)=>556,chr(168)=>333,chr(169)=>737,chr(170)=>370,chr(171)=>556,chr(172)=>584,chr(173)=>333,chr(174)=>737,chr(175)=>333,
15
+ chr(176)=>400,chr(177)=>584,chr(178)=>333,chr(179)=>333,chr(180)=>333,chr(181)=>556,chr(182)=>537,chr(183)=>278,chr(184)=>333,chr(185)=>333,chr(186)=>365,chr(187)=>556,chr(188)=>834,chr(189)=>834,chr(190)=>834,chr(191)=>611,chr(192)=>667,chr(193)=>667,chr(194)=>667,chr(195)=>667,chr(196)=>667,chr(197)=>667,
16
+ chr(198)=>1000,chr(199)=>722,chr(200)=>667,chr(201)=>667,chr(202)=>667,chr(203)=>667,chr(204)=>278,chr(205)=>278,chr(206)=>278,chr(207)=>278,chr(208)=>722,chr(209)=>722,chr(210)=>778,chr(211)=>778,chr(212)=>778,chr(213)=>778,chr(214)=>778,chr(215)=>584,chr(216)=>778,chr(217)=>722,chr(218)=>722,chr(219)=>722,
17
+ chr(220)=>722,chr(221)=>667,chr(222)=>667,chr(223)=>611,chr(224)=>556,chr(225)=>556,chr(226)=>556,chr(227)=>556,chr(228)=>556,chr(229)=>556,chr(230)=>889,chr(231)=>500,chr(232)=>556,chr(233)=>556,chr(234)=>556,chr(235)=>556,chr(236)=>278,chr(237)=>278,chr(238)=>278,chr(239)=>278,chr(240)=>556,chr(241)=>556,
18
+ chr(242)=>556,chr(243)=>556,chr(244)=>556,chr(245)=>556,chr(246)=>556,chr(247)=>584,chr(248)=>611,chr(249)=>556,chr(250)=>556,chr(251)=>556,chr(252)=>556,chr(253)=>500,chr(254)=>556,chr(255)=>500);
19
+ $enc = 'cp1252';
20
+ $uv = array(0=>array(0,128),128=>8364,130=>8218,131=>402,132=>8222,133=>8230,134=>array(8224,2),136=>710,137=>8240,138=>352,139=>8249,140=>338,142=>381,145=>array(8216,2),147=>array(8220,2),149=>8226,150=>array(8211,2),152=>732,153=>8482,154=>353,155=>8250,156=>339,158=>382,159=>376,160=>array(160,96));
21
+ ?>
classes/FPDF/font/helveticab.php ADDED
@@ -0,0 +1,21 @@
1
+ <?php
2
+ $type = 'Core';
3
+ $name = 'Helvetica-Bold';
4
+ $up = -100;
5
+ $ut = 50;
6
+ $cw = array(
7
+ chr(0)=>278,chr(1)=>278,chr(2)=>278,chr(3)=>278,chr(4)=>278,chr(5)=>278,chr(6)=>278,chr(7)=>278,chr(8)=>278,chr(9)=>278,chr(10)=>278,chr(11)=>278,chr(12)=>278,chr(13)=>278,chr(14)=>278,chr(15)=>278,chr(16)=>278,chr(17)=>278,chr(18)=>278,chr(19)=>278,chr(20)=>278,chr(21)=>278,
8
+ chr(22)=>278,chr(23)=>278,chr(24)=>278,chr(25)=>278,chr(26)=>278,chr(27)=>278,chr(28)=>278,chr(29)=>278,chr(30)=>278,chr(31)=>278,' '=>278,'!'=>333,'"'=>474,'#'=>556,'#x27;=>556,'%'=>889,'&'=>722,'\''=>238,'('=>333,')'=>333,'*'=>389,'+'=>584,
9
+ ','=>278,'-'=>333,'.'=>278,'/'=>278,'0'=>556,'1'=>556,'2'=>556,'3'=>556,'4'=>556,'5'=>556,'6'=>556,'7'=>556,'8'=>556,'9'=>556,':'=>333,';'=>333,'<'=>584,'='=>584,'>'=>584,'?'=>611,'@'=>975,'A'=>722,
10
+ 'B'=>722,'C'=>722,'D'=>722,'E'=>667,'F'=>611,'G'=>778,'H'=>722,'I'=>278,'J'=>556,'K'=>722,'L'=>611,'M'=>833,'N'=>722,'O'=>778,'P'=>667,'Q'=>778,'R'=>722,'S'=>667,'T'=>611,'U'=>722,'V'=>667,'W'=>944,
11
+ 'X'=>667,'Y'=>667,'Z'=>611,'['=>333,'\\'=>278,']'=>333,'^'=>584,'_'=>556,'`'=>333,'a'=>556,'b'=>611,'c'=>556,'d'=>611,'e'=>556,'f'=>333,'g'=>611,'h'=>611,'i'=>278,'j'=>278,'k'=>556,'l'=>278,'m'=>889,
12
+ 'n'=>611,'o'=>611,'p'=>611,'q'=>611,'r'=>389,'s'=>556,'t'=>333,'u'=>611,'v'=>556,'w'=>778,'x'=>556,'y'=>556,'z'=>500,'{'=>389,'|'=>280,'}'=>389,'~'=>584,chr(127)=>350,chr(128)=>556,chr(129)=>350,chr(130)=>278,chr(131)=>556,
13
+ chr(132)=>500,chr(133)=>1000,chr(134)=>556,chr(135)=>556,chr(136)=>333,chr(137)=>1000,chr(138)=>667,chr(139)=>333,chr(140)=>1000,chr(141)=>350,chr(142)=>611,chr(143)=>350,chr(144)=>350,chr(145)=>278,chr(146)=>278,chr(147)=>500,chr(148)=>500,chr(149)=>350,chr(150)=>556,chr(151)=>1000,chr(152)=>333,chr(153)=>1000,
14
+ chr(154)=>556,chr(155)=>333,chr(156)=>944,chr(157)=>350,chr(158)=>500,chr(159)=>667,chr(160)=>278,chr(161)=>333,chr(162)=>556,chr(163)=>556,chr(164)=>556,chr(165)=>556,chr(166)=>280,chr(167)=>556,chr(168)=>333,chr(169)=>737,chr(170)=>370,chr(171)=>556,chr(172)=>584,chr(173)=>333,chr(174)=>737,chr(175)=>333,
15
+ chr(176)=>400,chr(177)=>584,chr(178)=>333,chr(179)=>333,chr(180)=>333,chr(181)=>611,chr(182)=>556,chr(183)=>278,chr(184)=>333,chr(185)=>333,chr(186)=>365,chr(187)=>556,chr(188)=>834,chr(189)=>834,chr(190)=>834,chr(191)=>611,chr(192)=>722,chr(193)=>722,chr(194)=>722,chr(195)=>722,chr(196)=>722,chr(197)=>722,
16
+ chr(198)=>1000,chr(199)=>722,chr(200)=>667,chr(201)=>667,chr(202)=>667,chr(203)=>667,chr(204)=>278,chr(205)=>278,chr(206)=>278,chr(207)=>278,chr(208)=>722,chr(209)=>722,chr(210)=>778,chr(211)=>778,chr(212)=>778,chr(213)=>778,chr(214)=>778,chr(215)=>584,chr(216)=>778,chr(217)=>722,chr(218)=>722,chr(219)=>722,
17
+ chr(220)=>722,chr(221)=>667,chr(222)=>667,chr(223)=>611,chr(224)=>556,chr(225)=>556,chr(226)=>556,chr(227)=>556,chr(228)=>556,chr(229)=>556,chr(230)=>889,chr(231)=>556,chr(232)=>556,chr(233)=>556,chr(234)=>556,chr(235)=>556,chr(236)=>278,chr(237)=>278,chr(238)=>278,chr(239)=>278,chr(240)=>611,chr(241)=>611,
18
+ chr(242)=>611,chr(243)=>611,chr(244)=>611,chr(245)=>611,chr(246)=>611,chr(247)=>584,chr(248)=>611,chr(249)=>611,chr(250)=>611,chr(251)=>611,chr(252)=>611,chr(253)=>556,chr(254)=>611,chr(255)=>556);
19
+ $enc = 'cp1252';
20
+ $uv = array(0=>array(0,128),128=>8364,130=>8218,131=>402,132=>8222,133=>8230,134=>array(8224,2),136=>710,137=>8240,138=>352,139=>8249,140=>338,142=>381,145=>array(8216,2),147=>array(8220,2),149=>8226,150=>array(8211,2),152=>732,153=>8482,154=>353,155=>8250,156=>339,158=>382,159=>376,160=>array(160,96));
21
+ ?>
classes/FPDF/font/helveticabi.php ADDED
@@ -0,0 +1,21 @@
1
+ <?php
2
+ $type = 'Core';
3
+ $name = 'Helvetica-BoldOblique';
4
+ $up = -100;
5
+ $ut = 50;
6
+ $cw = array(
7
+ chr(0)=>278,chr(1)=>278,chr(2)=>278,chr(3)=>278,chr(4)=>278,chr(5)=>278,chr(6)=>278,chr(7)=>278,chr(8)=>278,chr(9)=>278,chr(10)=>278,chr(11)=>278,chr(12)=>278,chr(13)=>278,chr(14)=>278,chr(15)=>278,chr(16)=>278,chr(17)=>278,chr(18)=>278,chr(19)=>278,chr(20)=>278,chr(21)=>278,
8
+ chr(22)=>278,chr(23)=>278,chr(24)=>278,chr(25)=>278,chr(26)=>278,chr(27)=>278,chr(28)=>278,chr(29)=>278,chr(30)=>278,chr(31)=>278,' '=>278,'!'=>333,'"'=>474,'#'=>556,'#x27;=>556,'%'=>889,'&'=>722,'\''=>238,'('=>333,')'=>333,'*'=>389,'+'=>584,
9
+ ','=>278,'-'=>333,'.'=>278,'/'=>278,'0'=>556,'1'=>556,'2'=>556,'3'=>556,'4'=>556,'5'=>556,'6'=>556,'7'=>556,'8'=>556,'9'=>556,':'=>333,';'=>333,'<'=>584,'='=>584,'>'=>584,'?'=>611,'@'=>975,'A'=>722,
10
+ 'B'=>722,'C'=>722,'D'=>722,'E'=>667,'F'=>611,'G'=>778,'H'=>722,'I'=>278,'J'=>556,'K'=>722,'L'=>611,'M'=>833,'N'=>722,'O'=>778,'P'=>667,'Q'=>778,'R'=>722,'S'=>667,'T'=>611,'U'=>722,'V'=>667,'W'=>944,
11
+ 'X'=>667,'Y'=>667,'Z'=>611,'['=>333,'\\'=>278,']'=>333,'^'=>584,'_'=>556,'`'=>333,'a'=>556,'b'=>611,'c'=>556,'d'=>611,'e'=>556,'f'=>333,'g'=>611,'h'=>611,'i'=>278,'j'=>278,'k'=>556,'l'=>278,'m'=>889,
12
+ 'n'=>611,'o'=>611,'p'=>611,'q'=>611,'r'=>389,'s'=>556,'t'=>333,'u'=>611,'v'=>556,'w'=>778,'x'=>556,'y'=>556,'z'=>500,'{'=>389,'|'=>280,'}'=>389,'~'=>584,chr(127)=>350,chr(128)=>556,chr(129)=>350,chr(130)=>278,chr(131)=>556,
13
+ chr(132)=>500,chr(133)=>1000,chr(134)=>556,chr(135)=>556,chr(136)=>333,chr(137)=>1000,chr(138)=>667,chr(139)=>333,chr(140)=>1000,chr(141)=>350,chr(142)=>611,chr(143)=>350,chr(144)=>350,chr(145)=>278,chr(146)=>278,chr(147)=>500,chr(148)=>500,chr(149)=>350,chr(150)=>556,chr(151)=>1000,chr(152)=>333,chr(153)=>1000,
14
+ chr(154)=>556,chr(155)=>333,chr(156)=>944,chr(157)=>350,chr(158)=>500,chr(159)=>667,chr(160)=>278,chr(161)=>333,chr(162)=>556,chr(163)=>556,chr(164)=>556,chr(165)=>556,chr(166)=>280,chr(167)=>556,chr(168)=>333,chr(169)=>737,chr(170)=>370,chr(171)=>556,chr(172)=>584,chr(173)=>333,chr(174)=>737,chr(175)=>333,
15
+ chr(176)=>400,chr(177)=>584,chr(178)=>333,chr(179)=>333,chr(180)=>333,chr(181)=>611,chr(182)=>556,chr(183)=>278,chr(184)=>333,chr(185)=>333,chr(186)=>365,chr(187)=>556,chr(188)=>834,chr(189)=>834,chr(190)=>834,chr(191)=>611,chr(192)=>722,chr(193)=>722,chr(194)=>722,chr(195)=>722,chr(196)=>722,chr(197)=>722,
16
+ chr(198)=>1000,chr(199)=>722,chr(200)=>667,chr(201)=>667,chr(202)=>667,chr(203)=>667,chr(204)=>278,chr(205)=>278,chr(206)=>278,chr(207)=>278,chr(208)=>722,chr(209)=>722,chr(210)=>778,chr(211)=>778,chr(212)=>778,chr(213)=>778,chr(214)=>778,chr(215)=>584,chr(216)=>778,chr(217)=>722,chr(218)=>722,chr(219)=>722,
17
+ chr(220)=>722,chr(221)=>667,chr(222)=>667,chr(223)=>611,chr(224)=>556,chr(225)=>556,chr(226)=>556,chr(227)=>556,chr(228)=>556,chr(229)=>556,chr(230)=>889,chr(231)=>556,chr(232)=>556,chr(233)=>556,chr(234)=>556,chr(235)=>556,chr(236)=>278,chr(237)=>278,chr(238)=>278,chr(239)=>278,chr(240)=>611,chr(241)=>611,
18
+ chr(242)=>611,chr(243)=>611,chr(244)=>611,chr(245)=>611,chr(246)=>611,chr(247)=>584,chr(248)=>611,chr(249)=>611,chr(250)=>611,chr(251)=>611,chr(252)=>611,chr(253)=>556,chr(254)=>611,chr(255)=>556);
19
+ $enc = 'cp1252';
20
+ $uv = array(0=>array(0,128),128=>8364,130=>8218,131=>402,132=>8222,133=>8230,134=>array(8224,2),136=>710,137=>8240,138=>352,139=>8249,140=>338,142=>381,145=>array(8216,2),147=>array(8220,2),149=>8226,150=>array(8211,2),152=>732,153=>8482,154=>353,155=>8250,156=>339,158=>382,159=>376,160=>array(160,96));
21
+ ?>
classes/FPDF/font/helveticai.php ADDED
@@ -0,0 +1,21 @@
1
+ <?php
2
+ $type = 'Core';
3
+ $name = 'Helvetica-Oblique';
4
+ $up = -100;
5
+ $ut = 50;
6
+ $cw = array(
7
+ chr(0)=>278,chr(1)=>278,chr(2)=>278,chr(3)=>278,chr(4)=>278,chr(5)=>278,chr(6)=>278,chr(7)=>278,chr(8)=>278,chr(9)=>278,chr(10)=>278,chr(11)=>278,chr(12)=>278,chr(13)=>278,chr(14)=>278,chr(15)=>278,chr(16)=>278,chr(17)=>278,chr(18)=>278,chr(19)=>278,chr(20)=>278,chr(21)=>278,
8
+ chr(22)=>278,chr(23)=>278,chr(24)=>278,chr(25)=>278,chr(26)=>278,chr(27)=>278,chr(28)=>278,chr(29)=>278,chr(30)=>278,chr(31)=>278,' '=>278,'!'=>278,'"'=>355,'#'=>556,'#x27;=>556,'%'=>889,'&'=>667,'\''=>191,'('=>333,')'=>333,'*'=>389,'+'=>584,
9
+ ','=>278,'-'=>333,'.'=>278,'/'=>278,'0'=>556,'1'=>556,'2'=>556,'3'=>556,'4'=>556,'5'=>556,'6'=>556,'7'=>556,'8'=>556,'9'=>556,':'=>278,';'=>278,'<'=>584,'='=>584,'>'=>584,'?'=>556,'@'=>1015,'A'=>667,
10
+ 'B'=>667,'C'=>722,'D'=>722,'E'=>667,'F'=>611,'G'=>778,'H'=>722,'I'=>278,'J'=>500,'K'=>667,'L'=>556,'M'=>833,'N'=>722,'O'=>778,'P'=>667,'Q'=>778,'R'=>722,'S'=>667,'T'=>611,'U'=>722,'V'=>667,'W'=>944,
11
+ 'X'=>667,'Y'=>667,'Z'=>611,'['=>278,'\\'=>278,']'=>278,'^'=>469,'_'=>556,'`'=>333,'a'=>556,'b'=>556,'c'=>500,'d'=>556,'e'=>556,'f'=>278,'g'=>556,'h'=>556,'i'=>222,'j'=>222,'k'=>500,'l'=>222,'m'=>833,
12
+ 'n'=>556,'o'=>556,'p'=>556,'q'=>556,'r'=>333,'s'=>500,'t'=>278,'u'=>556,'v'=>500,'w'=>722,'x'=>500,'y'=>500,'z'=>500,'{'=>334,'|'=>260,'}'=>334,'~'=>584,chr(127)=>350,chr(128)=>556,chr(129)=>350,chr(130)=>222,chr(131)=>556,
13
+ chr(132)=>333,chr(133)=>1000,chr(134)=>556,chr(135)=>556,chr(136)=>333,chr(137)=>1000,chr(138)=>667,chr(139)=>333,chr(140)=>1000,chr(141)=>350,chr(142)=>611,chr(143)=>350,chr(144)=>350,chr(145)=>222,chr(146)=>222,chr(147)=>333,chr(148)=>333,chr(149)=>350,chr(150)=>556,chr(151)=>1000,chr(152)=>333,chr(153)=>1000,
14
+ chr(154)=>500,chr(155)=>333,chr(156)=>944,chr(157)=>350,chr(158)=>500,chr(159)=>667,chr(160)=>278,chr(161)=>333,chr(162)=>556,chr(163)=>556,chr(164)=>556,chr(165)=>556,chr(166)=>260,chr(167)=>556,chr(168)=>333,chr(169)=>737,chr(170)=>370,chr(171)=>556,chr(172)=>584,chr(173)=>333,chr(174)=>737,chr(175)=>333,
15
+ chr(176)=>400,chr(177)=>584,chr(178)=>333,chr(179)=>333,chr(180)=>333,chr(181)=>556,chr(182)=>537,chr(183)=>278,chr(184)=>333,chr(185)=>333,chr(186)=>365,chr(187)=>556,chr(188)=>834,chr(189)=>834,chr(190)=>834,chr(191)=>611,chr(192)=>667,chr(193)=>667,chr(194)=>667,chr(195)=>667,chr(196)=>667,chr(197)=>667,
16
+ chr(198)=>1000,chr(199)=>722,chr(200)=>667,chr(201)=>667,chr(202)=>667,chr(203)=>667,chr(204)=>278,chr(205)=>278,chr(206)=>278,chr(207)=>278,chr(208)=>722,chr(209)=>722,chr(210)=>778,chr(211)=>778,chr(212)=>778,chr(213)=>778,chr(214)=>778,chr(215)=>584,chr(216)=>778,chr(217)=>722,chr(218)=>722,chr(219)=>722,
17
+ chr(220)=>722,chr(221)=>667,chr(222)=>667,chr(223)=>611,chr(224)=>556,chr(225)=>556,chr(226)=>556,chr(227)=>556,chr(228)=>556,chr(229)=>556,chr(230)=>889,chr(231)=>500,chr(232)=>556,chr(233)=>556,chr(234)=>556,chr(235)=>556,chr(236)=>278,chr(237)=>278,chr(238)=>278,chr(239)=>278,chr(240)=>556,chr(241)=>556,
18
+ chr(242)=>556,chr(243)=>556,chr(244)=>556,chr(245)=>556,chr(246)=>556,chr(247)=>584,chr(248)=>611,chr(249)=>556,chr(250)=>556,chr(251)=>556,chr(252)=>556,chr(253)=>500,chr(254)=>556,chr(255)=>500);
19
+ $enc = 'cp1252';
20
+ $uv = array(0=>array(0,128),128=>8364,130=>8218,131=>402,132=>8222,133=>8230,134=>array(8224,2),136=>710,137=>8240,138=>352,139=>8249,140=>338,142=>381,145=>array(8216,2),147=>array(8220,2),149=>8226,150=>array(8211,2),152=>732,153=>8482,154=>353,155=>8250,156=>339,158=>382,159=>376,160=>array(160,96));
21
+ ?>
classes/FPDF/font/symbol.php ADDED
@@ -0,0 +1,20 @@
1
+ <?php
2
+ $type = 'Core';
3
+ $name = 'Symbol';
4
+ $up = -100;
5
+ $ut = 50;
6
+ $cw = array(
7
+ chr(0)=>250,chr(1)=>250,chr(2)=>250,chr(3)=>250,chr(4)=>250,chr(5)=>250,chr(6)=>250,chr(7)=>250,chr(8)=>250,chr(9)=>250,chr(10)=>250,chr(11)=>250,chr(12)=>250,chr(13)=>250,chr(14)=>250,chr(15)=>250,chr(16)=>250,chr(17)=>250,chr(18)=>250,chr(19)=>250,chr(20)=>250,chr(21)=>250,
8
+ chr(22)=>250,chr(23)=>250,chr(24)=>250,chr(25)=>250,chr(26)=>250,chr(27)=>250,chr(28)=>250,chr(29)=>250,chr(30)=>250,chr(31)=>250,' '=>250,'!'=>333,'"'=>713,'#'=>500,'#x27;=>549,'%'=>833,'&'=>778,'\''=>439,'('=>333,')'=>333,'*'=>500,'+'=>549,
9
+ ','=>250,'-'=>549,'.'=>250,'/'=>278,'0'=>500,'1'=>500,'2'=>500,'3'=>500,'4'=>500,'5'=>500,'6'=>500,'7'=>500,'8'=>500,'9'=>500,':'=>278,';'=>278,'<'=>549,'='=>549,'>'=>549,'?'=>444,'@'=>549,'A'=>722,
10
+ 'B'=>667,'C'=>722,'D'=>612,'E'=>611,'F'=>763,'G'=>603,'H'=>722,'I'=>333,'J'=>631,'K'=>722,'L'=>686,'M'=>889,'N'=>722,'O'=>722,'P'=>768,'Q'=>741,'R'=>556,'S'=>592,'T'=>611,'U'=>690,'V'=>439,'W'=>768,
11
+ 'X'=>645,'Y'=>795,'Z'=>611,'['=>333,'\\'=>863,']'=>333,'^'=>658,'_'=>500,'`'=>500,'a'=>631,'b'=>549,'c'=>549,'d'=>494,'e'=>439,'f'=>521,'g'=>411,'h'=>603,'i'=>329,'j'=>603,'k'=>549,'l'=>549,'m'=>576,
12
+ 'n'=>521,'o'=>549,'p'=>549,'q'=>521,'r'=>549,'s'=>603,'t'=>439,'u'=>576,'v'=>713,'w'=>686,'x'=>493,'y'=>686,'z'=>494,'{'=>480,'|'=>200,'}'=>480,'~'=>549,chr(127)=>0,chr(128)=>0,chr(129)=>0,chr(130)=>0,chr(131)=>0,
13
+ chr(132)=>0,chr(133)=>0,chr(134)=>0,chr(135)=>0,chr(136)=>0,chr(137)=>0,chr(138)=>0,chr(139)=>0,chr(140)=>0,chr(141)=>0,chr(142)=>0,chr(143)=>0,chr(144)=>0,chr(145)=>0,chr(146)=>0,chr(147)=>0,chr(148)=>0,chr(149)=>0,chr(150)=>0,chr(151)=>0,chr(152)=>0,chr(153)=>0,
14
+ chr(154)=>0,chr(155)=>0,chr(156)=>0,chr(157)=>0,chr(158)=>0,chr(159)=>0,chr(160)=>750,chr(161)=>620,chr(162)=>247,chr(163)=>549,chr(164)=>167,chr(165)=>713,chr(166)=>500,chr(167)=>753,chr(168)=>753,chr(169)=>753,chr(170)=>753,chr(171)=>1042,chr(172)=>987,chr(173)=>603,chr(174)=>987,chr(175)=>603,
15
+ chr(176)=>400,chr(177)=>549,chr(178)=>411,chr(179)=>549,chr(180)=>549,chr(181)=>713,chr(182)=>494,chr(183)=>460,chr(184)=>549,chr(185)=>549,chr(186)=>549,chr(187)=>549,chr(188)=>1000,chr(189)=>603,chr(190)=>1000,chr(191)=>658,chr(192)=>823,chr(193)=>686,chr(194)=>795,chr(195)=>987,chr(196)=>768,chr(197)=>768,
16
+ chr(198)=>823,chr(199)=>768,chr(200)=>768,chr(201)=>713,chr(202)=>713,chr(203)=>713,chr(204)=>713,chr(205)=>713,chr(206)=>713,chr(207)=>713,chr(208)=>768,chr(209)=>713,chr(210)=>790,chr(211)=>790,chr(212)=>890,chr(213)=>823,chr(214)=>549,chr(215)=>250,chr(216)=>713,chr(217)=>603,chr(218)=>603,chr(219)=>1042,
17
+ chr(220)=>987,chr(221)=>603,chr(222)=>987,chr(223)=>603,chr(224)=>494,chr(225)=>329,chr(226)=>790,chr(227)=>790,chr(228)=>786,chr(229)=>713,chr(230)=>384,chr(231)=>384,chr(232)=>384,chr(233)=>384,chr(234)=>384,chr(235)=>384,chr(236)=>494,chr(237)=>494,chr(238)=>494,chr(239)=>494,chr(240)=>0,chr(241)=>329,
18
+ chr(242)=>274,chr(243)=>686,chr(244)=>686,chr(245)=>686,chr(246)=>384,chr(247)=>384,chr(248)=>384,chr(249)=>384,chr(250)=>384,chr(251)=>384,chr(252)=>494,chr(253)=>494,chr(254)=>494,chr(255)=>0);
19
+ $uv = array(32=>160,33=>33,34=>8704,35=>35,36=>8707,37=>array(37,2),39=>8715,40=>array(40,2),42=>8727,43=>array(43,2),45=>8722,46=>array(46,18),64=>8773,65=>array(913,2),67=>935,68=>array(916,2),70=>934,71=>915,72=>919,73=>921,74=>977,75=>array(922,4),79=>array(927,2),81=>920,82=>929,83=>array(931,3),86=>962,87=>937,88=>926,89=>936,90=>918,91=>91,92=>8756,93=>93,94=>8869,95=>95,96=>63717,97=>array(945,2),99=>967,100=>array(948,2),102=>966,103=>947,104=>951,105=>953,106=>981,107=>array(954,4),111=>array(959,2),113=>952,114=>961,115=>array(963,3),118=>982,119=>969,120=>958,121=>968,122=>950,123=>array(123,3),126=>8764,160=>8364,161=>978,162=>8242,163=>8804,164=>8725,165=>8734,166=>402,167=>9827,168=>9830,169=>9829,170=>9824,171=>8596,172=>array(8592,4),176=>array(176,2),178=>8243,179=>8805,180=>215,181=>8733,182=>8706,183=>8226,184=>247,185=>array(8800,2),187=>8776,188=>8230,189=>array(63718,2),191=>8629,192=>8501,193=>8465,194=>8476,195=>8472,196=>8855,197=>8853,198=>8709,199=>array(8745,2),201=>8835,202=>8839,203=>8836,204=>8834,205=>8838,206=>array(8712,2),208=>8736,209=>8711,210=>63194,211=>63193,212=>63195,213=>8719,214=>8730,215=>8901,216=>172,217=>array(8743,2),219=>8660,220=>array(8656,4),224=>9674,225=>9001,226=>array(63720,3),229=>8721,230=>array(63723,10),241=>9002,242=>8747,243=>8992,244=>63733,245=>8993,246=>array(63734,9));
20
+ ?>
classes/FPDF/font/times.php ADDED
@@ -0,0 +1,21 @@
1
+ <?php
2
+ $type = 'Core';
3
+ $name = 'Times-Roman';
4
+ $up = -100;
5
+ $ut = 50;
6
+ $cw = array(
7
+ chr(0)=>250,chr(1)=>250,chr(2)=>250,chr(3)=>250,chr(4)=>250,chr(5)=>250,chr(6)=>250,chr(7)=>250,chr(8)=>250,chr(9)=>250,chr(10)=>250,chr(11)=>250,chr(12)=>250,chr(13)=>250,chr(14)=>250,chr(15)=>250,chr(16)=>250,chr(17)=>250,chr(18)=>250,chr(19)=>250,chr(20)=>250,chr(21)=>250,
8
+ chr(22)=>250,chr(23)=>250,chr(24)=>250,chr(25)=>250,chr(26)=>250,chr(27)=>250,chr(28)=>250,chr(29)=>250,chr(30)=>250,chr(31)=>250,' '=>250,'!'=>333,'"'=>408,'#'=>500,'#x27;=>500,'%'=>833,'&'=>778,'\''=>180,'('=>333,')'=>333,'*'=>500,'+'=>564,
9
+ ','=>250,'-'=>333,'.'=>250,'/'=>278,'0'=>500,'1'=>500,'2'=>500,'3'=>500,'4'=>500,'5'=>500,'6'=>500,'7'=>500,'8'=>500,'9'=>500,':'=>278,';'=>278,'<'=>564,'='=>564,'>'=>564,'?'=>444,'@'=>921,'A'=>722,
10
+ 'B'=>667,'C'=>667,'D'=>722,'E'=>611,'F'=>556,'G'=>722,'H'=>722,'I'=>333,'J'=>389,'K'=>722,'L'=>611,'M'=>889,'N'=>722,'O'=>722,'P'=>556,'Q'=>722,'R'=>667,'S'=>556,'T'=>611,'U'=>722,'V'=>722,'W'=>944,
11
+ 'X'=>722,'Y'=>722,'Z'=>611,'['=>333,'\\'=>278,']'=>333,'^'=>469,'_'=>500,'`'=>333,'a'=>444,'b'=>500,'c'=>444,'d'=>500,'e'=>444,'f'=>333,'g'=>500,'h'=>500,'i'=>278,'j'=>278,'k'=>500,'l'=>278,'m'=>778,
12
+ 'n'=>500,'o'=>500,'p'=>500,'q'=>500,'r'=>333,'s'=>389,'t'=>278,'u'=>500,'v'=>500,'w'=>722,'x'=>500,'y'=>500,'z'=>444,'{'=>480,'|'=>200,'}'=>480,'~'=>541,chr(127)=>350,chr(128)=>500,chr(129)=>350,chr(130)=>333,chr(131)=>500,
13
+ chr(132)=>444,chr(133)=>1000,chr(134)=>500,chr(135)=>500,chr(136)=>333,chr(137)=>1000,chr(138)=>556,chr(139)=>333,chr(140)=>889,chr(141)=>350,chr(142)=>611,chr(143)=>350,chr(144)=>350,chr(145)=>333,chr(146)=>333,chr(147)=>444,chr(148)=>444,chr(149)=>350,chr(150)=>500,chr(151)=>1000,chr(152)=>333,chr(153)=>980,
14
+ chr(154)=>389,chr(155)=>333,chr(156)=>722,chr(157)=>350,chr(158)=>444,chr(159)=>722,chr(160)=>250,chr(161)=>333,chr(162)=>500,chr(163)=>500,chr(164)=>500,chr(165)=>500,chr(166)=>200,chr(167)=>500,chr(168)=>333,chr(169)=>760,chr(170)=>276,chr(171)=>500,chr(172)=>564,chr(173)=>333,chr(174)=>760,chr(175)=>333,
15
+ chr(176)=>400,chr(177)=>564,chr(178)=>300,chr(179)=>300,chr(180)=>333,chr(181)=>500,chr(182)=>453,chr(183)=>250,chr(184)=>333,chr(185)=>300,chr(186)=>310,chr(187)=>500,chr(188)=>750,chr(189)=>750,chr(190)=>750,chr(191)=>444,chr(192)=>722,chr(193)=>722,chr(194)=>722,chr(195)=>722,chr(196)=>722,chr(197)=>722,
16
+ chr(198)=>889,chr(199)=>667,chr(200)=>611,chr(201)=>611,chr(202)=>611,chr(203)=>611,chr(204)=>333,chr(205)=>333,chr(206)=>333,chr(207)=>333,chr(208)=>722,chr(209)=>722,chr(210)=>722,chr(211)=>722,chr(212)=>722,chr(213)=>722,chr(214)=>722,chr(215)=>564,chr(216)=>722,chr(217)=>722,chr(218)=>722,chr(219)=>722,
17
+ chr(220)=>722,chr(221)=>722,chr(222)=>556,chr(223)=>500,chr(224)=>444,chr(225)=>444,chr(226)=>444,chr(227)=>444,chr(228)=>444,chr(229)=>444,chr(230)=>667,chr(231)=>444,chr(232)=>444,chr(233)=>444,chr(234)=>444,chr(235)=>444,chr(236)=>278,chr(237)=>278,chr(238)=>278,chr(239)=>278,chr(240)=>500,chr(241)=>500,
18
+ chr(242)=>500,chr(243)=>500,chr(244)=>500,chr(245)=>500,chr(246)=>500,chr(247)=>564,chr(248)=>500,chr(249)=>500,chr(250)=>500,chr(251)=>500,chr(252)=>500,chr(253)=>500,chr(254)=>500,chr(255)=>500);
19
+ $enc = 'cp1252';
20
+ $uv = array(0=>array(0,128),128=>8364,130=>8218,131=>402,132=>8222,133=>8230,134=>array(8224,2),136=>710,137=>8240,138=>352,139=>8249,140=>338,142=>381,145=>array(8216,2),147=>array(8220,2),149=>8226,150=>array(8211,2),152=>732,153=>8482,154=>353,155=>8250,156=>339,158=>382,159=>376,160=>array(160,96));
21
+ ?>
classes/FPDF/font/timesb.php ADDED
@@ -0,0 +1,21 @@
1
+ <?php
2
+ $type = 'Core';
3
+ $name = 'Times-Bold';
4
+ $up = -100;
5
+ $ut = 50;
6
+ $cw = array(
7
+ chr(0)=>250,chr(1)=>250,chr(2)=>250,chr(3)=>250,chr(4)=>250,chr(5)=>250,chr(6)=>250,chr(7)=>250,chr(8)=>250,chr(9)=>250,chr(10)=>250,chr(11)=>250,chr(12)=>250,chr(13)=>250,chr(14)=>250,chr(15)=>250,chr(16)=>250,chr(17)=>250,chr(18)=>250,chr(19)=>250,chr(20)=>250,chr(21)=>250,
8
+ chr(22)=>250,chr(23)=>250,chr(24)=>250,chr(25)=>250,chr(26)=>250,chr(27)=>250,chr(28)=>250,chr(29)=>250,chr(30)=>250,chr(31)=>250,' '=>250,'!'=>333,'"'=>555,'#'=>500,'#x27;=>500,'%'=>1000,'&'=>833,'\''=>278,'('=>333,')'=>333,'*'=>500,'+'=>570,
9
+ ','=>250,'-'=>333,'.'=>250,'/'=>278,'0'=>500,'1'=>500,'2'=>500,'3'=>500,'4'=>500,'5'=>500,'6'=>500,'7'=>500,'8'=>500,'9'=>500,':'=>333,';'=>333,'<'=>570,'='=>570,'>'=>570,'?'=>500,'@'=>930,'A'=>722,
10
+ 'B'=>667,'C'=>722,'D'=>722,'E'=>667,'F'=>611,'G'=>778,'H'=>778,'I'=>389,'J'=>500,'K'=>778,'L'=>667,'M'=>944,'N'=>722,'O'=>778,'P'=>611,'Q'=>778,'R'=>722,'S'=>556,'T'=>667,'U'=>722,'V'=>722,'W'=>1000,
11
+ 'X'=>722,'Y'=>722,'Z'=>667,'['=>333,'\\'=>278,']'=>333,'^'=>581,'_'=>500,'`'=>333,'a'=>500,'b'=>556,'c'=>444,'d'=>556,'e'=>444,'f'=>333,'g'=>500,'h'=>556,'i'=>278,'j'=>333,'k'=>556,'l'=>278,'m'=>833,
12
+ 'n'=>556,'o'=>500,'p'=>556,'q'=>556,'r'=>444,'s'=>389,'t'=>333,'u'=>556,'v'=>500,'w'=>722,'x'=>500,'y'=>500,'z'=>444,'{'=>394,'|'=>220,'}'=>394,'~'=>520,chr(127)=>350,chr(128)=>500,chr(129)=>350,chr(130)=>333,chr(131)=>500,
13
+ chr(132)=>500,chr(133)=>1000,chr(134)=>500,chr(135)=>500,chr(136)=>333,chr(137)=>1000,chr(138)=>556,chr(139)=>333,chr(140)=>1000,chr(141)=>350,chr(142)=>667,chr(143)=>350,chr(144)=>350,chr(145)=>333,chr(146)=>333,chr(147)=>500,chr(148)=>500,chr(149)=>350,chr(150)=>500,chr(151)=>1000,chr(152)=>333,chr(153)=>1000,
14
+ chr(154)=>389,chr(155)=>333,chr(156)=>722,chr(157)=>350,chr(158)=>444,chr(159)=>722,chr(160)=>250,chr(161)=>333,chr(162)=>500,chr(163)=>500,chr(164)=>500,chr(165)=>500,chr(166)=>220,chr(167)=>500,chr(168)=>333,chr(169)=>747,chr(170)=>300,chr(171)=>500,chr(172)=>570,chr(173)=>333,chr(174)=>747,chr(175)=>333,
15
+ chr(176)=>400,chr(177)=>570,chr(178)=>300,chr(179)=>300,chr(180)=>333,chr(181)=>556,chr(182)=>540,chr(183)=>250,chr(184)=>333,chr(185)=>300,chr(186)=>330,chr(187)=>500,chr(188)=>750,chr(189)=>750,chr(190)=>750,chr(191)=>500,chr(192)=>722,chr(193)=>722,chr(194)=>722,chr(195)=>722,chr(196)=>722,chr(197)=>722,
16
+ chr(198)=>1000,chr(199)=>722,chr(200)=>667,chr(201)=>667,chr(202)=>667,chr(203)=>667,chr(204)=>389,chr(205)=>389,chr(206)=>389,chr(207)=>389,chr(208)=>722,chr(209)=>722,chr(210)=>778,chr(211)=>778,chr(212)=>778,chr(213)=>778,chr(214)=>778,chr(215)=>570,chr(216)=>778,chr(217)=>722,chr(218)=>722,chr(219)=>722,
17
+ chr(220)=>722,chr(221)=>722,chr(222)=>611,chr(223)=>556,chr(224)=>500,chr(225)=>500,chr(226)=>500,chr(227)=>500,chr(228)=>500,chr(229)=>500,chr(230)=>722,chr(231)=>444,chr(232)=>444,chr(233)=>444,chr(234)=>444,chr(235)=>444,chr(236)=>278,chr(237)=>278,chr(238)=>278,chr(239)=>278,chr(240)=>500,chr(241)=>556,
18
+ chr(242)=>500,chr(243)=>500,chr(244)=>500,chr(245)=>500,chr(246)=>500,chr(247)=>570,chr(248)=>500,chr(249)=>556,chr(250)=>556,chr(251)=>556,chr(252)=>556,chr(253)=>500,chr(254)=>556,chr(255)=>500);
19
+ $enc = 'cp1252';
20
+ $uv = array(0=>array(0,128),128=>8364,130=>8218,131=>402,132=>8222,133=>8230,134=>array(8224,2),136=>710,137=>8240,138=>352,139=>8249,140=>338,142=>381,145=>array(8216,2),147=>array(8220,2),149=>8226,150=>array(8211,2),152=>732,153=>8482,154=>353,155=>8250,156=>339,158=>382,159=>376,160=>array(160,96));
21
+ ?>
classes/FPDF/font/timesbi.php ADDED
@@ -0,0 +1,21 @@
1
+ <?php
2
+ $type = 'Core';
3
+ $name = 'Times-BoldItalic';
4
+ $up = -100;
5
+ $ut = 50;
6
+ $cw = array(
7
+ chr(0)=>250,chr(1)=>250,chr(2)=>250,chr(3)=>250,chr(4)=>250,chr(5)=>250,chr(6)=>250,chr(7)=>250,chr(8)=>250,chr(9)=>250,chr(10)=>250,chr(11)=>250,chr(12)=>250,chr(13)=>250,chr(14)=>250,chr(15)=>250,chr(16)=>250,chr(17)=>250,chr(18)=>250,chr(19)=>250,chr(20)=>250,chr(21)=>250,
8
+ chr(22)=>250,chr(23)=>250,chr(24)=>250,chr(25)=>250,chr(26)=>250,chr(27)=>250,chr(28)=>250,chr(29)=>250,chr(30)=>250,chr(31)=>250,' '=>250,'!'=>389,'"'=>555,'#'=>500,'#x27;=>500,'%'=>833,'&'=>778,'\''=>278,'('=>333,')'=>333,'*'=>500,'+'=>570,
9
+ ','=>250,'-'=>333,'.'=>250,'/'=>278,'0'=>500,'1'=>500,'2'=>500,'3'=>500,'4'=>500,'5'=>500,'6'=>500,'7'=>500,'8'=>500,'9'=>500,':'=>333,';'=>333,'<'=>570,'='=>570,'>'=>570,'?'=>500,'@'=>832,'A'=>667,
10
+ 'B'=>667,'C'=>667,'D'=>722,'E'=>667,'F'=>667,'G'=>722,'H'=>778,'I'=>389,'J'=>500,'K'=>667,'L'=>611,'M'=>889,'N'=>722,'O'=>722,'P'=>611,'Q'=>722,'R'=>667,'S'=>556,'T'=>611,'U'=>722,'V'=>667,'W'=>889,
11
+ 'X'=>667,'Y'=>611,'Z'=>611,'['=>333,'\\'=>278,']'=>333,'^'=>570,'_'=>500,'`'=>333,'a'=>500,'b'=>500,'c'=>444,'d'=>500,'e'=>444,'f'=>333,'g'=>500,'h'=>556,'i'=>278,'j'=>278,'k'=>500,'l'=>278,'m'=>778,
12
+ 'n'=>556,'o'=>500,'p'=>500,'q'=>500,'r'=>389,'s'=>389,'t'=>278,'u'=>556,'v'=>444,'w'=>667,'x'=>500,'y'=>444,'z'=>389,'{'=>348,'|'=>220,'}'=>348,'~'=>570,chr(127)=>350,chr(128)=>500,chr(129)=>350,chr(130)=>333,chr(131)=>500,
13
+ chr(132)=>500,chr(133)=>1000,chr(134)=>500,chr(135)=>500,chr(136)=>333,chr(137)=>1000,chr(138)=>556,chr(139)=>333,chr(140)=>944,chr(141)=>350,chr(142)=>611,chr(143)=>350,chr(144)=>350,chr(145)=>333,chr(146)=>333,chr(147)=>500,chr(148)=>500,chr(149)=>350,chr(150)=>500,chr(151)=>1000,chr(152)=>333,chr(153)=>1000,
14
+ chr(154)=>389,chr(155)=>333,chr(156)=>722,chr(157)=>350,chr(158)=>389,chr(159)=>611,chr(160)=>250,chr(161)=>389,chr(162)=>500,chr(163)=>500,chr(164)=>500,chr(165)=>500,chr(166)=>220,chr(167)=>500,chr(168)=>333,chr(169)=>747,chr(170)=>266,chr(171)=>500,chr(172)=>606,chr(173)=>333,chr(174)=>747,chr(175)=>333,
15
+ chr(176)=>400,chr(177)=>570,chr(178)=>300,chr(179)=>300,chr(180)=>333,chr(181)=>576,chr(182)=>500,chr(183)=>250,chr(184)=>333,chr(185)=>300,chr(186)=>300,chr(187)=>500,chr(188)=>750,chr(189)=>750,chr(190)=>750,chr(191)=>500,chr(192)=>667,chr(193)=>667,chr(194)=>667,chr(195)=>667,chr(196)=>667,chr(197)=>667,
16
+ chr(198)=>944,chr(199)=>667,chr(200)=>667,chr(201)=>667,chr(202)=>667,chr(203)=>667,chr(204)=>389,chr(205)=>389,chr(206)=>389,chr(207)=>389,chr(208)=>722,chr(209)=>722,chr(210)=>722,chr(211)=>722,chr(212)=>722,chr(213)=>722,chr(214)=>722,chr(215)=>570,chr(216)=>722,chr(217)=>722,chr(218)=>722,chr(219)=>722,
17
+ chr(220)=>722,chr(221)=>611,chr(222)=>611,chr(223)=>500,chr(224)=>500,chr(225)=>500,chr(226)=>500,chr(227)=>500,chr(228)=>500,chr(229)=>500,chr(230)=>722,chr(231)=>444,chr(232)=>444,chr(233)=>444,chr(234)=>444,chr(235)=>444,chr(236)=>278,chr(237)=>278,chr(238)=>278,chr(239)=>278,chr(240)=>500,chr(241)=>556,
18
+ chr(242)=>500,chr(243)=>500,chr(244)=>500,chr(245)=>500,chr(246)=>500,chr(247)=>570,chr(248)=>500,chr(249)=>556,chr(250)=>556,chr(251)=>556,chr(252)=>556,chr(253)=>444,chr(254)=>500,chr(255)=>444);
19
+ $enc = 'cp1252';
20
+ $uv = array(0=>array(0,128),128=>8364,130=>8218,131=>402,132=>8222,133=>8230,134=>array(8224,2),136=>710,137=>8240,138=>352,139=>8249,140=>338,142=>381,145=>array(8216,2),147=>array(8220,2),149=>8226,150=>array(8211,2),152=>732,153=>8482,154=>353,155=>8250,156=>339,158=>382,159=>376,160=>array(160,96));
21
+ ?>
classes/FPDF/font/timesi.php ADDED
@@ -0,0 +1,21 @@
1
+ <?php
2
+ $type = 'Core';
3
+ $name = 'Times-Italic';
4
+ $up = -100;
5
+ $ut = 50;
6
+ $cw = array(
7
+ chr(0)=>250,chr(1)=>250,chr(2)=>250,chr(3)=>250,chr(4)=>250,chr(5)=>250,chr(6)=>250,chr(7)=>250,chr(8)=>250,chr(9)=>250,chr(10)=>250,chr(11)=>250,chr(12)=>250,chr(13)=>250,chr(14)=>250,chr(15)=>250,chr(16)=>250,chr(17)=>250,chr(18)=>250,chr(19)=>250,chr(20)=>250,chr(21)=>250,
8
+ chr(22)=>250,chr(23)=>250,chr(24)=>250,chr(25)=>250,chr(26)=>250,chr(27)=>250,chr(28)=>250,chr(29)=>250,chr(30)=>250,chr(31)=>250,' '=>250,'!'=>333,'"'=>420,'#'=>500,'#x27;=>500,'%'=>833,'&'=>778,'\''=>214,'('=>333,')'=>333,'*'=>500,'+'=>675,
9
+ ','=>250,'-'=>333,'.'=>250,'/'=>278,'0'=>500,'1'=>500,'2'=>500,'3'=>500,'4'=>500,'5'=>500,'6'=>500,'7'=>500,'8'=>500,'9'=>500,':'=>333,';'=>333,'<'=>675,'='=>675,'>'=>675,'?'=>500,'@'=>920,'A'=>611,
10
+ 'B'=>611,'C'=>667,'D'=>722,'E'=>611,'F'=>611,'G'=>722,'H'=>722,'I'=>333,'J'=>444,'K'=>667,'L'=>556,'M'=>833,'N'=>667,'O'=>722,'P'=>611,'Q'=>722,'R'=>611,'S'=>500,'T'=>556,'U'=>722,'V'=>611,'W'=>833,
11
+ 'X'=>611,'Y'=>556,'Z'=>556,'['=>389,'\\'=>278,']'=>389,'^'=>422,'_'=>500,'`'=>333,'a'=>500,'b'=>500,'c'=>444,'d'=>500,'e'=>444,'f'=>278,'g'=>500,'h'=>500,'i'=>278,'j'=>278,'k'=>444,'l'=>278,'m'=>722,
12
+ 'n'=>500,'o'=>500,'p'=>500,'q'=>500,'r'=>389,'s'=>389,'t'=>278,'u'=>500,'v'=>444,'w'=>667,'x'=>444,'y'=>444,'z'=>389,'{'=>400,'|'=>275,'}'=>400,'~'=>541,chr(127)=>350,chr(128)=>500,chr(129)=>350,chr(130)=>333,chr(131)=>500,
13
+ chr(132)=>556,chr(133)=>889,chr(134)=>500,chr(135)=>500,chr(136)=>333,chr(137)=>1000,chr(138)=>500,chr(139)=>333,chr(140)=>944,chr(141)=>350,chr(142)=>556,chr(143)=>350,chr(144)=>350,chr(145)=>333,chr(146)=>333,chr(147)=>556,chr(148)=>556,chr(149)=>350,chr(150)=>500,chr(151)=>889,chr(152)=>333,chr(153)=>980,
14
+ chr(154)=>389,chr(155)=>333,chr(156)=>667,chr(157)=>350,chr(158)=>389,chr(159)=>556,chr(160)=>250,chr(161)=>389,chr(162)=>500,chr(163)=>500,chr(164)=>500,chr(165)=>500,chr(166)=>275,chr(167)=>500,chr(168)=>333,chr(169)=>760,chr(170)=>276,chr(171)=>500,chr(172)=>675,chr(173)=>333,chr(174)=>760,chr(175)=>333,
15
+ chr(176)=>400,chr(177)=>675,chr(178)=>300,chr(179)=>300,chr(180)=>333,chr(181)=>500,chr(182)=>523,chr(183)=>250,chr(184)=>333,chr(185)=>300,chr(186)=>310,chr(187)=>500,chr(188)=>750,chr(189)=>750,chr(190)=>750,chr(191)=>500,chr(192)=>611,chr(193)=>611,chr(194)=>611,chr(195)=>611,chr(196)=>611,chr(197)=>611,
16
+ chr(198)=>889,chr(199)=>667,chr(200)=>611,chr(201)=>611,chr(202)=>611,chr(203)=>611,chr(204)=>333,chr(205)=>333,chr(206)=>333,chr(207)=>333,chr(208)=>722,chr(209)=>667,chr(210)=>722,chr(211)=>722,chr(212)=>722,chr(213)=>722,chr(214)=>722,chr(215)=>675,chr(216)=>722,chr(217)=>722,chr(218)=>722,chr(219)=>722,
17
+ chr(220)=>722,chr(221)=>556,chr(222)=>611,chr(223)=>500,chr(224)=>500,chr(225)=>500,chr(226)=>500,chr(227)=>500,chr(228)=>500,chr(229)=>500,chr(230)=>667,chr(231)=>444,chr(232)=>444,chr(233)=>444,chr(234)=>444,chr(235)=>444,chr(236)=>278,chr(237)=>278,chr(238)=>278,chr(239)=>278,chr(240)=>500,chr(241)=>500,
18
+ chr(242)=>500,chr(243)=>500,chr(244)=>500,chr(245)=>500,chr(246)=>500,chr(247)=>675,chr(248)=>500,chr(249)=>500,chr(250)=>500,chr(251)=>500,chr(252)=>500,chr(253)=>444,chr(254)=>500,chr(255)=>444);
19
+ $enc = 'cp1252';
20
+ $uv = array(0=>array(0,128),128=>8364,130=>8218,131=>402,132=>8222,133=>8230,134=>array(8224,2),136=>710,137=>8240,138=>352,139=>8249,140=>338,142=>381,145=>array(8216,2),147=>array(8220,2),149=>8226,150=>array(8211,2),152=>732,153=>8482,154=>353,155=>8250,156=>339,158=>382,159=>376,160=>array(160,96));
21
+ ?>
classes/FPDF/font/zapfdingbats.php ADDED
@@ -0,0 +1,20 @@
1
+ <?php
2
+ $type = 'Core';
3
+ $name = 'ZapfDingbats';
4
+ $up = -100;
5
+ $ut = 50;
6
+ $cw = array(
7
+ chr(0)=>0,chr(1)=>0,chr(2)=>0,chr(3)=>0,chr(4)=>0,chr(5)=>0,chr(6)=>0,chr(7)=>0,chr(8)=>0,chr(9)=>0,chr(10)=>0,chr(11)=>0,chr(12)=>0,chr(13)=>0,chr(14)=>0,chr(15)=>0,chr(16)=>0,chr(17)=>0,chr(18)=>0,chr(19)=>0,chr(20)=>0,chr(21)=>0,
8
+ chr(22)=>0,chr(23)=>0,chr(24)=>0,chr(25)=>0,chr(26)=>0,chr(27)=>0,chr(28)=>0,chr(29)=>0,chr(30)=>0,chr(31)=>0,' '=>278,'!'=>974,'"'=>961,'#'=>974,'#x27;=>980,'%'=>719,'&'=>789,'\''=>790,'('=>791,')'=>690,'*'=>960,'+'=>939,
9
+ ','=>549,'-'=>855,'.'=>911,'/'=>933,'0'=>911,'1'=>945,'2'=>974,'3'=>755,'4'=>846,'5'=>762,'6'=>761,'7'=>571,'8'=>677,'9'=>763,':'=>760,';'=>759,'<'=>754,'='=>494,'>'=>552,'?'=>537,'@'=>577,'A'=>692,
10
+ 'B'=>786,'C'=>788,'D'=>788,'E'=>790,'F'=>793,'G'=>794,'H'=>816,'I'=>823,'J'=>789,'K'=>841,'L'=>823,'M'=>833,'N'=>816,'O'=>831,'P'=>923,'Q'=>744,'R'=>723,'S'=>749,'T'=>790,'U'=>792,'V'=>695,'W'=>776,
11
+ 'X'=>768,'Y'=>792,'Z'=>759,'['=>707,'\\'=>708,']'=>682,'^'=>701,'_'=>826,'`'=>815,'a'=>789,'b'=>789,'c'=>707,'d'=>687,'e'=>696,'f'=>689,'g'=>786,'h'=>787,'i'=>713,'j'=>791,'k'=>785,'l'=>791,'m'=>873,
12
+ 'n'=>761,'o'=>762,'p'=>762,'q'=>759,'r'=>759,'s'=>892,'t'=>892,'u'=>788,'v'=>784,'w'=>438,'x'=>138,'y'=>277,'z'=>415,'{'=>392,'|'=>392,'}'=>668,'~'=>668,chr(127)=>0,chr(128)=>390,chr(129)=>390,chr(130)=>317,chr(131)=>317,
13
+ chr(132)=>276,chr(133)=>276,chr(134)=>509,chr(135)=>509,chr(136)=>410,chr(137)=>410,chr(138)=>234,chr(139)=>234,chr(140)=>334,chr(141)=>334,chr(142)=>0,chr(143)=>0,chr(144)=>0,chr(145)=>0,chr(146)=>0,chr(147)=>0,chr(148)=>0,chr(149)=>0,chr(150)=>0,chr(151)=>0,chr(152)=>0,chr(153)=>0,
14
+ chr(154)=>0,chr(155)=>0,chr(156)=>0,chr(157)=>0,chr(158)=>0,chr(159)=>0,chr(160)=>0,chr(161)=>732,chr(162)=>544,chr(163)=>544,chr(164)=>910,chr(165)=>667,chr(166)=>760,chr(167)=>760,chr(168)=>776,chr(169)=>595,chr(170)=>694,chr(171)=>626,chr(172)=>788,chr(173)=>788,chr(174)=>788,chr(175)=>788,
15
+ chr(176)=>788,chr(177)=>788,chr(178)=>788,chr(179)=>788,chr(180)=>788,chr(181)=>788,chr(182)=>788,chr(183)=>788,chr(184)=>788,chr(185)=>788,chr(186)=>788,chr(187)=>788,chr(188)=>788,chr(189)=>788,chr(190)=>788,chr(191)=>788,chr(192)=>788,chr(193)=>788,chr(194)=>788,chr(195)=>788,chr(196)=>788,chr(197)=>788,
16
+ chr(198)=>788,chr(199)=>788,chr(200)=>788,chr(201)=>788,chr(202)=>788,chr(203)=>788,chr(204)=>788,chr(205)=>788,chr(206)=>788,chr(207)=>788,chr(208)=>788,chr(209)=>788,chr(210)=>788,chr(211)=>788,chr(212)=>894,chr(213)=>838,chr(214)=>1016,chr(215)=>458,chr(216)=>748,chr(217)=>924,chr(218)=>748,chr(219)=>918,
17
+ chr(220)=>927,chr(221)=>928,chr(222)=>928,chr(223)=>834,chr(224)=>873,chr(225)=>828,chr(226)=>924,chr(227)=>924,chr(228)=>917,chr(229)=>930,chr(230)=>931,chr(231)=>463,chr(232)=>883,chr(233)=>836,chr(234)=>836,chr(235)=>867,chr(236)=>867,chr(237)=>696,chr(238)=>696,chr(239)=>874,chr(240)=>0,chr(241)=>874,
18
+ chr(242)=>760,chr(243)=>946,chr(244)=>771,chr(245)=>865,chr(246)=>771,chr(247)=>888,chr(248)=>967,chr(249)=>888,chr(250)=>831,chr(251)=>873,chr(252)=>927,chr(253)=>970,chr(254)=>918,chr(255)=>0);
19
+ $uv = array(32=>32,33=>array(9985,4),37=>9742,38=>array(9990,4),42=>9755,43=>9758,44=>array(9996,28),72=>9733,73=>array(10025,35),108=>9679,109=>10061,110=>9632,111=>array(10063,4),115=>9650,116=>9660,117=>9670,118=>10070,119=>9687,120=>array(10072,7),128=>array(10088,14),161=>array(10081,7),168=>9827,169=>9830,170=>9829,171=>9824,172=>array(9312,10),182=>array(10102,31),213=>8594,214=>array(8596,2),216=>array(10136,24),241=>array(10161,14));
20
+ ?>
classes/FPDF/fpdf.php ADDED
@@ -0,0 +1,1898 @@