Revision history for Utf8Pdf


Revision [1720]

Last edited on 2009-11-26 03:50:52 by JavierDeLorenzo
Additions:
~ ===8=== Add the line %%$pdf->__destruct();%% after the %%$pdf->OutputD($_SESSION['DatabaseName'] . '_' .'ReportName_' . date('Y-m-d').'.pdf');%% to free memory
Deletions:
~ ===8=== Add the line %%$pdf->__destruct()%% after the %%$pdf->OutputD($_SESSION['DatabaseName'] . '_' .'ReportName_' . date('Y-m-d').'.pdf');%% to free memory


Revision [1719]

Edited on 2009-11-26 00:59:10 by JavierDeLorenzo
Additions:
SalesAnalRepts.php - SalesAnalisis_UserDefined.php (Outputs the PDF) - PDFSalesAnalysis.inc (creates PDF) - PDFSalesAnalPageHeader.inc
Deletions:
SalesAnalRepts.php - SalesAnalisis_UserDefined.php - PDFSalesAnalysis.inc - PDFSalesAnalHeader.inc


Revision [1718]

Edited on 2009-11-23 00:44:27 by PhilDaintree
Additions:
++DebtorsAtPeriodEnd.php: Uldis++
++GLBalanceSheet.php: Uldis++
Deletions:
DebtorsAtPeriodEnd.php:
GLBalanceSheet.php:


Revision [1717]

Edited on 2009-11-23 00:16:18 by PhilDaintree
Additions:
++PDFOrdersInvoiced.php: Uldis++
Deletions:
PDFOrdersInvoiced.php:


Revision [1716]

Edited on 2009-11-23 00:15:13 by PhilDaintree
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++
Deletions:
PDFLowGP.php:
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:


Revision [1715]

Edited on 2009-11-22 15:15:16 by PhilDaintree
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;
}
%%
Deletions:
~ ===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) { %%


Revision [1714]

Edited on 2009-11-22 15:11:43 by PhilDaintree
Additions:
In the utf8 branch of SVN:


Revision [1713]

Edited on 2009-11-22 15:10:37 by PhilDaintree
Additions:
~ ===8=== Add the line %%$pdf->__destruct()%% after the %%$pdf->OutputD($_SESSION['DatabaseName'] . '_' .'ReportName_' . date('Y-m-d').'.pdf');%% to free memory
Deletions:
~ ===8=== Add the line %%$pdf->__destruct()%% after the $pdf->OutputD($_SESSION['DatabaseName'] . '_' .'ReportName_' . date('Y-m-d').'.pdf');%% to free memory


Revision [1712]

Edited on 2009-11-22 15:10:11 by PhilDaintree
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
Deletions:
~ ===4=== Remove references to the output function that are only attempting to
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%%


Revision [1711]

Edited on 2009-11-22 01:47:58 by JavierDeLorenzo
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:
~ ===6=== Delete the html header code


Revision [1710]

Edited on 2009-11-21 18:05:48 by PhilDaintree
Additions:
++StockCheck.php: Phil ++
++StockDispatch.php: Phil ++
++SupplierBalsAtPeriodEnd.php: Phil ++
Deletions:
StockCheck.php:
StockDispatch.php:
SupplierBalsAtPeriodEnd.php:


Revision [1709]

Edited on 2009-11-21 15:49:12 by PhilDaintree
Additions:
++SuppPaymentRun.php: Phil++
++SuppPriceList.php: Phil ++
++Tax.php: Phil++
Deletions:
SuppPaymentRun.php:
SuppPriceList.php:
Tax.php:


Revision [1708]

Edited on 2009-11-21 13:20:31 by PhilDaintree
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
Deletions:
*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.
~ ===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.


Revision [1707]

Edited on 2009-11-21 13:12:15 by PhilDaintree
Additions:
++BOMListing.php: Uldis++
Deletions:
BOMListing.php:


Revision [1706]

Edited on 2009-11-21 13:07:34 by PhilDaintree
Additions:
++BOMIndented.php: Uldis++
++BOMIndentedReverse.php: Uldis++
Deletions:
BOMIndented.php:
BOMIndentedReverse.php:


Revision [1705]

Edited on 2009-11-21 12:59:09 by PhilDaintree
Additions:
++AgedSuppliers.php: Uldis++
++BOMExtendedQty.php: Uldis++
Deletions:
AgedSuppliers.php:
BOMExtendedQty.php:


Revision [1704]

Edited on 2009-11-21 12:57:06 by PhilDaintree
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++
Deletions:
MRPReport.php:
MRPReschedules.php:
MRPShortages.php:
OutstandingGRNs.php:
PDFBankingSummary.php:
PDFChequeListing.php:
PDFCustomerList.php:
PDFDeliveryDifferences.php:
PDFDIFOT.php:
PDFGrn.php:


Revision [1703]

Edited on 2009-11-21 12:46:31 by PhilDaintree
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
Deletions:
~ ===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');
*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.


Revision [1702]

Edited on 2009-11-21 02:10:40 by JavierDeLorenzo
Additions:
*Javier*: FPDF creates PDF as strings by default but TCPDF produces the output.


Revision [1701]

Edited on 2009-11-21 02:05:03 by JavierDeLorenzo
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:
*Javier*: This is an altered version of my initial instructions, I have commented them for you to have both points of view.


Revision [1700]

Edited on 2009-11-21 01:42:52 by JavierDeLorenzo
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%%
Deletions:
~ ===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%%


Revision [1699]

Edited on 2009-11-21 01:40:59 by JavierDeLorenzo
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%%
Deletions:
~ 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%%


Revision [1698]

Edited on 2009-11-21 01:38:33 by JavierDeLorenzo
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.
Deletions:
=====Transition to UTF-8=====
====A bit of Background, review the mailing list for more====


Revision [1697]

Edited on 2009-11-21 01:33:31 by JavierDeLorenzo
Additions:
~ 8. Add the line %%$pdf->__destruct() after the $pdf->Output() call to free memory%%
Deletions:
~ 8. Add the line $pdf->__destruct() after the $pdf->Output() call to free memory


Revision [1696]

Edited on 2009-11-21 01:32:34 by JavierDeLorenzo
Additions:
====A bit of Background, review the mailing list for more====
Deletions:
====Background====


Revision [1695]

Edited on 2009-11-21 01:27:23 by JavierDeLorenzo
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.
Deletions:
*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*: Following is the list that I have been making during these last months, it has three parts.


Revision [1694]

Edited on 2009-11-21 01:17:49 by JavierDeLorenzo
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++
Deletions:
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


Revision [1693]

Edited on 2009-11-21 00:57:03 by JavierDeLorenzo
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
Deletions:
~ 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'. This is because the Turkish issue ( 'I' <> uppercase ('i') )


Revision [1692]

Edited on 2009-11-21 00:34:47 by JavierDeLorenzo
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
Deletions:
~ 2. Replace changes in font between normal and bold such as
~ 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


Revision [1691]

Edited on 2009-11-21 00:31:26 by JavierDeLorenzo
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:
Javier has got things to the stage where all PDFs now need to be modified slightly to work with TCPDF:


Revision [1690]

Edited on 2009-11-21 00:26:59 by JavierDeLorenzo
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:
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.


Revision [1689]

Edited on 2009-11-21 00:23:27 by JavierDeLorenzo
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:
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.


Revision [1688]

Edited on 2009-11-21 00:04:46 by PhilDaintree
Additions:
~ 7. Add the line $pdf->__destruct() after the $pdf->Output() call to free memory


Revision [1687]

Edited on 2009-11-20 23:29:52 by JavierDeLorenzo
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) **
Deletions:
** PDF Scripts That Make use of PDFStarter.php (47 scripts) **


