How do I change the print/PDF receipt layout?

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
13 years ago
Any way to add a header?
13 years ago
v1.6 allows logo uploading


I made a lot of modifications to my v1.5 invoice and created a deleivery note also - see:
https://www.nopcommerce.com/boards/t/3783/pdf-delivery-note-v15.aspx


if you examine the delivery note code, you will see how a banner image is inserted into the top of the pdf (i used the same code on my invoice pdf)
13 years ago
I've been searching through the admin area (v1.6), and I just can't find where to change the logo in the PDF. Can you help me?
13 years ago
look in configuration -->global settings-->  media tab   :)
13 years ago
haydie wrote:
look in configuration -->global settings-->  media tab   :)


Hi Hayden,

Is there any requirement for uploading logo  on PDF invoice i mean picture size / dimensions  / Any specific image format ?
13 years ago
.jpg .png .gif - one other, i forget which

as for size, by default the image is placed in a table cell which takes up the left half of the page

i made some alterations so that my banner image would be placed across the whole top of the page.

best thing to do i guess is experiment and see the results

- hayden
13 years ago
For those of us on medium trust hosts who cant currently generate any test PDF's; any guidelines for size of the logo for the PDF? 125x125 or 300x300? I'm flying blind until I get this fixed but I want a logo on the PDF's.
Thanks

BTW, I am working on this PDF medium trust issue getting fixed for my two 1.6 stores and creating a new US/Canada freight shipping module for R&L Carriers; are those things Andrei would be interested in having loaded to this site?

I'm paying an outside firm to do the work, but I would be happy to slap an open source license on the shipping module and have it posted for download here for anyone interested. The PDF fix will just be a re-compiled NopCom 1.6 source code, so it would obviously already be open source  :)
Also, I am working on creating documentation for a 'how to' on generating an optimized directory for your website, I'll post a link to that too once it is complete.
13 years ago
Not sure what you mean by the medium trust host thing.  But for the PDF logo, here's some info for you:

The logo is about 72 pix/in starting from a point in the very upper left hand corner.  It writes the logo on top of the rest of the PDF.  That being said, the rest of the PDF doesn't move for the logo.  There's a block of text on the right side of the page.  You can't be too long horizontally or you'll overwrite it.  There's are text below, so you can't be too long vertically.

I don't have a template or guidelines, so you'll have to make an image and be carefully on text size and detail so it isn't pixelated.  Then, upload it and print out a PDF.  After looking at the results, you'll be able to judge adding margins and adjusting text size and detail.
13 years ago
NewYorkWedge,
I appreciate the info, but I guess I'll have to wait until the security issue with PDf generation on medium hosts has been resolved to set this up. FYI, on medium trust web hosting you can't generate any PDF's. NopCom runs fine, but the PDF engine requires Full Trust hosting. You have to recompile the PDF engine source code and then install it back into your NopCom server. For those of us who dont know squat about compiling source code, like me, I have to hire someone to do this for me.
Looks like I will have to wait to setup my PDF logo. The coder I hired is doing a bunch of things to my site, but the PDF fix is going to be done next week, I think.
Thansk anyway,
Sean
13 years ago
Is this a security setting with your web host provider or with the Nop admin console?  What host do you have?  You might just need to give the IIS user account "Network Service" write permissions.  The Nop program probably can't write a file into the server.
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.