Re: Users - order pdf garbled

Posted by Daniel Kunkel on
URL: http://ofbiz.116.s1.nabble.com/Users-order-pdf-garbled-tp137307p137313.html

Hi

I would have, but we ended up removing the graphic completely, hard
coding our address, changing margins and reorganizing the layout...  so
I pretty much guessed it would be worthless to the community.

However, in the name of sharing changes in case they are a good start
for another's efforts...

orderpdf.patch is attached.


On Wed, 2006-02-08 at 10:33 -0800, Si Chen wrote:

> Daniel,
>
> Can  you send your changes in as a patch?
>
> Also, if Hans is reading this--I think the logo is not working either.
>
> Si
>
> Daniel Kunkel wrote:
>
> >Hi Mark
> >
> >We had the same problem, and ended up modifying the source file to meet
> >our needs.
> >
> >Is this the same issue?  If so...  does this fix it?
> >
> >==
> >
> >An excerpt from a conversation with Hans Bakker:
> >
> >  
> >
> >>>This can be corrected fairly easily:
> >>>in: companyHeader.fo.ftl  on line 29 change the 'height' setting.
> >>>
> >>>
> >>>to make the order more readable change orderView.fo.ftl around line
> >>>      
> >>>
> >50:
> >  
> >
> >>>                <fo:table-cell>
> >>>${screens.render
> >>>      
> >>>
> >("component://order/widget/ordermgr/OrderPrintForms.xml#C
> >  
> >
> >>>ompanyLogo")} </fo:table-cell>
> >>>                <fo:table-cell/>   <!-- this line is added,add more
> >>>      
> >>>
> >if
> >  
> >
> >>>req --> <fo:table-cell>
> >>>                  <fo:table>
> >>>
> >>>Please note that the company header is also used to create the pdf
> >>>      
> >>>
> >of the
> >  
> >
> >>>invoice in the new accounting system.
> >>>
> >>>regards,
> >>>Hans
> >>>
> >>>On Thursday 12 January 2006 15:58, Daniel Kunkel wrote:
> >>>      
> >>>
> >>>>Hi Hans
> >>>>
> >>>>Been working with Si, and he suggested I talk with you about a bug
> >>>>        
> >>>>
> >in> > the order pdf generator...
> >  
> >
> >>>>Took me a while to track it down to this, but:
> >>>>        
> >>>>
> >>>>>This line:
> >>>>>
> >>>>>                         ${screens.render
> >>>>>("component://order/widget/order
> >>>>>mgr/OrderPrintForms.xml#CompanyLogo")}
> >>>>>
> >>>>>
> >>>>>in the pdf order maker creates a few issues...
> >>>>>
> >>>>>1.) The graphic is HUGE for us, and I couldn't figure out how to
> >>>>>          
> >>>>>
> >size
> >  
> >
> >>>>it
> >>>>
> >>>>        
> >>>>
> >>>>>back.
> >>>>>
> >>>>>2.) It includes "not found" or company not found in an area near
> >>>>>          
> >>>>>
> >the
> >  
> >
> >>>>>Sales or Purchase Order text...
> >>>>>
> >>>>>
> >>>>>The BioWaves logo is a little 200 pixel x 60 pixel graphic...
> >>>>>          
> >>>>>
> >and yet
> >  
> >
> >>>>>it is being spread over more than half the page.   I went in and
> >>>>>looked at the pixel per inch setting...  It was 100,  => 2
> >>>>>          
> >>>>>
> >inches...
> >  
> >
> >>>>>and I even went and set it to 300  (0.67 inches) with no change
> >>>>>          
> >>>>>
> >in> > > the pdf.
> >
> >
> >...
> >
> >
> >
> >
> >On Wed, 2006-02-08 at 09:12 -0500, Mark Mantarro wrote:
> >  
> >
> >>I’m on SVN 6494 and the order pdf layout has been garbled.  If you
> >>open an order in PDF it overlays the company address and the order
> >>header info in the upper right corner.  I updated orderView.fo.ftl to
> >>the newest SVN and it still exists.  Still not too comfortable with
> >>this .ftl code to know how to change.  This also happens with the demo
> >>data….
> >>
> >>
> >>
> >>Any thoughts,
> >>
> >>
> >>
> >>Mark
> >>
> >>
> >>
> >>
> >>
> >>
> >> _______________________________________________
> >>Users mailing list
> >>[hidden email]
> >>http://lists.ofbiz.org/mailman/listinfo/users
> >>    
> >>
> >
> >
> >_______________________________________________
> >Users mailing list
> >[hidden email]
> >http://lists.ofbiz.org/mailman/listinfo/users
> >
> >  
> >
>  
> _______________________________________________
> Users mailing list
> [hidden email]
> http://lists.ofbiz.org/mailman/listinfo/users

 
_______________________________________________
Users mailing list
[hidden email]
http://lists.ofbiz.org/mailman/listinfo/users

orderpdf.patch (5K) Download Attachment