This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 119333 - Common PDF viewer for Windows
Summary: Common PDF viewer for Windows
Status: VERIFIED FIXED
Alias: None
Product: utilities
Classification: Unclassified
Component: PDF (show other bugs)
Version: 6.x
Hardware: All Windows Vista
: P3 blocker (vote)
Assignee: Marian Petras
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-10-18 11:21 UTC by novakm
Modified: 2007-11-20 20:11 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description novakm 2007-10-18 11:21:53 UTC
I assume that in current state PATH is searched for common pdf viewers. But obviously only for those on *nix systems as
on windows nothing is found. I am not sure what programs are common on windows, but at least AcroRd32.exe and similar
should be added to the list of searched viewers.

Product Version: NetBeans IDE 6.0 Beta 2 (Build 200710172300)
Comment 1 Marian Petras 2007-10-22 11:01:53 UTC
Fixed in the trunk.

On Windows, the following command is executed to invoke the system's default PDF viewer:

     cmd.exe /C start <filename>

I verified it on Windows XP and Windows Vista.

Modified file:
    utilities/src/org/netbeans/modules/pdf/PDFOpenSupport.java   (1.18)

Diff:
http://deadlock.netbeans.org/fisheye/browse/netbeans/utilities/src/org/netbeans/modules/pdf/PDFOpenSupport.java?r1=1.17&r2=1.18
Comment 2 novakm 2007-10-25 09:32:38 UTC
Verified.
Comment 3 Marian Petras 2007-11-20 20:11:03 UTC
There was a bug in the patch - see bug #122221 ("Opening PDF file brings up command console [on Windows]"). When porting
this fix, remember to also apply the fix of bug #122221
(http://deadlock.netbeans.org/fisheye/browse/netbeans/utilities/src/org/netbeans/modules/pdf/PDFOpenSupport.java?r1=1.18&r2=1.19).