MediaPortal Forums HTPC/MediaCenter

Go Back   MediaPortal Forum » MediaPortal 1 » Community Skins and Plugins » Plugins


Plugins Plugins developed and maintained by users. Want to create your own plugin? Start a thread in here.

Reply
 
Thread Tools Display Modes
Old 2006-08-14, 00:48   #1 (permalink)
Portal Member
 
Join Date: Aug 2006
Location: Southsea, UK
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts


Default How do I implement PDF control in MP plugin?

I am currently writing a plugin for viewing ebooks in MP.

I have desigined the GUI for the plugin and at the moment I have come up against an obstacle.

The first picture below shows the GUI for the plugin (nothing special - pretty much like all other plugins). The second picture shows a windows form with a control from PDFSharp (open source c# pdf editing/viewing library).





I want to put the PDF viewing control from the windows form (2nd screenshot) into the white box on the first screenshot. (I have drawn the white box to illustrate my point - don't worry it won't be there on the plugin!)

I can't think of any way of doing this, hence the post.

What XML should I use to declare this control in the XML skin file, more specifically, what do I put in between the <type></type> tags?

Any help/tips would be most appreciated.

Regards,
JestriK
__________________
Epia VIA 10000M :: 1GB RAM :: GeForce Low Profile 6600 :: 1x 300GB HDD :: 1x 250GB HDD :: MS Wireless Mouse and Keyboard :: MCE 2005 Remote
JestriK is offline   Reply With Quote
Old 2006-08-14, 08:36   #2 (permalink)
Portal Designer
 
Inker's Avatar
 
Join Date: Dec 2004
Posts: 1,560
Thanks: 35
Thanked 134 Times in 58 Posts

My System

Default

Hmm, interesting. What type of object do you get back from SharpPDF? In other words, if you were to build a Winforms app what control would you drop the result onto? I almost suspect they have their own custom control type which you can drop onto any container control in Winforms.

If so, I think your best bet would be to look at the WebBrowser Plugin since *I think* this one also has to display some custom Winforms Control type (that Mozilla Plugin you have to install) and see how this is achieved there and how it handles things like scrolling with the remote.

Hope this is of any help to you.
Inker is offline   Reply With Quote
Old 2006-08-14, 11:46   #3 (permalink)
Portal Member
 
Join Date: Aug 2004
Location: Melbourne, Australia
Posts: 773
Thanks: 0
Thanked 0 Times in 0 Posts


Default

Alternatively, if you can somehow get the PDF doc exported to a System.Drawing.Bitmap object, then you can maybe show it in MP as a graphic.

Given there's no need to be able to select anything on the actual object, (unlike the webbrowser control, where you need to be able to select links) it should be OK to represent the PDF file as a graphics object.

Sam
samuel337 is offline   Reply With Quote
Old 2006-08-14, 12:35   #4 (permalink)
Retired Team Member
 
mPod's Avatar
 
Join Date: Jan 2005
Location: Berlin
Age: 34
Posts: 2,086
Thanks: 0
Thanked 3 Times in 3 Posts

Country:

My System

Default

A good PDF has (internal) hyperlinks (mainly for the table of contents), so you need it selectable.
__________________


Bad news from the stars...

We cannot give any support without a properly filled support template
and a full mediaportal.log pasted here.


Before you ask...
mPod is offline   Reply With Quote
Reply

Bookmarks

Tags
control, implement, pdf, plugin

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
AVerTV remote control plugin AlexPlas Plugins 96 2008-10-24 23:18
(original thread) MCE Replacement Plugin v1.0.0 and-81 MCE Replacement Plugin 532 2007-02-24 00:24
Gathering topical infos about plugins (To: authors & use tomtom21000 Plugins 2 2006-02-05 00:20
External Control Plugin for MP samuel337 Plugins 17 2005-01-04 01:37


All times are GMT +1. The time now is 09:50.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0 Protected by Akismet Blog with WordPress
Advertisement System V2.6 By   Branden