PDFsharp - moved to http://forum.pdfsharp.net/ Forum Index PDFsharp - moved to http://forum.pdfsharp.net/
Please visit the new PDFsharp forum at http://forum.pdfsharp.net/
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Convert PDF to HTML format

 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    PDFsharp - moved to http://forum.pdfsharp.net/ Forum Index -> Support - moved to http://forum.pdfsharp.net/
View previous topic :: View next topic  
Author Message
gkataria



Joined: 20 Aug 2008
Posts: 3

PostPosted: Thu Aug 21, 2008 9:23 am    Post subject: Convert PDF to HTML format Reply with quote

How can we convert PDF document to HTML format. Can anyone help me out on this.

Also help required to convert PDF document to .psd format.
Back to top
View user's profile Send private message
Orestone



Joined: 24 Oct 2008
Posts: 7
Location: Brisbane, Australia

PostPosted: Fri Oct 24, 2008 12:42 pm    Post subject: Render HTML View Reply with quote

I also would like to know whether this is possible. The features page (http://www.pdfsharp.org/PDFsharp/index.php?option=com_content&task=view&id=50&Itemid=1) says, about MigraDoc Lite, that it
Quote:
...Supports different output formats (PDF, Word, HTML, any printer supported by Windows) ...

I have found that MigraDoc is perfect for our application however I also need to be able to render HTML versions for any PDF file that I create. By this I mean an HTML view that loosely follows the PDF layout. I would not expect a item-item match but hopefully an HTML view that is recognisable against the PDF document [/url]

Any suggestions? I cannot find any examples except for the PDFsharpClock ASP example which is really just an embedded PDF in a browser.

Thanks in advance for your help - I am very impressed with the quality of PDFsharp an MigraDoc
Back to top
View user's profile Send private message
Thomas Hoevel



Joined: 16 Oct 2006
Posts: 387
Location: Cologne, Germany

PostPosted: Mon Oct 27, 2008 9:49 am    Post subject: Reply with quote

We have four samples online (German only):
http://dev.empira.de/migradocsamples/

There's a drop-down list to select the sample ("Beispiel-Dodokument").

You can flip through the HTML pages (">" and "<") and watch the corresponding PDF file created with MigraDoc ("PDF-Dokument").

Please note: this does not convert PDF to HTML, it only allows to create PDF or HTML from the same MigraDoc document.
_________________
Regards
Thomas Hoevel
PDFsharp Team
Back to top
View user's profile Send private message Visit poster's website
Orestone



Joined: 24 Oct 2008
Posts: 7
Location: Brisbane, Australia

PostPosted: Mon Oct 27, 2008 1:40 pm    Post subject: Reply with quote

Thanks Thomas - those examples seem to be exactly what I am looking for, however it still doesn't help me understand how to achieve that functionality.

Is there a project that I can download with the source for those examples? I cannot find anthing of relevance in the MigraDoc and PDFsharp examples.
Back to top
View user's profile Send private message
Thomas Hoevel



Joined: 16 Oct 2006
Posts: 387
Location: Cologne, Germany

PostPosted: Mon Oct 27, 2008 2:45 pm    Post subject: Reply with quote

You wrote:
Quote:
...Supports different output formats (PDF, Word, HTML, any printer supported by Windows) ...

That's what the homepage says since 2006.
Now that we talk about it I'm not sure if HTML is really implemented in MigraDoc Lite ...

It was implemented with MigraDoc 1.1 (but that's a completely different C++ project).

How to get HTML files?
You can install the MigraDoc Client (link below). It requires .NET Framework 1.1 which is available from Microsoft.
You can then use MigraDoc Lite to create your document and save it as an MDDDL file:
Code:
string strDirectory = Path.GetDirectoryName(pdfFilename);
DdlWriter dw = new DdlWriter(Path.Combine(strDirectory, @"nqbpdf.mdddl"));
dw.WriteDocument(document);
dw.Close();

You can then use the MigraDoc Tool (MDT.EXE) to convert this MDDDL file to HTML (mdt.exe /x:html /view /fd:"%1").
Or double click the MDDDL file and in the preview window press Ctrl+H to create the HTML version.
Or right click the MDDDL file and select HTML from the menu.

MigraDoc Client 1.1:
http://migradoc.empira.de/migradoc/Default.aspx?topID=DlClient
This client is not freeware, but it's free for private/non-commercial use.

Here are the samples (but I'm afraid they are of limited use):
http://migradoc.empira.de/migradoc/DownloadFile.aspx?Project=Sample.Rechnung
http://migradoc.empira.de/migradoc/DownloadFile.aspx?Project=Sample.Vermoegensverwaltung
http://migradoc.empira.de/migradoc/DownloadFile.aspx?Project=Sample.DiagrammBroschuere
http://migradoc.empira.de/migradoc/DownloadFile.aspx?Project=Sample.OrientationAndShapes

http://migradoc.empira.de/migradoc/DownloadFile.aspx?Project=Sample.MigraDocSampleCode

Here's the MigraDoc Designer 1.1 (it requires Microsoft Visual Studio .NET 2003):
http://migradoc.empira.de/migradoc/DownloadFile.aspx?Project=MigraDoc.Designer
_________________
Regards
Thomas Hoevel
PDFsharp Team
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    PDFsharp - moved to http://forum.pdfsharp.net/ Forum Index -> Support - moved to http://forum.pdfsharp.net/ All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © phpBB Group. Hosted by phpBB.BizHat.com


Start Your Own YouTube Clone

Free Web Hosting | Free Forum Hosting | FlashWebHost.com | Image Hosting | Photo Gallery | FreeMarriage.com

Powered by PhpBBweb.com, setup your forum now!
For Support, visit Forums.BizHat.com