comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Re: Embedding a PDF (or similar) display window in an IDL widget
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
Re: Embedding a PDF (or similar) display window in an IDL widget [message #83028] Thu, 31 January 2013 00:28 Go to next message
lecacheux.alain is currently offline  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 #83031 is a reply to message #83028] Wed, 30 January 2013 21:06 Go to previous messageGo to next message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
rryan@stsci.edu writes:

> 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 just think it would be infinitely easier to expand the definition of
"widget window" to include a separate browser window. It won't be that
hard for people to make the adjustment. :-)

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 #83032 is a reply to message #83031] Wed, 30 January 2013 20:59 Go to previous messageGo to next message
Russell Ryan is currently offline  Russell Ryan
Messages: 122
Registered: May 2012
Senior Member
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...
Re: Embedding a PDF (or similar) display window in an IDL widget [message #83036 is a reply to message #83032] Wed, 30 January 2013 12:09 Go to previous messageGo to next message
CLM is currently offline  CLM
Messages: 6
Registered: January 2013
Junior Member
Thanks all. I'll stop smacking my head against the wall now and come up with a plan B.
Re: Embedding a PDF (or similar) display window in an IDL widget [message #83037 is a reply to message #83036] Wed, 30 January 2013 10:00 Go to previous messageGo to next message
Michael Galloy is currently offline  Michael Galloy
Messages: 1114
Registered: April 2006
Senior Member
On 1/30/13 10:50 AM, CLM wrote:
> Clearly it can be done, because IDL did it for their help but they
> aren't making it easy to figure out.

The IDL help browser is not written in IDL.

Mike
--
Michael Galloy
www.michaelgalloy.com
Modern IDL: A Guide to IDL Programming (http://modernidl.idldev.com)
Research Mathematician
Tech-X Corporation
Re: Embedding a PDF (or similar) display window in an IDL widget [message #83038 is a reply to message #83037] Wed, 30 January 2013 10:00 Go to previous messageGo to next message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
CLM writes:

>
> 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.

Well, maybe it can be done. But, I'm nearly certain it ain't gonna be
done using the current widget toolkit. Maybe in the new one.

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 #83039 is a reply to message #83038] Wed, 30 January 2013 09:50 Go to previous messageGo to next message
CLM is currently offline  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 #83040 is a reply to message #83039] Wed, 30 January 2013 09:46 Go to previous messageGo to next message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
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.")
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 Go to previous messageGo to next message
CLM is currently offline  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 Go to previous messageGo to next message
David Fanning is currently offline  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 Go to previous message
CLM is currently offline  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 Go to previous message
CLM is currently offline  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.
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Check overlapping of two differen georeferenced images
Next Topic: Re: Request for guidance/advice related to time series analysis and forecasting using MODIS imagery

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Wed Oct 08 09:18:51 PDT 2025

Total time taken to generate the page: 0.00745 seconds