[Bug 118789] Re: trouble using ExportFormFields in uno API; PDF form controls are exported even when set to False

2008-07-08 Thread Chris Cheney
12:48 < calc> Brucevdk: thanks for the update, i'll get it into the next upload 
to intrepid
12:49 < Brucevdk> calc: intrepid? If you're talking about patching 
ooextract.py, don't.
12:50 < Brucevdk> calc: the patch was for Dan's modified version, not the one 
at openoffice.org (that one deals with a generic
12:50 < Brucevdk> pdf exporter)
12:52 < Brucevdk> calc: my conclusion is that it's not a bug at all, should 
probably be set INVALID

** Changed in: openoffice.org (Ubuntu)
 Assignee: Chris Cheney (ccheney) => (unassigned)
   Status: Triaged => Invalid
   Target: intrepid-alpha-4 => None

-- 
trouble using ExportFormFields in uno API; PDF form controls are exported even 
when set to False
https://bugs.launchpad.net/bugs/118789
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 118789] Re: trouble using ExportFormFields in uno API; PDF form controls are exported even when set to False

2008-07-08 Thread Chris Cheney
Setting to alpha-4 so I don't forget to get this bug fixed.

** Changed in: openoffice.org (Ubuntu)
   Importance: Undecided => Low
 Assignee: (unassigned) => Chris Cheney (ccheney)
   Status: New => Triaged
   Target: None => intrepid-alpha-4

-- 
trouble using ExportFormFields in uno API; PDF form controls are exported even 
when set to False
https://bugs.launchpad.net/bugs/118789
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 118789] Re: trouble using ExportFormFields in uno API; PDF form controls are exported even when set to False

2008-07-08 Thread Bruce van der Kooij
That somebody was me by the way, I stumbled upon this issue while
researching another property (PageRange) which is also a sub property of
FilterData. Took me about 2 hours before I found B Marcelly's post
mentioned above. I initially had some trouble finding out there was a
PageRange property at all (for example it's not described in the spec
linked above), however all properties seem to be listed in
ImpPDFTabDialog::GetFilterData (see: http://lxr.go-
oo.org/source/framework/filter/source/pdf/impdialog.cxx).

I was going to try and summarize the issue but since my experience with
the UNO stuff is severely limited (to today) there's nothing I can add.
Thought I'd at least take the time to post a patch for the previously
attached ooextract.py. Here's the important snippet:

filterOptions = uno.Any("[]com.sun.star.beans.PropertyValue", (
PropertyValue( "ExportFormFields", 0, False, 0),
),)

Notice how the uno.Any function is used to wrap the filterOptions tuple,
or set the type to []com.sun.star.beans.PropertyValue (which I assume
means an array of com.sun.star.beans.PropertyValue). B Marcelly explains
the reason for this wrapping in this specific post over at the OOo
forums (http://www.oooforum.org/forum/viewtopic.phtml?t=58792#233845).

I'll add a couple of keywords to this post so hopefully other people
will stumble on this bug report when they're facing the same problems.

Keywords: writer_pdf_Export, PageRange, PropertyValue, filters, PyUNO

P.S.

Thanks to cl over at #dev.openoffice.org for his assistance with this
issue.

** Attachment added: "Specificy the exact type of the subproperties (tuple) 
using uno.Any"
   
http://launchpadlibrarian.net/15892085/ooextract-wrap-type-for-exportformfields-property.patch

-- 
trouble using ExportFormFields in uno API; PDF form controls are exported even 
when set to False
https://bugs.launchpad.net/bugs/118789
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 118789] Re: trouble using ExportFormFields in uno API; PDF form controls are exported even when set to False

2008-07-08 Thread Dan Connolly
I got a clue from somebody...

"Your problem is that you need to pass an array as a value of a
PropertyValue, and a PropertyValue can receive anything. So you have to
tell the COM bridge what kind of value you are passing."

