iRex Forum Forum Index iRex Forum

 
 FAQFAQ   SearchSearch   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Opening PDF from HTML

 
Post new topic   Reply to topic    iRex Forum Forum Index -> HTML
View previous topic :: View next topic  
Author Message
berend



Joined: 16 Aug 2006
Posts: 38

PostPosted: Tue Aug 22, 2006 7:42 pm    Post subject: Opening PDF from HTML Reply with quote

I've tried opening a PDF from a HTML. I thought, that having a .pdf file (1.pdf) on the same level as the HTML (test.htm), would enable me to make a link like:

Code:
<a href='1.pdf'>Click here!</a>


And i would be able to open a PDF document from the HTML like that. However, when i do that, i get a error message:



So i think my wish is for this construction to work, or - if not feasible - to make sure this functionality doesn't crash if i do decide to make this kind of HREF. Because, i can't use the HTML reader after this (the error cannot be clicked away, nor with the stylus, nor with any of the buttons), until i restart the iLiad.
Back to top
View user's profile Send private message Visit poster's website
berend



Joined: 16 Aug 2006
Posts: 38

PostPosted: Tue Aug 22, 2006 10:12 pm    Post subject: Reply with quote

Here is a short photo series of what we would like to do with the iLiad:





My collegue Gert-Jaap tonight made a "quick and dirty" tool that exports selected content from our document management system to the iLiad, to demonstrate how we could map the structure of our document store on the iLiad.

In our system a "document" entry contains zero or more document files and has its own metadata, classifying the group of document files. The document entries themselves are grouped physically in so-called "document books" (picture 4) and logically in project folders (picture 7), where a folder can contain references to documents in various document books (picture 8 ). On the lowest level, pictures 5 and 6 and pictures 9 and 10 show the document files below one single document entry.

As you see, the model can be transformed adequately to a folder structure that the iLiad can handle Smile. However, in pictures 4, 7 and 8 we run into the problem that a file folder cannot have a manifest xml, so that only a single subject line remains of all the metadata in a document or folder item. We could easily generate a simple web page that does show much more of the metadata, but then we cannot link to the pdf files on the lowest level because of the problem shown in the first post of this thread... Sad
Back to top
View user's profile Send private message Visit poster's website
Matthijs
iRex Employee
iRex Employee


Joined: 18 Jul 2006
Posts: 948
Location: Eindhoven

PostPosted: Wed Aug 30, 2006 2:15 pm    Post subject: Reply with quote

Opening a PDF from a webpage (or a webpage from a PDF for that matter) is not feasible with our current implementation.

Obviously the error message should be visible and it should be possible to click OK, this is a known issue.
Back to top
View user's profile Send private message
berend



Joined: 16 Aug 2006
Posts: 38

PostPosted: Fri Sep 01, 2006 6:50 pm    Post subject: Reply with quote

It would be something to consider for the iLiad 2.0... for instance having a thumbnail page in html where you can click through to a pdf per article is not uncommon for an internet newspaper.
Back to top
View user's profile Send private message Visit poster's website
fchivu



Joined: 03 Sep 2007
Posts: 3

PostPosted: Mon Sep 03, 2007 3:01 pm    Post subject: HTML to PDF converter library for .NET 2.0 Reply with quote

If you want something windows based I think you can take the HTML to PDF converter library for .NET from http://www.dotnet-reporting.com or from http://www.winnovative-software.com. You can be build your own application or you can use the demo one.

All the conversion can be done in a few lines for C# code:


// Create the PDF converter. Optionally you can specify the virtual browser
// width as parameter. 1024 pixels is default, 0 means autodetect
PdfConverter pdfConverter = new PdfConverter();
// set the license key
pdfConverter.LicenseKey = "P38cBx6AWW7b9c81TjEGxnrazP+J7rOjs+9omJ3TUycauK+cLWdrITM5T59hdW5r";
// set the converter options
pdfConverter.PdfDocumentOptions.PdfPageSize = PdfPageSize.A4;
pdfConverter.PdfDocumentOptions.PdfCompressionLevel = PdfCompressionLevel.Normal;
pdfConverter.PdfDocumentOptions.PdfPageOrientation = PDFPageOrientation.Portrait;
pdfConverter.PdfDocumentOptions.ShowHeader = false;
pdfConverter.PdfDocumentOptions.ShowFooter = false;
// set to generate selectable pdf or a pdf with embedded image
pdfConverter.PdfDocumentOptions.GenerateSelectablePdf = selectablePDF;

// Performs the conversion and get the pdf document bytes that you can further
// save to a file or send as a browser response
byte[] pdfBytes = pdfConverter.GetPdfFromUrlBytes(urlToConvert);
Back to top
View user's profile Send private message
fchivu



Joined: 03 Sep 2007
Posts: 3

PostPosted: Tue Oct 20, 2009 7:06 am    Post subject: Online Free HTML to PDF Reply with quote

You can convert web pages on the fly using the html to pdf online service at http://www.pdfspot.com . You can simply place a Save As PDF button on your web page which produces the PDF document from the current web page when it is clicked. The online service is using the winnovative html to pdf converter for .net from http://www.winnovative-software.com .
Back to top
View user's profile Send private message
johnvarenda



Joined: 27 Nov 2009
Posts: 1

PostPosted: Fri Nov 27, 2009 11:46 am    Post subject: Reply with quote

hi...
I have a 13X19 print (actual size of the image is about 12X18) I need to have it scanned. I appear to have lost my original file Sad and I need to make some prints of it. Does anyone know where I could get a print this size scanned and get a quality scan?

Help me..
.....................
Back to top
View user's profile Send private message
fchivu



Joined: 03 Sep 2007
Posts: 3

PostPosted: Thu Jan 28, 2010 3:39 pm    Post subject: HTML to PDF Converter for .NET Reply with quote

You could try HTML to PDF library or HTML to PDF free online service
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    iRex Forum Forum Index -> HTML All times are GMT + 1 Hour
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


You can find our complete guidelines here.
Powered by phpBB © 2001, 2005 phpBB Group