mirror of
https://github.com/LaCasemate/fab-manager.git
synced 2025-02-19 13:54:25 +01:00
multilingual watermark on invoices
This commit is contained in:
parent
c27345bf46
commit
e35c50e42b
BIN
app/pdfs/data/watermark-en.png
Normal file
BIN
app/pdfs/data/watermark-en.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 12 KiB |
BIN
app/pdfs/data/watermark-es.png
Normal file
BIN
app/pdfs/data/watermark-es.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 14 KiB |
Before Width: | Height: | Size: 14 KiB After Width: | Height: | Size: 14 KiB |
BIN
app/pdfs/data/watermark-pt.png
Normal file
BIN
app/pdfs/data/watermark-pt.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 14 KiB |
BIN
app/pdfs/data/watermark.xcf
Normal file
BIN
app/pdfs/data/watermark.xcf
Normal file
Binary file not shown.
@ -340,7 +340,7 @@ class PDF::Invoice < Prawn::Document
|
||||
|
||||
transparent(0.1) do
|
||||
rotate(45, origin: [0, 0]) do
|
||||
image "#{Rails.root}/app/pdfs/data/watermark.png", at: [90, 150]
|
||||
image "#{Rails.root}/app/pdfs/data/watermark-#{I18n.locale}.png", at: [90, 150]
|
||||
end
|
||||
end
|
||||
end
|
||||
|
Loading…
x
Reference in New Issue
Block a user