Unwanted line in pdf

Topics: Developer Forum, Project Management Forum, User Forum
Jul 25, 2009 at 9:27 AM
Edited Jul 25, 2009 at 9:30 AM

Hi,

im use phpexcel to create pdf file its working fine but problum is that i got one line at the top of pdf file and also i cant align whold pdf in center

and also i want to give border line to saome invoice table but the problum is that if use setgridlines(false) that time i cant able to give border to some cell

i also check in downloaded fresh copy but also its given one line so please give me solutions

Developer
Jul 25, 2009 at 1:01 PM

>> but problum is that i got one line at the top of pdf file

Is it a border line or a blank line. How can your example be reproduced?

>> also i cant align whold pdf in center

TCPDF, the underlying package for generating the PDF, has limited support for alignment. Hopefully it will improve. There is a feature request:
http://sourceforge.net/tracker/index.php?func=detail&aid=2668020&group_id=128076&atid=710535

>> i cant able to give border to some cell

TCPDF has limited support for borders. Hopefully, this will also get fixed. There is a feature request:
http://sourceforge.net/tracker/index.php?func=detail&aid=2747689&group_id=128076&atid=710535

Jul 25, 2009 at 1:21 PM

thanks for  reply but my problum  is that i create excel file for the invoice there is no problum but same invoice also want in pdf format for this i used below code to generate pdf invoice

and i cant able to give richtext format in excel file i use alll the file which need for the give richtext format also to solved i seen many times example's give in your code as well refer the document for the solve this but i cant able so i want help from your side

// redirect output to client browser
header("Pragma: public");
header("Expires: 0");
header("Cache-Control: must-revalidate, post-check=0, pre-check=0");
header("Content-Type: application/force-download");
header("Content-Type: application/octet-stream");
header("Content-Type: application/download");;
header("Content-Disposition: attachment;filename=file name.pdf");
header("Content-Transfer-Encoding: binary ");

$objWriter = PHPExcel_IOFactory::createWriter($objPHPExcel,'PDF');
$objWriter->save('php://output');

and a the end of my code i use this for the generate a pdf file all the working fine but when the pdf generate that time i seen one black line in top of the pdf file this line also in the main downloaded code if u dont mine just check it

for this i run the 21pdf.php file

and i check  to create blank pdf no any data that time also i get that line

and i use this for the generate invioce so i need border around the some data for the giving nice formating to my invoice

 

 

 

Developer
Jul 25, 2009 at 2:06 PM

>> i seen one black line in top of the pdf file

Now I know what you mean. This has been fixed:
http://phpexcel.codeplex.com/WorkItem/View.aspx?WorkItemId=9884

Can you try with latest source code:
http://phpexcel.codeplex.com/SourceControl/ListDownloadableCommits.aspx

Jul 25, 2009 at 2:10 PM

many thanks for the solving it