second comment on http://www.oooforum.org/forum/viewtopic.phtml?t=61144

-- 
trouble using ExportFormFields in uno API; PDF form controls are exported even 
when set to False
https://bugs.launchpad.net/bugs/118789
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 118789] Re: trouble using ExportFormFields in uno API; PDF form controls are exported even when set to False

2008-04-26 Thread Chris Cheney
** Changed in: openoffice.org (Ubuntu)
   Status: Incomplete => New

-- 
trouble using ExportFormFields in uno API; PDF form controls are exported even 
when set to False
https://bugs.launchpad.net/bugs/118789
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 118789] Re: trouble using ExportFormFields in uno API; PDF form controls are exported even when set to False

2008-04-08 Thread Dan Connolly
yes, if it's like formcontrol.pdf, it's broken. What I expect is
formcontrol-gui.pdf.

-- 
trouble using ExportFormFields in uno API; PDF form controls are exported even 
when set to False
https://bugs.launchpad.net/bugs/118789
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 118789] Re: trouble using ExportFormFields in uno API; PDF form controls are exported even when set to False

2008-03-13 Thread Chris Cheney
On openoffice.org 1:2.4.0~rc2-1ubuntu3. For me they all look like your
formcontrol.pdf, gui ooextract.py from the website and the ooextract.py
that you modified. They all have the stylized X mark. So does that mean
they are all broken for what you are trying to do?

** Changed in: openoffice.org (Ubuntu)
   Status: New => Incomplete

-- 
trouble using ExportFormFields in uno API; PDF form controls are exported even 
when set to False
https://bugs.launchpad.net/bugs/118789
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 118789] Re: trouble using ExportFormFields in uno API; PDF form controls are exported even when set to False

2007-06-05 Thread Dan Connolly
This is the output of:

$ python ooextract.py --pdf formcontrol.odt

it exhibits the problem: I want it to have no form controls,
but it has form controls.


** Attachment added: "formcontrol.pdf"
   http://launchpadlibrarian.net/7980822/formcontrol.pdf

-- 
trouble using ExportFormFields in uno API; PDF form controls are exported even 
when set to False
https://bugs.launchpad.net/bugs/118789
You received this bug notification because you are a member of Ubuntu
Bugs, which is the bug contact for Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 118789] Re: trouble using ExportFormFields in uno API; PDF form controls are exported even when set to False

2007-06-05 Thread Dan Connolly
This is the sort of PDF that I want; it's produced using the PDF options
dialog, manually.


** Attachment added: "formcontrol-gui.pdf"
   http://launchpadlibrarian.net/7980743/formcontrol-gui.pdf

-- 
trouble using ExportFormFields in uno API; PDF form controls are exported even 
when set to False
https://bugs.launchpad.net/bugs/118789
You received this bug notification because you are a member of Ubuntu
Bugs, which is the bug contact for Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 118789] Re: trouble using ExportFormFields in uno API; PDF form controls are exported even when set to False

2007-06-05 Thread Dan Connolly
Here's a simple document with one form control to help reproduce the
problem.

** Attachment added: "formcontrol.odt"
   http://launchpadlibrarian.net/7980729/formcontrol.odt

-- 
trouble using ExportFormFields in uno API; PDF form controls are exported even 
when set to False
https://bugs.launchpad.net/bugs/118789
You received this bug notification because you are a member of Ubuntu
Bugs, which is the bug contact for Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 118789] Re: trouble using ExportFormFields in uno API; PDF form controls are exported even when set to False

2007-06-05 Thread Dan Connolly
attaching the whole modified ooexport.py

** Attachment added: "python uno PDF export option with ExportFormFields set to 
False"
   http://launchpadlibrarian.net/7980690/ooextract.py

-- 
trouble using ExportFormFields in uno API; PDF form controls are exported even 
when set to False
https://bugs.launchpad.net/bugs/118789
You received this bug notification because you are a member of Ubuntu
Bugs, which is the bug contact for Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs