PDFsharp & MigraDoc Foundation

PDFsharp - A .NET library for processing PDF & MigraDoc Foundation - Creating documents on the fly
It is currently Sun Jun 30, 2024 3:19 pm

All times are UTC


Forum rules


Please read this before posting on this forum: Forum Rules



Post new topic Reply to topic  [ 5 posts ] 
Author Message
PostPosted: Thu Aug 21, 2008 9:23 am 
Offline

Joined: Wed Aug 20, 2008 11:21 am
Posts: 3
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.


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

Joined: Fri Oct 24, 2008 12:24 pm
Posts: 13
Location: Brisbane, Australia
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


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Mon Oct 27, 2008 9:49 am 
Offline
PDFsharp Guru
User avatar

Joined: Mon Oct 16, 2006 8:16 am
Posts: 3100
Location: Cologne, Germany
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


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

Joined: Fri Oct 24, 2008 12:24 pm
Posts: 13
Location: Brisbane, Australia
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.


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Mon Oct 27, 2008 2:45 pm 
Offline
PDFsharp Guru
User avatar

Joined: Mon Oct 16, 2006 8:16 am
Posts: 3100
Location: Cologne, Germany
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/Defa ... D=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/Down ... e.Rechnung
http://migradoc.empira.de/migradoc/Down ... verwaltung
http://migradoc.empira.de/migradoc/Down ... Broschuere
http://migradoc.empira.de/migradoc/Down ... nAndShapes

http://migradoc.empira.de/migradoc/Down ... SampleCode

Here's the MigraDoc Designer 1.1 (it requires Microsoft Visual Studio .NET 2003):
http://migradoc.empira.de/migradoc/Down ... c.Designer

_________________
Regards
Thomas Hoevel
PDFsharp Team


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 5 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 16 guests


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 post attachments in this forum

Search for:
Jump to:  
Privacy Policy, Data Protection Declaration, Impressum
Powered by phpBB® Forum Software © phpBB Group