Apache OpenOffice (AOO) Bugzilla – Issue 53453
Buttons get exported as transparent buttons in PDF
Last modified: 2013-07-30 02:14:20 UTC
If you export a document containing a colored button to PDF, the button itself is generated transparent, but the on the background of the page, a colored rectangle gets rendered. Afterwards, it's not possible to modify the button (i.e. hide it by setting it's hidden flag) using Adobe Acrobat or any other tool. The button should be exported "standalone" and the color and font informations should be contained in the button object, not the page it lies on.
Created attachment 28859 [details] Sample document
Created attachment 28860 [details] Exported PDF
Reassigned to HI.
Passed to FS
@magog : can you be more specific, I don't understand where is the problem. How should be the pdf ?
fs->pl: Care to comment on this?
Okay, I'll try to describe it better: 1. Create a new document in OOo and add a button on it. 2. Change the background color of the button to red for example. 3. Export the document as PDF. In the PDF, the button is generated as 1. A red rectangle. 2. A text containing the caption of the button. 3. A transparent button object. This results in a few problems: 1. You can't hide the button by changing the flag in the button object as you will always see the rectangle and the caption text. 2. You can't change the background color or caption from the button object. The button should instead be exported only as button object that can contain all the necessary properties / settings. Hope that makes things a bit clearer. BTW: I just tested with OOo 2.0.3 on Windows and the problem still exists.
magog : did you mean that PDF file generated by OOo should show a functional (clickable) button ? Is it possible in PDF format ?
Yes, OOo already generates a clickable button in the PDF, but it's always transparent instead of using the properties setup in the OOo file. You can check out the attached files for an example.
Created attachment 50629 [details] PDF containing "proper" button object with red background (added with Adobe Acrobat)
Ok I understand better but unfortunately I don't have Adobe Acrobat under Linux to analyze differences between generated pdf and the last one. Under Adobe Reader both pdf files look similar.
I'll add a copy of the "53453_button_background.pdf" with the button object moved to the right (starts between the two "t" of the caption). As you can see, it's no longer clickable on the left half of the visible button, but further on the right side of it.
Created attachment 50630 [details] Button object moved to the right.
For me the clickable area is only above the letters "ton" of "button". Elsewhere the cursor has the form of an hand.
If I understand the problem correctly: OOo creates a transparent (rectangle) object with the button function and some separate rectangle background with red colour (and caption?). Acrobat creates a red colour rectangle object with button function, so no further "background objects" are required. The problem is: If you try to modify the OOo button in exported PDF with ACROBAT, all modifications will be only for the transparent button object (that has been moved in "53453_button_moved.pdf"), ACROBAT sees the OOo created "background rectangle" as a separate object, no chance to modify it with the "Edit button" functions of ACROBAT. If my resume is correct, this should be fixed for 3.0 @magog: is my resume correct?
Yes, this resume is correct.
That would be PDFWriter, not fs's domain
reassign. However the current implementation was chosen since it worked reliably back to Acrobat reader 5, which cannot be said about an implementation using two appearance streams (for pressed/unpressed button).
Reset assignee on issues not touched by assignee in more than 2000 days.