Bug 44727 - Dash and dot information lost on PDF import
Summary: Dash and dot information lost on PDF import
Status: RESOLVED INVALID
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Draw (show other bugs)
Version:
(earliest affected)
3.4.4 release
Hardware: x86 (IA32) Windows (All)
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-01-12 08:58 UTC by mathog
Modified: 2012-08-31 10:07 UTC (History)
2 users (show)

See Also:
Crash report or crash signature:


Attachments
Example with dotted lines (7.54 KB, image/svg+xml)
2012-01-12 08:58 UTC, mathog
Details
Screen shot 3.4.4 release, dot/dash gone, arrow heads wrong, stray black rectangle (7.04 KB, image/png)
2012-01-12 09:02 UTC, mathog
Details
screen shot 3.5.0b2. Image. Looks better, but stray rectangle still present. (12.25 KB, image/png)
2012-01-12 09:03 UTC, mathog
Details
PDF which loses dots/dashes on import into LODraw (16.55 KB, application/pdf)
2012-01-12 09:13 UTC, mathog
Details

Note You need to log in before you can comment on or make changes to this bug.
Description mathog 2012-01-12 08:58:21 UTC
Created attachment 55494 [details]
Example with dotted lines

Dash and dot information is lost on SVG import.  In the example the arrow heads also do something funky, ending up in the upper left hand corner.  Also there is a stray black rectangle, not sure where that came from.  Example displays properly in Firefox.
Comment 1 mathog 2012-01-12 09:02:17 UTC
Created attachment 55495 [details]
Screen shot 3.4.4 release, dot/dash gone, arrow heads wrong, stray black rectangle
Comment 2 mathog 2012-01-12 09:03:36 UTC
Created attachment 55496 [details]
screen shot 3.5.0b2.  Image.  Looks better, but stray rectangle still present.
Comment 3 mathog 2012-01-12 09:13:05 UTC
Created attachment 55498 [details]
PDF which loses dots/dashes on import into LODraw

Rats, I messed up the first two, that was SVG import, not PDF, import.  Sorry. 

Trying again.  The attachment is the PDF saved from inkscape.  When opened in LODraw 3.4.4 the lines are solid (dots and dashes lost), but everything else is OK.
Comment 4 mathog 2012-01-12 09:15:57 UTC
Imports with the same problem in 3.5.0b2.  Screen shot not attached as it looks like the one from 3.4.4.
Comment 5 mathog 2012-01-12 09:25:38 UTC
This is a specific problem peeled out of bug 43806
Comment 6 mathog 2012-01-13 15:21:05 UTC
I just noticed that if after loading the PDF one zooms to a very high magnification on the lines it can be seen that these are not solid after all. In all three cases it is composed of a dashed line, with very fine dashes.  All three examples have the same spacing on their dashes, although clearly that was not the case in the original PDF.  The finest line is .03", the dash spacing is about half that, so roughly .015".  Is that some special value, for instance, the finest possible dash spacing?
Comment 7 mathog 2012-01-13 15:37:05 UTC
Ah, here's another clue.  

Select one of the lines, right click, and pick "line".  The "Style" box is solid blue.  What it should be is an example drawing on the left side (for instance, a straight black line on a white background) and some black text on a blue background on the right (for instance, "continuous".)  Lastly, the example field, the large rectangle at the bottom of the line dialog is completely empty, whereas it should have examples of straight and bent lines with the dash pattern. Since none of these elements are shown properly, whatever variable this maps to presumably has an invalid value, possibly indexing off into who knows what piece of memory.  An invalid index might also explain why the line is in fact dashed, at a particular dash size, when the program seemingly has no idea what it really should be.

One of the original lines had "dot dash dot dash" for the pattern.  Inkscape (the original program) has a much wider array of dotted/dashed patterns than LODraw does.  This one doesn't exist in the LODraw list of patterns.  All three of the patterns used in the example made it into the PDF OK, but not from the PDF into LODraw.
Comment 8 Regina Henschel 2012-01-18 11:44:19 UTC
Please try with LO3.5. The svg-features have been enhanced.
Comment 9 mathog 2012-01-18 12:57:16 UTC
I have tried 3.5.0b2 and the input looks fine.  However, it has a much worse problem - it always converts the SVG to a bitmap, rather than keeping it as a collection of objects.  So SVG insert/open is completely useless in 3.5.0b2 for my purposes.  See bug 44702.
Comment 10 mathog 2012-01-20 11:07:07 UTC
Sorry, this bug was supposed to be about PDF import and I went off the tracks a bit and mixed it up with SVG issues.  I changed the title of the bug to try to (partially) remedy this.

In 3.5.0rc1 dots/dashes are not imported properly from a PDF file.  The description of the situation in comment 7 still applies.
Comment 11 Florian Reisinger 2012-08-14 14:04:50 UTC
Dear bug submitter!

Due to the fact, that there are a lot of NEEDINFO bugs with no answer within the last six months, we close all of these bugs.

To keep this message short, more infos are available @ https://wiki.documentfoundation.org/QA/NeedinfoClosure#Statement

Thanks for understanding and hopefully updating your bug, so that everything is prepared for developers to fix your problem.

Yours!

Florian
Comment 12 Florian Reisinger 2012-08-14 14:05:37 UTC
Dear bug submitter!

Due to the fact, that there are a lot of NEEDINFO bugs with no answer within the last six months, we close all of these bugs.

To keep this message short, more infos are available @ https://wiki.documentfoundation.org/QA/NeedinfoClosure#Statement

Thanks for understanding and hopefully updating your bug, so that everything is prepared for developers to fix your problem.

Yours!

Florian
Comment 13 Florian Reisinger 2012-08-14 14:10:03 UTC
Dear bug submitter!

Due to the fact, that there are a lot of NEEDINFO bugs with no answer within the last six months, we close all of these bugs.

To keep this message short, more infos are available @ https://wiki.documentfoundation.org/QA/NeedinfoClosure#Statement

Thanks for understanding and hopefully updating your bug, so that everything is prepared for developers to fix your problem.

Yours!

Florian
Comment 14 Florian Reisinger 2012-08-14 14:12:02 UTC
Dear bug submitter!

Due to the fact, that there are a lot of NEEDINFO bugs with no answer within the last six months, we close all of these bugs.

To keep this message short, more infos are available @ https://wiki.documentfoundation.org/QA/NeedinfoClosure#Statement

Thanks for understanding and hopefully updating your bug, so that everything is prepared for developers to fix your problem.

Yours!

Florian