Re: Embedding a PDF (or similar) display window in an IDL widget [message #83028] |
Thu, 31 January 2013 00:28  |
lecacheux.alain
Messages: 325 Registered: January 2008
|
Senior Member |
|
|
Le mercredi 30 janvier 2013 21:09:19 UTC+1, CLM a écrit :
> Thanks all. I'll stop smacking my head against the wall now and come up with a plan B.
If you are using Windows, the plan A might consist in using a COM bridge to a PDF (or MS-Word) ActiveX plugin existing in your system. Please refer to the WIDGET_ACTIVEX routine for embedding an external window in your own widget tree and, more generally, to the documentation on IDLcomIDispatch object class.
Maybe also possible (just a guess) with another OS by similarly using the IDL java bridge.
Not so simple, but being worth your million lines ...
alain.
|
|
|
|
|
|
|
|
Re: Embedding a PDF (or similar) display window in an IDL widget [message #83039 is a reply to message #83038] |
Wed, 30 January 2013 09:50   |
CLM
Messages: 6 Registered: January 2013
|
Junior Member |
|
|
On Wednesday, January 30, 2013 12:46:09 PM UTC-5, David Fanning wrote:
> CLM writes:
>
>
>
>> Haha. Funny. Too late for that. This is to be the help document for over a million lines/ hundreds of programs of existing IDL code.
>
>
>
> Oh, dear! :-(
>
>
>
> Cheers,
>
>
>
> David
>
>
>
> --
>
> David Fanning, Ph.D.
>
> Fanning Software Consulting, Inc.
>
> Coyote's Guide to IDL Programming: http://www.idlcoyote.com/
>
> Sepore ma de ni thue. ("Perhaps thou speakest truth.")
Perhaps I am being too ambitious. I can always use plain text if worse comes to worse, but I'd really like to display embedded figures and whatnot, too.
Clearly it can be done, because IDL did it for their help but they aren't making it easy to figure out.
|
|
|
|
Re: Embedding a PDF (or similar) display window in an IDL widget [message #83041 is a reply to message #83040] |
Wed, 30 January 2013 09:43   |
CLM
Messages: 6 Registered: January 2013
|
Junior Member |
|
|
On Wednesday, January 30, 2013 12:41:38 PM UTC-5, David Fanning wrote:
> CLM writes:
>
>
>
>> I am building an IDL object widget to display help information, modeled after the IDL online help (?). I have a table of contents base containing a widget tree on the left. I have a blank window on the right, in which I'd like to display the related help information. I know how to display a text document, but I'd really like to have the ability to display a PDF file or Word file or something similar - with embedded graphics, nicer fonts, colors, and the like.
>
>>
>
>> I can not figure out how to do this. I have found the ONLINE_HELP intrinsic routine, but that spawns a new pdf viewer, and I can not figure out how to embed this within my existing widget.
>
>>
>
>> It does not have to be a pdf, but a file format that I can save existing Word documents to is preferable.
>
>>
>
>> It needs to be both PC and MAC compatible.
>
>>
>
>> Any suggestions would be greatly appreciated.
>
>
>
> Try Matlab. ;-)
>
>
>
> Cheers,
>
>
>
> David
>
>
>
>
>
>
>
> --
>
> David Fanning, Ph.D.
>
> Fanning Software Consulting, Inc.
>
> Coyote's Guide to IDL Programming: http://www.idlcoyote.com/
>
> Sepore ma de ni thue. ("Perhaps thou speakest truth.")
Haha. Funny. Too late for that. This is to be the help document for over a million lines/ hundreds of programs of existing IDL code.
|
|
|
Re: Embedding a PDF (or similar) display window in an IDL widget [message #83042 is a reply to message #83041] |
Wed, 30 January 2013 09:41   |
David Fanning
Messages: 11724 Registered: August 2001
|
Senior Member |
|
|
CLM writes:
> I am building an IDL object widget to display help information, modeled after the IDL online help (?). I have a table of contents base containing a widget tree on the left. I have a blank window on the right, in which I'd like to display the related help information. I know how to display a text document, but I'd really like to have the ability to display a PDF file or Word file or something similar - with embedded graphics, nicer fonts, colors, and the like.
>
> I can not figure out how to do this. I have found the ONLINE_HELP intrinsic routine, but that spawns a new pdf viewer, and I can not figure out how to embed this within my existing widget.
>
> It does not have to be a pdf, but a file format that I can save existing Word documents to is preferable.
>
> It needs to be both PC and MAC compatible.
>
> Any suggestions would be greatly appreciated.
Try Matlab. ;-)
Cheers,
David
--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.idlcoyote.com/
Sepore ma de ni thue. ("Perhaps thou speakest truth.")
|
|
|
Re: Embedding a PDF (or similar) display window in an IDL widget [message #83071 is a reply to message #83028] |
Mon, 04 February 2013 12:53  |
CLM
Messages: 6 Registered: January 2013
|
Junior Member |
|
|
On Thursday, January 31, 2013 3:28:19 AM UTC-5, alx wrote:
> Le mercredi 30 janvier 2013 21:09:19 UTC+1, CLM a écrit :
>
>> Thanks all. I'll stop smacking my head against the wall now and come up with a plan B.
>
>
>
> If you are using Windows, the plan A might consist in using a COM bridge to a PDF (or MS-Word) ActiveX plugin existing in your system. Please refer to the WIDGET_ACTIVEX routine for embedding an external window in your own widget tree and, more generally, to the documentation on IDLcomIDispatch object class.
>
> Maybe also possible (just a guess) with another OS by similarly using the IDL java bridge.
>
> Not so simple, but being worth your million lines ...
>
> alain.
Will this work with MAC and linux? Unfortunately my team members use multiple platforms, so it needs to work on everything.
|
|
|
Re: Embedding a PDF (or similar) display window in an IDL widget [message #83072 is a reply to message #83032] |
Mon, 04 February 2013 12:51  |
CLM
Messages: 6 Registered: January 2013
|
Junior Member |
|
|
On Wednesday, January 30, 2013 11:59:59 PM UTC-5, rr...@stsci.edu wrote:
> On Wednesday, January 30, 2013 3:09:19 PM UTC-5, CLM wrote:
>
>> Thanks all. I'll stop smacking my head against the wall now and come up with a plan B.
>
>
>
> Ok, I don't think this is really worth your time. But if you're hell-bent. Maybe you can convert the pdfs into jpegs (or something). Then read the jpegs (or whatever) using IDL (see the astronomy library at GSFC for reading various image formats). Then display the image with tv (or IDLgrImage or whatever). You could place text using xyouts (or IDLgrText). Again, this seems like it's going to be more work than it's worth...
I am giving it a try converting from pdf to png - Plan B.
I am familiar with the astrolib (I am at GSFC).
Thanks.
|
|
|