Bug 89623

Summary: SVG images used for Headers and Footers in Calc are being converted to a raster preview and are not rendered as vector for print or export
Product: LibreOffice Reporter: Alex <alex>
Component: CalcAssignee: Not Assigned <libreoffice-bugs>
Status: NEW ---    
Severity: enhancement CC: llnews, raal, robinson.libreoffice, vsfoote, xiscofauli
Priority: medium    
Version: unspecified   
Hardware: All   
OS: All   
See Also: https://bugs.documentfoundation.org/show_bug.cgi?id=138653
https://bugs.documentfoundation.org/show_bug.cgi?id=51510
Whiteboard:
Crash report or crash signature: Regression By:
Bug Depends on:    
Bug Blocks: 88278, 105584, 109087    
Attachments: ODS Exported to PDF - SVG Test of Header, Document Body and Footer
An SVG used in the PDF example
ODS with SVG image background in header, same SVG inserted to cell

Description Alex 2015-02-24 16:51:08 UTC
Feature Request: Format >> Page >> Header/Footer (tab) - Full SVG support

Using the 'More...' button >> Background (tab) >> As 'Graphic' will allow you to import an SVG file but it saves/pdf exports as a low resolution bitmap.

Feature would be useful for:
  - Professional corporate branding
  - Graphic designers
  - PDF export
Comment 1 raal 2015-02-24 17:10:15 UTC
Hello ,

Thank you for reporting the bug. Can you see if bug 71068 is similar to your problem so that I can mark your report as a duplicate of it? (Later bugs are generally marked as duplicates of earlier bugs).
Comment 2 Alex 2015-02-25 12:24:55 UTC
Hi,
I did have a look and clearly I wasn't typing in the right thing, apologies. I didn't even consider it to be a bug just a lacking feature.
Comment 3 Robinson Tryon (qubit) 2015-02-25 20:26:53 UTC
(In reply to raal from comment #1)
> Can you see if bug 71068 is similar to your
> problem so that I can mark your report as a duplicate of it?

(In reply to Alex from comment #2)
> I didn't even consider it to be a bug just a lacking feature.

Alex: It sounds like you're saying this is different from bug 71068, is that correct?

Status -> NEEDINFO
Comment 4 Alex 2015-02-26 11:22:51 UTC
(In reply to Robinson Tryon (qubit) from comment #3)
> (In reply to raal from comment #1)
> > Can you see if bug 71068 is similar to your
> > problem so that I can mark your report as a duplicate of it?
> 
> (In reply to Alex from comment #2)
> > I didn't even consider it to be a bug just a lacking feature.
> 
> Alex: It sounds like you're saying this is different from bug 71068, is that
> correct?
> 
> Status -> NEEDINFO

Hi

Sorry for the delay, you're right. SVG is supported in the body of the document and works with PDF export too.

However use of SVG in 'header/footer' results in a low resolution bitmap image both in the ods file and exported pdf. Full SVG support here would be very useful from a design and formatting perspective.
Comment 5 raal 2015-02-26 12:38:08 UTC
Hello Alex,
please attach testing document.
Thank you
Comment 6 Alex 2015-02-26 15:59:00 UTC
Created attachment 113712 [details]
ODS Exported to PDF - SVG Test of Header, Document Body and Footer

Since 4.4.1.2 I can't send an ODS file with the header & footer using a SVG due to the following bug 89614 (https://bugs.documentfoundation.org/show_bug.cgi?id=89614). I can however send an exported PDF of whats happening.
Comment 7 raal 2015-02-27 08:11:07 UTC
Please attach svg file. I tried but I doesn't see bug, probably I have not good svg example. In your pdf file is bug obvious.  Thank you
Comment 8 Alex 2015-02-27 14:11:41 UTC
Created attachment 113751 [details]
An SVG used in the PDF example
Comment 9 Alex 2015-02-27 14:13:40 UTC
(In reply to Alex from comment #8)
> Created attachment 113751 [details]
> An SVG used in the PDF example

Hi

Sorry, just to make sure you're trying the following:
1. Format >> Page >> Header/Footer (tab) >> More... (button) >> Background (tab) >> As: Graphic and select an SVG file
2. This step is so you can see more of the graphic: Format >> Page >> Header/Footer (tab) >> Edit (button) >> Press enter 10-15 times in 'Center' box 

What would be ideal if there was a button to insert an SVG in the "Format >> Page >> Header/Footer (tab) >> Edit (button)" area

Thanks
Comment 10 QA Administrators 2015-09-04 02:55:59 UTC Comment hidden (obsolete)
Comment 11 Laurent Larsonneur 2015-10-02 14:42:38 UTC
Hello,

This is my first contribution here, so please excuse if I do anything inapropriate.
Don't hesitate to write me if relevant.

Just to let you know that I encouter the same problem :

I need to export invoices and quotations in PDF, including vector logos in the headers.
However, when I try to export a PDF of a Calc file including an SVG import as header background, it becomes pixels.
So it is rasterized and does not preserve the vector format of the logos.
Am I doing something wrong ?
Do I miss an option in the PDF export ?

I am using :
LibreOffice Evolution 5.0.1.2 (x64) + french language pack
Windows Seven (Integral Edition) x64 + Service Pack 1

We have also noted the same problem with LibreOffice Stable on MacOS (I am currently trying to get the details of versions).

How can I help ?


Laurent
Comment 12 V Stuart Foote 2015-10-04 19:34:27 UTC
Created attachment 119276 [details]
ODS with SVG image background in header, same SVG inserted to cell

Confirming. In Calc SVG image inserted as background graphic is rendered as raster for the Header.  From Format -> Page -> Header: More -> Background: Graphic

The SVG, see attachment 110764 [details], was created for bug 64276 and is a corrected SVG--removing off canvas elements--of attachment 78926 [details] to same issue.