Questions tagged [html-rendering]

HTML rendering is the process by which a web browser parses HTML and CSS and draws it on the user's screen.

342 questions
36
votes
7 answers

Pure Java HTML viewer/renderer for use in a Scrollable pane

What pure Java HTML viewers and renderers are available? The requirements are: It should implement the JComponent interface to be placed into Scrollable pane. It should be preferably a free solution; open source is a plus. Its availability as…
dma_k
  • 9,513
  • 13
  • 68
  • 122
32
votes
4 answers

nodejs send html file to client

I use this function to send html file to client, but in client I get nothing (blank page) without error. Something I wrong?, please help? var express = require('express'); var fs = require('fs'); var app = express(); app.set('view engine',…
user3044147
  • 1,074
  • 5
  • 13
  • 22
31
votes
1 answer

Convert HTML to PDF using HtmlRenderer

I am looking to use HtmlRenderer to convert an HTML file to a PDF file. I have seen it being mentioned on several sites that it is possible. However, I don't seem to be able to find any basic sample code to do this. I have added the following NuGet…
slayernoah
  • 3,714
  • 10
  • 37
  • 65
21
votes
4 answers

Client Side HTML MVC Rendering vs Server Side Rending via NodeJS

We are looking for options on our team to decide between a Angular based client side MVC approach and a server side NodeJS / ExpressJS server side render approach. Our Angular app downloads as one index.html and makes XHR requests to populate the…
Adam Parrish
  • 439
  • 1
  • 5
  • 13
18
votes
2 answers

rendering html to png (server-side)

I have a workflow model. Internet Explorer doesn't support some features required for model editing functionality (and regular user doesn't need it). I want a read-only preview of my model. Is it possible to server-side render my HTML to an image? I…
jonny
  • 3,111
  • 9
  • 41
  • 57
14
votes
2 answers

Program that convert html to image

Is there a ready-to-use program, that I can run from my web application, to convert an HTML file to an image? Preferably using Webkit, or another mature browser engine? I tried wkhtmltoimage, but it doesn't render backgrounds correctly (while…
Pydev UA
  • 4,463
  • 6
  • 33
  • 50
11
votes
1 answer

How do I avoid double URL encoding when rendering URLs in my website?

Users provide both properly escaped URLs and raw URLs to my website in a text input; for example I consider these two URLs equivalent: https://www.cool.com/cool%20beans https://www.cool.com/cool beans Now I want to render these as tags later,…
Cory Kendall
  • 6,656
  • 5
  • 31
  • 60
10
votes
4 answers

Vertical alignment of text in container: WebKit vs Firefox

The problem is that Firefox and WebKit based browsers seem to align text vertically in different ways when contained in an element that has an even height/line-height and the font-size is uneven (or vice versa). I have looked at some similar…
Olaj
  • 1,654
  • 4
  • 18
  • 31
10
votes
3 answers

Setting up TkHtml (a Tk widget) with Python

I need a simple way to render HTML pages retrieved with Requests (python-requests.org). I'm using Python 3.2 on Windows. I was using tkinter, and I found a Tk widget called TkHtml. It is described at http://tkhtml.tcl.tk/ and a DLL is downloadable…
A Coder
  • 455
  • 1
  • 6
  • 16
8
votes
4 answers

Is a bulleted list item always indented exactly 1.8em?

I made a css-only dropdown menu. The requirement was to have a horizontal bar of items that can each drop down a vertical menu. Furthermore, those items should not drop a tertiary menu, but instead just show bulleted lists. My html has three nested…
Philip Daubmeier
  • 13,432
  • 4
  • 39
  • 73
8
votes
1 answer

Render HTML to a Google Doc using app script?

We work using Google Drive, Docs, etc. Background of the problem: One of our departments needs to print hundreds of emails to file away, with page information included. We currently have a Google web app that takes the contents of an gmail thread,…
A Kirby
  • 83
  • 1
  • 3
8
votes
1 answer

SVG element rendering quality

I have a SVG canvas which user can select and resize some elements inside. And I use preserveAspectRatio="xMidYMid meet" attribute value to keep the original aspect ratio. The original image sources are mostly 256x256px size. On Firefox and…
Noldor
  • 952
  • 6
  • 22
8
votes
3 answers

python / django - bidi brackets issue in html select list

I am running python2.7 with django 1.4. I have the following code in my views.py page which returns the language names in a select list: python code: (views.py) available_languages = [] for lv in language_versions: language =…
user1261774
  • 3,071
  • 7
  • 41
  • 87
8
votes
2 answers

server side browser

I was wondering if it is possible to run a browser (specifically a browser engine) on the server side. I do not just mean to render a page but to keep a browser open for some time, run some JS, do some clicks or press some keys and meanwhile grab…
8
votes
2 answers

Unexplainable space above BUTTON inside DIV

Preface: I've read lots of articles about images inside a div having a strange space around them, etc. Example #1: Unwanted padding-bottom of a div Example #2: https://developer.mozilla.org/en/Images,_Tables,_and_Mysterious_Gaps Example #3: cannot…
Fumbles
  • 83
  • 5
1
2 3
22 23