Revision history for Utf8Pdf
Additions:
~ ===8=== Add the line %%$pdf->__destruct();%% after the %%$pdf->OutputD($_SESSION['DatabaseName'] . '_' .'ReportName_' . date('Y-m-d').'.pdf');%% to free memory
Deletions:
Additions:
SalesAnalRepts.php - SalesAnalisis_UserDefined.php (Outputs the PDF) - PDFSalesAnalysis.inc (creates PDF) - PDFSalesAnalPageHeader.inc
Deletions:
Additions:
++DebtorsAtPeriodEnd.php: Uldis++
++GLBalanceSheet.php: Uldis++
++GLBalanceSheet.php: Uldis++
Deletions:
GLBalanceSheet.php:
Additions:
++PDFOrdersInvoiced.php: Uldis++
Deletions:
Additions:
++PDFLowGP.php: Uldis++
++PDFOrderStatus.php: Uldis++
++PDFQuotation.php: Uldis++
++PDFStockCheckComparison.php: Uldis++
++PDFStockLocTransfer.php: Uldis++
++PDFStockNegatives.php: Uldis++
++PDFStockTransfer.php: Uldis++
++PDFTopItems.php: Uldis++
++PO_PDFPurchOrder.php: Uldis++
++PrintCheque.php: Uldis ++
++PrintCustOrder_generic.php: Uldis++
++PrintCustStatements.php: Uldis++
++PrintSalesOrder_generic.php: Uldis++
++ReorderLevel.php: Uldis++
++PDFOrderStatus.php: Uldis++
++PDFQuotation.php: Uldis++
++PDFStockCheckComparison.php: Uldis++
++PDFStockLocTransfer.php: Uldis++
++PDFStockNegatives.php: Uldis++
++PDFStockTransfer.php: Uldis++
++PDFTopItems.php: Uldis++
++PO_PDFPurchOrder.php: Uldis++
++PrintCheque.php: Uldis ++
++PrintCustOrder_generic.php: Uldis++
++PrintCustStatements.php: Uldis++
++PrintSalesOrder_generic.php: Uldis++
++ReorderLevel.php: Uldis++
Deletions:
PDFOrderStatus.php:
PDFQuotation.php:
PDFStockCheckComparison.php:
PDFStockLocTransfer.php:
PDFStockNegatives.php:
PDFStockTransfer.php:
PDFTopItems.php:
PO_PDFPurchOrder.php:
PrintCheque.php:
PrintCustOrder_generic.php:
PrintCustStatements.php:
PrintSalesOrder_generic.php:
ReorderLevel.php:
Additions:
~ ===4=== Remove references to the output function that are only attempting to get the length of the pdf (the ouput function in TCPDF creates the pdf - not just creating a pdf string - so we can't test for its length anymore). Change the code to bail out of the pdf creation process at the point when we know if there are no records returned from the sql using code like:
%%
if(DB_num_rows($DB_result)==0) {
$Title = _('Report name Error Report');
include ('includes/header.inc');
prnMsg(_('There is nothing to report on based on the selections made'),'error');
include ('includes/footer.inc');
exit;
}
%%
%%
if(DB_num_rows($DB_result)==0) {
$Title = _('Report name Error Report');
include ('includes/header.inc');
prnMsg(_('There is nothing to report on based on the selections made'),'error');
include ('includes/footer.inc');
exit;
}
%%
Deletions:
Additions:
In the utf8 branch of SVN:
Additions:
~ ===8=== Add the line %%$pdf->__destruct()%% after the %%$pdf->OutputD($_SESSION['DatabaseName'] . '_' .'ReportName_' . date('Y-m-d').'.pdf');%% to free memory
Deletions:
Additions:
~ ===4=== Remove references to the output function that are only attempting to get the length of the pdf (the ouput function in TCPDF creates the pdf - not just creating a pdf string - so we can't test for its length anymore). Change the code to bail out of the pdf creation process at the point when we know if there are no records returned from the sql using the %% if(DB_num_rows($DB_result)==0) { %%
~ ===6=== Delete the http header code - this is now sent automatically by TCPDF
~ ===8=== Add the line %%$pdf->__destruct()%% after the $pdf->OutputD($_SESSION['DatabaseName'] . '_' .'ReportName_' . date('Y-m-d').'.pdf');%% to free memory
~ ===6=== Delete the http header code - this is now sent automatically by TCPDF
~ ===8=== Add the line %%$pdf->__destruct()%% after the $pdf->OutputD($_SESSION['DatabaseName'] . '_' .'ReportName_' . date('Y-m-d').'.pdf');%% to free memory
Deletions:
get the length of the pdf - change the code to bail out of the pdf creation process at the point when we know if there are no records returned from the sql using the DB_num_rows($DB_result)=0 test
~ ===6=== Delete the html header code (*Javier*: Phil, this is not an html header, it is an http header, i.e., an IP protocol handshake)
~ ===8=== Add the line %%$pdf->__destruct() after the $pdf->Output() call to free memory%%
Additions:
~ ===6=== Delete the html header code (*Javier*: Phil, this is not an html header, it is an http header, i.e., an IP protocol handshake)
Deletions:
Additions:
++StockCheck.php: Phil ++
++StockDispatch.php: Phil ++
++SupplierBalsAtPeriodEnd.php: Phil ++
++StockDispatch.php: Phil ++
++SupplierBalsAtPeriodEnd.php: Phil ++
Deletions:
StockDispatch.php:
SupplierBalsAtPeriodEnd.php:
Additions:
++SuppPaymentRun.php: Phil++
++SuppPriceList.php: Phil ++
++Tax.php: Phil++
++SuppPriceList.php: Phil ++
++Tax.php: Phil++
Deletions:
SuppPriceList.php:
Tax.php:
Additions:
~ ===1=== Put $FontSize assignments after $pdf->addInfo calls
~ ===7=== Where previously we used the CVS $Revsion substitution variable this is not available in svn and we need to change it to $Id$ inside the existing comment
~ ===7=== Where previously we used the CVS $Revsion substitution variable this is not available in svn and we need to change it to $Id$ inside the existing comment
Deletions:
~ ===1=== Put $FontSize assignments after $pdf->addInfo calls - this is probably not necessary but hey nice to be consistent.
*Javier*: this is not about consistence. Trying to apply format to addInfo as the first sentence in the sequence:
$FontSize=12
addInfo
$FontSize=10
does nothing but telling everybody we ignore that PDF properties are meta-data (In Adobe Reader look at the Description tab in File Properties to see Title, Author, Subject, Keywords and Creator). When only a first $FontSize is encountered it doesn't matter but again it will be better to the code to be more clear.
*Phil - don't think FontSize was ever intended to and will of course never impact on the formatting of addInfo data?? Not sure where you got that from??
*Javier*: This is because the Turkish issue ( 'I' <> uppercase ('i') )
*Javier*: This does nothing while the setFont method of class.pdf.php is not improved (it should be). Then, it will be good to have all pdf prepared already
*Javier*: FPDF creates PDF as strings by default but TCPDF produces the output.
~ ===7=== Where previously we used the CVS $Revsion substitution variable this is not available in svn and we need to change it to $Id inside the existing comment
*Javier*: This is the most important part.
Additions:
++BOMListing.php: Uldis++
Deletions:
Additions:
++BOMIndented.php: Uldis++
++BOMIndentedReverse.php: Uldis++
++BOMIndentedReverse.php: Uldis++
Deletions:
BOMIndentedReverse.php:
Additions:
++AgedSuppliers.php: Uldis++
++BOMExtendedQty.php: Uldis++
++BOMExtendedQty.php: Uldis++
Deletions:
BOMExtendedQty.php:
Additions:
++MRPReport.php: Uldis++
++MRPReschedules.php: Uldis++
++MRPShortages.php: Uldis++
++OutstandingGRNs.php: Uldis++
++PDFBankingSummary.php: Uldis ++
++PDFChequeListing.php: Uldis ++
++PDFCustomerList.php: Uldis ++
++PDFDeliveryDifferences.php: Uldis ++
++PDFDIFOT.php: Uldis ++
++PDFGrn.php: Uldis++
++MRPReschedules.php: Uldis++
++MRPShortages.php: Uldis++
++OutstandingGRNs.php: Uldis++
++PDFBankingSummary.php: Uldis ++
++PDFChequeListing.php: Uldis ++
++PDFCustomerList.php: Uldis ++
++PDFDeliveryDifferences.php: Uldis ++
++PDFDIFOT.php: Uldis ++
++PDFGrn.php: Uldis++
Deletions:
MRPReschedules.php:
MRPShortages.php:
OutstandingGRNs.php:
PDFBankingSummary.php:
PDFChequeListing.php:
PDFCustomerList.php:
PDFDeliveryDifferences.php:
PDFDIFOT.php:
PDFGrn.php:
Additions:
*Phil - don't think FontSize was ever intended to and will of course never impact on the formatting of addInfo data?? Not sure where you got that from??
~ ===5=== Correct the syntax of the pdf creation method to make calls to the $pdf->OutputD($_SESSION['DatabaseName'] . '_' .'ReportName_' . date('Y-m-d').'.pdf');
~ ===6=== Delete the html header code
~ ===5=== Correct the syntax of the pdf creation method to make calls to the $pdf->OutputD($_SESSION['DatabaseName'] . '_' .'ReportName_' . date('Y-m-d').'.pdf');
~ ===6=== Delete the html header code
Deletions:
*Javier*: Bad, very bad, TCPDF has not the same behaviour as FPDF. Most WebERP PDF scripts are Recursive scripts and recursive scripts can't serve PDF Inline using TCPDF or at least I haven't found how. This worked with FPDF. You should change 'I' into 'D' if you don't want your WebERP installation to begin to behave strangely.
*Javier*: Moreover, people that could be interested in a sort of Document Management System should use OutputD() because then, to change the behaviour from 'D'=Download to 'F' to have all PDF documents saved in the server, you only will have to change one letter in class.pdf.php and not the 50 scripts again.
~ ===6=== Comment out the html header code (Javier: why not delete it??)
*Javier*: I have seen that TCPDF sends its own header but I didn't have the time to compare both. You may delete it if you want, I have a copy of the scripts.
*Javier*: It's $Id$ for the svn:keywords property.
Additions:
*Javier*: FPDF creates PDF as strings by default but TCPDF produces the output.
Additions:
*Javier*: This is the Phil's version of my initial instructions and I have commented them for everybody to have both points of view and further info. The quid is if the Output() TCPDF funtion or the abstracted OutputD() should be used. I made OutputD() to allow changing the whole WebERP PDF behaviour changing just one letter, intended for those like me who want to save PDF documents also in the server to make use of a Document Management System. The discussion is about hard disk space. My reasons pro server-side are 1) Each GB allows per 10000 to 20000 pdf documents, 2) I'm not interested in desktop applications but datacenters and, 3) saving pdf in client computers is counter ERP definition.
Deletions:
Additions:
~ ===1=== Put $FontSize assignments after $pdf->addInfo calls - this is probably not necessary but hey nice to be consistent.
~ ===2=== Ensure addInfo calls have capitalised 'I' not lower case 'i'.
~ ===3=== Replace changes in font between normal and bold such as
~ ===4=== Remove references to the output function that are only attempting to
~ ===5=== Correct the syntax of the pdf creation method to make calls to the $pdf->Output($_SESSION['DatabaseName'] . '_' .'ReportName_' . date('Y-m-d').'.pdf','I');
~ ===6=== Comment out the html header code (Javier: why not delete it??)
~ ===7=== Where previously we used the CVS $Revsion substitution variable this is not available in svn and we need to change it to $Id inside the existing comment
~ ===8=== Add the line %%$pdf->__destruct() after the $pdf->Output() call to free memory%%
~ ===2=== Ensure addInfo calls have capitalised 'I' not lower case 'i'.
~ ===3=== Replace changes in font between normal and bold such as
~ ===4=== Remove references to the output function that are only attempting to
~ ===5=== Correct the syntax of the pdf creation method to make calls to the $pdf->Output($_SESSION['DatabaseName'] . '_' .'ReportName_' . date('Y-m-d').'.pdf','I');
~ ===6=== Comment out the html header code (Javier: why not delete it??)
~ ===7=== Where previously we used the CVS $Revsion substitution variable this is not available in svn and we need to change it to $Id inside the existing comment
~ ===8=== Add the line %%$pdf->__destruct() after the $pdf->Output() call to free memory%%
Deletions:
~ ===2===. Ensure addInfo calls have capitalised 'I' not lower case 'i'.
~ ===3===. Replace changes in font between normal and bold such as
~ ===4===. Remove references to the output function that are only attempting to
~ ===5===. Correct the syntax of the pdf creation method to make calls to the $pdf->Output($_SESSION['DatabaseName'] . '_' .'ReportName_' . date('Y-m-d').'.pdf','I');
~ ===6===. Comment out the html header code (Javier: why not delete it??)
~ ===7===. Where previously we used the CVS $Revsion substitution variable this is not available in svn and we need to change it to $Id inside the existing comment
~ ===8===. Add the line %%$pdf->__destruct() after the $pdf->Output() call to free memory%%
Additions:
~ ===1===. Put $FontSize assignments after $pdf->addInfo calls - this is probably not necessary but hey nice to be consistent.
~ ===2===. Ensure addInfo calls have capitalised 'I' not lower case 'i'.
~ ===3===. Replace changes in font between normal and bold such as
~ ===4===. Remove references to the output function that are only attempting to
~ ===5===. Correct the syntax of the pdf creation method to make calls to the $pdf->Output($_SESSION['DatabaseName'] . '_' .'ReportName_' . date('Y-m-d').'.pdf','I');
~ ===6===. Comment out the html header code (Javier: why not delete it??)
~ ===7===. Where previously we used the CVS $Revsion substitution variable this is not available in svn and we need to change it to $Id inside the existing comment
~ ===8===. Add the line %%$pdf->__destruct() after the $pdf->Output() call to free memory%%
~ ===2===. Ensure addInfo calls have capitalised 'I' not lower case 'i'.
~ ===3===. Replace changes in font between normal and bold such as
~ ===4===. Remove references to the output function that are only attempting to
~ ===5===. Correct the syntax of the pdf creation method to make calls to the $pdf->Output($_SESSION['DatabaseName'] . '_' .'ReportName_' . date('Y-m-d').'.pdf','I');
~ ===6===. Comment out the html header code (Javier: why not delete it??)
~ ===7===. Where previously we used the CVS $Revsion substitution variable this is not available in svn and we need to change it to $Id inside the existing comment
~ ===8===. Add the line %%$pdf->__destruct() after the $pdf->Output() call to free memory%%
Deletions:
~ 2. Ensure addInfo calls have capitalised 'I' not lower case 'i'.
~ 3. Replace changes in font between normal and bold such as
~ 4. Remove references to the output function that are only attempting to
~ 5. Correct the syntax of the pdf creation method to make calls to the $pdf->Output($_SESSION['DatabaseName'] . '_' .'ReportName_' . date('Y-m-d').'.pdf','I');
~ 6. Comment out the html header code (Javier: why not delete it??)
~ 7. Where previously we used the CVS $Revsion substitution variable this is not available in svn and we need to change it to $Id inside the existing comment
~ 8. Add the line %%$pdf->__destruct() after the $pdf->Output() call to free memory%%
Additions:
====Transition to UTF-8====
===A bit of Background, review the developers mailing list for more===
*Javier*: This is an altered version of my initial instructions, I have commented them for you to have both points of view.
===A bit of Background, review the developers mailing list for more===
*Javier*: This is an altered version of my initial instructions, I have commented them for you to have both points of view.
Deletions:
====A bit of Background, review the mailing list for more====
Additions:
~ 8. Add the line %%$pdf->__destruct() after the $pdf->Output() call to free memory%%
Deletions:
Additions:
====A bit of Background, review the mailing list for more====
Deletions:
Additions:
*Javier*: Bad, very bad, TCPDF has not the same behaviour as FPDF. Most WebERP PDF scripts are Recursive scripts and recursive scripts can't serve PDF Inline using TCPDF or at least I haven't found how. This worked with FPDF. You should change 'I' into 'D' if you don't want your WebERP installation to begin to behave strangely.
*Javier*: Following is the list that I have been making during these last months, it has three parts; I will carry on my back the first 2 parts and have made 2 examples of 3rd part: the first AgedDebtors and PDFPriceList.
*Javier*: Following is the list that I have been making during these last months, it has three parts; I will carry on my back the first 2 parts and have made 2 examples of 3rd part: the first AgedDebtors and PDFPriceList.
Deletions:
*Javier*: Following is the list that I have been making during these last months, it has three parts.
Additions:
*Javier*: this is not about consistence. Trying to apply format to addInfo as the first sentence in the sequence:
~ 2. Ensure addInfo calls have capitalised 'I' not lower case 'i'.
*Javier*: This is because the Turkish issue ( 'I' <> uppercase ('i') )
*Javier*: This does nothing while the setFont method of class.pdf.php is not improved (it should be). Then, it will be good to have all pdf prepared already
*Javier*: Bad, TCPDF has not the same behaviour as FPDF. Most WebERP PDF scripts are Recursive scripts and recursive scripts can't serve PDF Inline using TCPDF or at least I haven't found how. This worked with FPDF. You should change 'I' into 'D' if you don't want your WebERP installation to begin to behave strangely.
*Javier*: Moreover, people that could be interested in a sort of Document Management System should use OutputD() because then, to change the behaviour from 'D'=Download to 'F' to have all PDF documents saved in the server, you only will have to change one letter in class.pdf.php and not the 50 scripts again.
*Javier*: I have seen that TCPDF sends its own header but I didn't have the time to compare both. You may delete it if you want, I have a copy of the scripts.
*Javier*: It's $Id$ for the svn:keywords property.
*Javier*: This is the most important part.
*Javier*: Following is the list that I have been making during these last months, it has three parts.
**ReportWriter**
++The folder /reportwriter: Javier++
~ 2. Ensure addInfo calls have capitalised 'I' not lower case 'i'.
*Javier*: This is because the Turkish issue ( 'I' <> uppercase ('i') )
*Javier*: This does nothing while the setFont method of class.pdf.php is not improved (it should be). Then, it will be good to have all pdf prepared already
*Javier*: Bad, TCPDF has not the same behaviour as FPDF. Most WebERP PDF scripts are Recursive scripts and recursive scripts can't serve PDF Inline using TCPDF or at least I haven't found how. This worked with FPDF. You should change 'I' into 'D' if you don't want your WebERP installation to begin to behave strangely.
*Javier*: Moreover, people that could be interested in a sort of Document Management System should use OutputD() because then, to change the behaviour from 'D'=Download to 'F' to have all PDF documents saved in the server, you only will have to change one letter in class.pdf.php and not the 50 scripts again.
*Javier*: I have seen that TCPDF sends its own header but I didn't have the time to compare both. You may delete it if you want, I have a copy of the scripts.
*Javier*: It's $Id$ for the svn:keywords property.
*Javier*: This is the most important part.
*Javier*: Following is the list that I have been making during these last months, it has three parts.
**ReportWriter**
++The folder /reportwriter: Javier++
Deletions:
~ 2. Ensure addInfo calls have capitalised 'I' not lower case 'i'. Javier: This is because the Turkish issue ( 'I' <> uppercase ('i') )
Javier: This does nothing while the setFont method of class.pdf.php is not improved (it should be). Then, it will be good to have all pdf prepared already
Javier: Bad, TCPDF has not the same behaviour as FPDF. Most WebERP PDF scripts are Recursive scripts
Additions:
~ 1. Put $FontSize assignments after $pdf->addInfo calls - this is probably not necessary but hey nice to be consistent.
Javier: this is not about consistence. Trying to apply format to addInfo as the first sentence in the sequence:
$FontSize=12
addInfo
$FontSize=10
does nothing but telling everybody we ignore that PDF properties are meta-data (In Adobe Reader look at the Description tab in File Properties to see Title, Author, Subject, Keywords and Creator). When only a first $FontSize is encountered it doesn't matter but again it will be better to the code to be more clear.
~ 2. Ensure addInfo calls have capitalised 'I' not lower case 'i'. Javier: This is because the Turkish issue ( 'I' <> uppercase ('i') )
Javier: This does nothing while the setFont method of class.pdf.php is not improved (it should be). Then, it will be good to have all pdf prepared already
Javier: Bad, TCPDF has not the same behaviour as FPDF. Most WebERP PDF scripts are Recursive scripts
Javier: this is not about consistence. Trying to apply format to addInfo as the first sentence in the sequence:
$FontSize=12
addInfo
$FontSize=10
does nothing but telling everybody we ignore that PDF properties are meta-data (In Adobe Reader look at the Description tab in File Properties to see Title, Author, Subject, Keywords and Creator). When only a first $FontSize is encountered it doesn't matter but again it will be better to the code to be more clear.
~ 2. Ensure addInfo calls have capitalised 'I' not lower case 'i'. Javier: This is because the Turkish issue ( 'I' <> uppercase ('i') )
Javier: This does nothing while the setFont method of class.pdf.php is not improved (it should be). Then, it will be good to have all pdf prepared already
Javier: Bad, TCPDF has not the same behaviour as FPDF. Most WebERP PDF scripts are Recursive scripts
Deletions:
~ 2. Ensure addInfo calls have capitalised 'I' not lower case 'i'. This is because the Turkish issue ( 'I' <> uppercase ('i') )
Additions:
~ 2. Ensure addInfo calls have capitalised 'I' not lower case 'i'. This is because the Turkish issue ( 'I' <> uppercase ('i') )
~ 3. Replace changes in font between normal and bold such as
~ 4. Remove references to the output function that are only attempting to
~ 5. Correct the syntax of the pdf creation method to make calls to the $pdf->Output($_SESSION['DatabaseName'] . '_' .'ReportName_' . date('Y-m-d').'.pdf','I');
~ 6. Comment out the html header code (Javier: why not delete it??)
~ 7. Where previously we used the CVS $Revsion substitution variable this is not available in svn and we need to change it to $Id inside the existing comment
~ 8. Add the line $pdf->__destruct() after the $pdf->Output() call to free memory
~ 3. Replace changes in font between normal and bold such as
~ 4. Remove references to the output function that are only attempting to
~ 5. Correct the syntax of the pdf creation method to make calls to the $pdf->Output($_SESSION['DatabaseName'] . '_' .'ReportName_' . date('Y-m-d').'.pdf','I');
~ 6. Comment out the html header code (Javier: why not delete it??)
~ 7. Where previously we used the CVS $Revsion substitution variable this is not available in svn and we need to change it to $Id inside the existing comment
~ 8. Add the line $pdf->__destruct() after the $pdf->Output() call to free memory
Deletions:
~ 2. Ensure addInfo calls have capitalised 'I' not lower case 'i'
~ 3. Remove references to the output function that are only attempting to
~ 4. Correct the syntax of the pdf creation method to make calls to the $pdf->Output($_SESSION['DatabaseName'] . '_' .'ReportName_' . date('Y-m-d').'.pdf','I');
~ 5. Comment out the html header code (Javier: why not delete it??)
~ 6. Where previously we used the CVS $Revsion substitution variable this is not available in svn and we need to change it to $Id inside the existing comment
~ 7. Add the line $pdf->__destruct() after the $pdf->Output() call to free memory
Additions:
Javier has got things working with TCPDF. Now, to do things better and prepare WebERP to the stage where papersize may be user defined, all PDFs need to be modified slightly:
Deletions:
Additions:
TCPDF class allows CID fonts to be used (visit http://www.civicom.eu/cuestore/pdf-cidfonts.htm for details) - basic CID fonts are available in acrobat reader that will allow utf-8 pdfs to be produced without having to embed (bundle) the excessively large fonts within the pdf which defeat the webERP goal of enabling the system to run in very low bandwidth environments.
Deletions:
Additions:
TCPDF class allows CID fonts to be used (visit http://www.civicom.eu/cuestore/pdf-cidfonts.htm for details) - basic CID fonts are available in acrobat reader that will allow utf-8 pdfs to be produced without having to bundle the excessively large fonts withe the pdf which defeat the webERP goal of enabling the system to run in very low bandwidth environments.
Deletions:
Additions:
~ 7. Add the line $pdf->__destruct() after the $pdf->Output() call to free memory
Additions:
** PDF Scripts That Make Use of class.pdf.php directly (7 scripts) **
++InventoryPlanning.php: Javier++
++InventoryPlanningPrefSupplier.php: Javier++
++MailInventoryValuation.php: Javier++
++PrintCustOrder.php: Javier++
++PrintCustTrans.php: Javier++
++PrintCustTransPortrait.php: Javier++
SalesAnalRepts.php - SalesAnalisis_UserDefined.php - PDFSalesAnalysis.inc - PDFSalesAnalHeader.inc
** PDF Scripts That Make Use of PDFStarter.php (47 scripts) **
++InventoryPlanning.php: Javier++
++InventoryPlanningPrefSupplier.php: Javier++
++MailInventoryValuation.php: Javier++
++PrintCustOrder.php: Javier++
++PrintCustTrans.php: Javier++
++PrintCustTransPortrait.php: Javier++
SalesAnalRepts.php - SalesAnalisis_UserDefined.php - PDFSalesAnalysis.inc - PDFSalesAnalHeader.inc
** PDF Scripts That Make Use of PDFStarter.php (47 scripts) **
Deletions:
Additions:
** PDF Scripts That Make use of PDFStarter.php (47 scripts) **
Deletions:
Additions:
++AgedDebtors.php: Javier++
Deletions:
Additions:
TCPDF class allows CID fonts to be used - basic CID fonts are available in acrobat reader that will allow utf-8 pdfs to be produced without having to bundle the excessively large fonts withe the pdf which defeat the webERP goal of enabling the system to run in very low bandwidth environments.
++MRPPlannedWorkOrders.php: Phil++
++MRPPlannedWorkOrders.php: Phil++
Deletions:
The existing FPDF class developed by Olivier Plathey is lbeing replaced by the TCPDF class which was a development of FPDF by Nicola Asuni. The TCPDF class allows CID fonts to be used - basic CID fonts are available in acrobat reader that will allow utf-8 pdfs to be produced without having to bundle the excessively large fonts withe the pdf which defeat the webERP goal of enabling the system to run in very low bandwidth environments.
MRPPlannedWorkOrders.php:
Additions:
~ 6. Where previously we used the CVS $Revsion substitution variable this is not available in svn and we need to change it to $Id inside the existing comment
Additions:
to turn on bold type face in the default font and replace the following lines:
Deletions:
Additions:
~ 2. Replace changes in font between normal and bold such as
%%$pdf->selectFont('./fonts/Helvetica-Bold.afm');%%
to
%%$pdf->setFont('','B');%%
to turn on bold type face in the default font and
%%$pdf->selectFont('./fonts/Helvetica.afm');%%
to
%%$pdf->setFont('','');%%
to turn off bold type face in the default font
++GLTagProfit_Loss.php: Phil++
++GLTrialBalance.php: Phil++
++InventoryQuantities.php: Phil++
++InventoryValuation.php: Phil++
++MRPPlannedPurchaseOrders.php: Phil++
%%$pdf->selectFont('./fonts/Helvetica-Bold.afm');%%
to
%%$pdf->setFont('','B');%%
to turn on bold type face in the default font and
%%$pdf->selectFont('./fonts/Helvetica.afm');%%
to
%%$pdf->setFont('','');%%
to turn off bold type face in the default font
++GLTagProfit_Loss.php: Phil++
++GLTrialBalance.php: Phil++
++InventoryQuantities.php: Phil++
++InventoryValuation.php: Phil++
++MRPPlannedPurchaseOrders.php: Phil++
Deletions:
GLTrialBalance.php:
InventoryQuantities.php:
InventoryValuation.php:
MRPPlannedPurchaseOrders.php:
Additions:
get the length of the pdf - change the code to bail out of the pdf creation process at the point when we know if there are no records returned from the sql using the DB_num_rows($DB_result)=0 test
~ 5. Comment out the html header code (Javier: why not delete it??)
~ 5. Comment out the html header code (Javier: why not delete it??)
Deletions:
~ 5. Comment out the html header code - why not delete it??
Additions:
~ 1. Put $FontSize assignments after $pdf->addInfo calls - this is probably not necessary but hey nice to be consistent.
~ 2. Ensure addInfo calls have capitalised 'I' not lower case 'i'
get the length of the pdf - change the code to bail out of the pdf creation process at the point when we know if there are no records returned from the sql using the DB_num_rows ($DB_result) test
~ 4. Correct the syntax of the pdf creation method to make calls to the $pdf->Output($_SESSION['DatabaseName'] . '_' .'ReportName_' . date('Y-m-d').'.pdf','I');
~ 2. Ensure addInfo calls have capitalised 'I' not lower case 'i'
get the length of the pdf - change the code to bail out of the pdf creation process at the point when we know if there are no records returned from the sql using the DB_num_rows ($DB_result) test
~ 4. Correct the syntax of the pdf creation method to make calls to the $pdf->Output($_SESSION['DatabaseName'] . '_' .'ReportName_' . date('Y-m-d').'.pdf','I');
Deletions:
probably not necessary but hey nice to be consistent.
~ 2. Ensure addInfo calls have capitalised 'I' not lower case 'i'
get the length of the pdf - change the code to bail out of the pdf
creation process at the point when we know if there are no records
returned from the sql using the DB_num_rows ($DB_result) test
~ 4. Correct the syntax of the pdf creation method to make calls to the $pdf->Output( $_SESSION['DatabaseName'] . '_' .'ReportName_' . date('Y-m-d').'.pdf','I');
Additions:
~ 4. Correct the syntax of the pdf creation method to make calls to the $pdf->Output( $_SESSION['DatabaseName'] . '_' .'ReportName_' . date('Y-m-d').'.pdf','I');
Deletions:
Output( $_SESSION['DatabaseName'] . '_' .'ReportName_' . date('Y-m-d').'.pdf','I');
Additions:
returned from the sql using the DB_num_rows ($DB_result) test
Deletions:
Additions:
Output( $_SESSION['DatabaseName'] . '_' .'ReportName_' . date('Y-m-d').'.pdf','I');
Deletions:
date('Y-m-d').'.pdf','I');