Comments (2)
Omg
Groet,
Maurits
On Mar 20, 2015, at 14:53, Maurits van Rees [email protected] wrote:
This has worked fine for a long time as far as I know. But today downloading an https page as pdf misses all styles. Somehow the styles (plus presumably any images) cannot be loaded.
It may be due to this stackoverflow question: http://stackoverflow.com/questions/26529863/how-do-i-configure-wkhtmltopdf-to-request-https-pages-by-url-not-ip-on-windows-8
Possibly a recent openssl update on the server causes this, but that is a guess.
It does not matter whether wkhtmltopdf itself is running on the server that hosts the https website, or locally on my laptop. This gets executed:
parts/wkhtmltopdf/wkhtmltopdf --disable-javascript --toc-header-text Inhoudsopgave --margin-right 10 --margin-left 10 --margin-bottom 10 --margin-top 10 --print-media-type file:///tempfile.html /tmp/tempfile.pdf
Any https links in tempfile.html cannot be loaded. When I replace https with http, it works just fine:
cat tempfile.html | sed "s/https/http/g" > newfile.html
I tried just now with running wkhtmltopdf on https://google.com, but that looks fine. So there may be something wrongly configured on the server.
Workaround that I did on the server to fix it: I edited transforms/wk.py and in the html_to_pdf function I added a line source = source.replace('https://', 'http://'). (Yes, I did that by editing the collective.sendaspdf distribution on the server. I am bad.)
—
Reply to this email directly or view it on GitHub.
from collective.sendaspdf.
@maurits: looks like you are still getting these message and are still annoyed by it. But you are still the only one who can stop that. You are watching the collective.sendaspdf repository. If you are not interested, just stop watching. Simply visit this page and click 'Not Watching': https://github.com/zestsoftware/collective.sendaspdf/subscription
from collective.sendaspdf.
Related Issues (7)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from collective.sendaspdf.