sumatrapdfreader / sumatrapdf

SumatraPDF reader
http://www.sumatrapdfreader.org
GNU General Public License v3.0
13.25k stars 1.69k forks source link

Implement popup properties of symbols #3940

Open soderdaen opened 8 months ago

soderdaen commented 8 months ago

Hello guys,

can the popup of properties of symbols be implemented into the pdf reader? Please also include a copy&past of the text of the selected popup property. See the example PDF and the added screenshots.

example.pdf Example_Screenshot_Adobe Acrobat Reader 2020 Example2_Screenshot_Adobe Acrobat Reader 2020

GitHubRulesOK commented 8 months ago

Edge shows a fist pointer no tooltip and SumatraPDF never runs any Adobe unsecure java/ecmascript

@kjk do you wish to comment on adding auto running Acrobat ecma/javascript support ?

image

contents

%FDF-1.4
%âãÏÓ
1 0 obj
<<
/FDF <<
/Annots [2 0 R]
/F (3940 example.pdf)
/UF (3940 example.pdf)
>>
/Type /Catalog
>>
endobj
2 0 obj
<<
/A <<
/JS (var citem = app.popUpMenu\( [ 'Symbol', 'Path=Resistors', 'Symbol=resistor_sym_1.smb', 'ComponentType=gate', 'FunctionType=Resistor - Shunt' ], [ 'Location', 'ID=sht1.cmp3', 'X=182.500', 'Y=210.000', 'Mirror=OFF', 'Scale=1.000', 'Angle=0.000' ],  [ 'Object Properties', 'Reference Designator=R0001', 'Pack_Type=0805', 'Temperature Range=-55+155' ] \); if \( citem == 'Reference Designator=R0001' \) { app.alert\( 'Reference Designator=R0001', 3 \); } if \( citem == 'Pack_Type=0805' \) { app.alert\( 'Pack_Type=0805', 3 \); } if \( citem == 'Temperature Range=-55+155' \) { app.alert\( 'Temperature Range=-55+155', 3 \); })
/S /JavaScript
>>
/Border [0 0 0]
/Page 0
/Rect [355.803894 412.380554 375.844849 419.396301]
/Subtype /Link
/Type /Annot
>>
endobj
trailer
<<
/Root 1 0 R
>>
%%EOF
soderdaen commented 5 months ago

I guess thats not planned

kjk commented 4 months ago

I'm not opposed to adding support for this, there's just lots of other things to do as well.