Revision [1686]

Edited on 2009-11-20 23:19:10 by JavierDeLorenzo
Additions:
** PDF Scripts That Make use of PDFStarter.php (47 scripts) **
Deletions:
**Script Name**


Revision [1685]

Edited on 2009-11-20 23:17:28 by JavierDeLorenzo
Additions:
++AgedDebtors.php: Javier++
Deletions:
++AgedDebtors.php: Uldis++


Revision [1684]

Edited on 2009-11-20 21:06:55 by PhilDaintree
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++
Deletions:
This is the initiative of Javier de Lorenzo-Cáceres - this will enable all languages to use webERP from a single server serving all languages. Languages that require utf-8 pdfs will be able to produce reports which is currently not available using the ISO character sets for many languages including Russian, Turkish, Arabic etc.
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:


Revision [1683]

Edited on 2009-11-20 20:31:06 by PhilDaintree
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


Revision [1682]

Edited on 2009-11-20 20:29:10 by PhilDaintree
Additions:
to turn on bold type face in the default font and replace the following lines:
Deletions:
to turn on bold type face in the default font and


Revision [1681]

Edited on 2009-11-20 20:28:19 by PhilDaintree
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++
Deletions:
GLTagProfit_Loss.php:
GLTrialBalance.php:
InventoryQuantities.php:
InventoryValuation.php:
MRPPlannedPurchaseOrders.php:


Revision [1680]

Edited on 2009-11-20 17:48:27 by PhilDaintree
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??)
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) test
~ 5. Comment out the html header code - why not delete it??


Revision [1679]

Edited on 2009-11-20 17:34:06 by PhilDaintree
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');
Deletions:
~ 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');


Revision [1678]

Edited on 2009-11-20 17:32:56 by PhilDaintree
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:
~ 4. Correct the syntax of the pdf creation method to make calls to the
Output( $_SESSION['DatabaseName'] . '_' .'ReportName_' . date('Y-m-d').'.pdf','I');


Revision [1677]

Edited on 2009-11-20 17:32:16 by PhilDaintree
Additions:
returned from the sql using the DB_num_rows ($DB_result) test
Deletions:
returned from the sql using the DB_num_rows($DB_result)==0 test


Revision [1676]

Edited on 2009-11-20 17:31:24 by PhilDaintree
Additions:
Output( $_SESSION['DatabaseName'] . '_' .'ReportName_' . date('Y-m-d').'.pdf','I');
Deletions:
$pdf->Output( $_SESSION['DatabaseName'] . '_' .'ReportName_' .
date('Y-m-d').'.pdf','I');


Revision [1675]

The oldest known version of this page was created on 2009-11-20 17:30:21 by PhilDaintree
Valid XHTML :: Valid CSS: :: Powered by WikkaWiki