View Issue Details

IDProjectCategoryView StatusLast Update
0009485ScribusPDFpublic2015-11-13 18:20
ReporterLinuxworld Assigned To 
PrioritynormalSeverityfeatureReproducibilityalways
Status newResolutionopen 
Product Version1.3.8 
Summary0009485: [OCG bug] : Can not edit layer content anymore and moreover OCG's state support is broken on the js side.
DescriptionAfter adding a new Layer with a button (by the way icon rendering is buggy in the 1.3.3.14) on it, changing visibility settings from scribus and
switching back and forth to the button layer makes it impossible to edit the layer content.

I have tested this in the last windows 1.3.9svn snapshot

Steps To ReproduceI have simply added a new layer "Foreground" with a Button on it,
add some code to toggle the layer like:
================8<==============================
var docOCGs = this.getOCGs();
for (var x=0; x < docOCGs.length; x++)
{ if(docOCGs[x].name == "Foreground")
        docOCGs[x].state = !docOCGs[x].state;
}
================8<==============================
but closing the Scribus file and opening it again
made it impossible to access the content of "Foreground" layer.
Moreover, js code executes fine with no errors but layer
visibility is not taken into account. As I got working samples
of this toggle technique, that means that Scribus OCG support
is broken..maybe because bad declaration or something is missing
(see Additionnal Information).

Additional InformationOn the js side, layer state value change (I dumped its value)
but layer visibility do not toggle as it should be like
in samples provided at:
http://www.planetpdf.com/developer/article.asp?ContentID=focus_on_pdf_layers_ocg_
TagsNo tags attached.
Patch

Activities

Linuxworld

2010-11-10 11:40

reporter  

layer_test.sla (25,461 bytes)

Linuxworld

2010-11-22 21:08

reporter  

Linuxworld

2010-11-22 21:12

reporter   ~0024875

Last edited: 2010-11-22 21:18

Well, I have made to help you a comparison between the OCG canvas generated by illustrator 11.0 (working fine) and the current scribus 1.3.8.

In scribus , there is no intent, ocg creator object as it should be and in illustrator there no such print and view like in scribus.

You will see by yourself how to mix the both and make a correct bananapdflayersplit ;)

Linuxworld

2010-11-24 11:22

reporter   ~0024885

Above link was trunkated.. here is the good one:
http://www.planetpdf.com/developer/article.asp?ContentID=focus_on_pdf_layers_ocg_

Kunda

2015-11-13 18:20

updater   ~0037461

Can anyone comment on what to do about this bug?

Issue History

Date Modified Username Field Change
2010-11-10 11:40 Linuxworld New Issue
2010-11-10 11:40 Linuxworld File Added: layer_test.sla
2010-11-22 21:08 Linuxworld File Added: layers_canvas_illustrator_vs_scribus.pdf
2010-11-22 21:12 Linuxworld Note Added: 0024875
2010-11-22 21:18 Linuxworld Note Edited: 0024875
2010-11-24 11:22 Linuxworld Note Added: 0024885
2014-09-18 21:54 Kunda Additional Information Updated
2015-11-13 18:20 Kunda Note Added: 0037461