Giter Club home page Giter Club logo

htmlwithimagestopdf's Introduction

Hi there πŸ‘‹

Personal knowledge base: notes.andstuff.dev

Top

  • dependabot-vuln-viewer 2β˜† β€” Displays Dependabot security alerts for multiple GitHub repositories.
  • kraken-api-java 50β˜† β€” Java library to query the Kraken REST API.
  • crypto-tools 2β˜† β€” Miscellaneous cryptocurrency-related tools (formerly binance-staking-overview).

Misc

  • HTMLWithImagesToPDF 39β˜† β€” Showcasing a bug in iOS when generating a PDF from an HTML page using UIMarkupTextPrintFormatter.
  • opaque-impl 1β˜† β€” PoC implementation in SageMath of OPAQUE, an asymmetric PAKE protocol.
  • so3-support-graphique β€” My Bachelor project consisted of adding GUI support for the school's own operating system (SO3) using LVGL. The project is hosted here.
  • maven-basics β€” Maven from scratch.
  • sh β€” My very own post-install scripts and dot files, please don't use them.

Cryptocurrency

  • yield-borg β€” Chart of the different yields available on the SwissBorg platform.
  • smart-contracts 3β˜† β€” Set of smart contracts developed for educational purposes.

Dictionary

  • wiktionary-to-kindle 29β˜† β€” Converts Wiktionary entries into a MOBI dictionary for Kindle, works but will not render templates making it useless. Ideally, use Wiktionary HTML dumps.
  • wiktionarize β€” Simple web pages that searches words of a text in multiple Wiktionaries.
  • epub-dictionary β€” An abandoned attempt at creating an EPUB library.

Code examples

Swift gists

  • AddJPEGComment.swift 2β˜† β€” Add a JPEG comment marker to file in pure Swift.
  • EXIFUserComment.swift 10β˜† β€” Get and set an EXIF UserComment to a JPEG image using the ImageIO framework.
  • MemoryAddress.swift 34β˜† β€” Get the memory address of both class and structure instances in Swift.
  • iOSCreatePDF.swift 75β˜† β€” iOS, Swift: Create a PDF file from an HTML string.
  • Uptime.swift 4β˜† β€” Get boot time and uptime for macOS & iOS.

Misc gists

  • uptime.c β€” Get boot time and uptime on macOS in C.
  • pdk.c β€” Create a password-derived key using libsodium.
  • AllJCAServices.java β€” List all JCA security provider services and export them to a CSV file.
  • fk_generate_delete.sql β€” Oracle: outputs the necessary delete statements to delete a row and all rows preventing it from being deleted because of "child record found" error.
  • fk_delete_recursive.sql β€” Oracle: delete a row and all rows preventing it to be deleted because of "child record found" errors.

Dynamic statistics

Most starred repositories

Description stargazers forks issues
Java library to query the Kraken REST API. 50 28 8
Showcasing a bug in iOS when generating a PDF from an HTML page using UIMarkupTextPrintFormatter. 39 4 1
Converts Wiktionary entries into a MOBI dictionary for Kindle, works but will not render templates making it useless. Ideally, use Wiktionary HTML dumps. 29 9 7

Most starred gists

Description stargazers forks comments
iOS, Swift: Create a PDF file from an HTML string. 75 14 29
Get the memory address of both class and structure instances in Swift. 34 8 0
Get and set an EXIF UserComment to a JPEG image using the ImageIO framework. 10 2 0

Misc

Profile Top Langs

htmlwithimagestopdf's People

Contributors

nyg avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

htmlwithimagestopdf's Issues

UIWebView required to render images

Hello,

I have a few apps that use UIWebView to show html content which was then converted into a PDF, then emailed. Ive recently decided to convert any UIWebViews to WKWebView due to the former's deprecation. I only use base64 encoded images in my templates but I also noticed that this change from UI.. to WK.. does not render images in the PDF properly anymore.

I stumbled upon this repo in my google adventure for a fix and thought I'd give it a spin. However I did notice one thing: The pdf creation only properly shows images if the UIWebView is still present and rendering the content also (which it is in this example).

Following the steps from the [readme]:(https://github.com/nyg/HTMLWithImagesToPDF/blob/master/README.md#bug)

A direct clone with no changes yields the following (https://github.com/hiimtmac/HTMLWithImagesToPDF/tree/master):
with-uiwebview

Everything works nicely!

However, a different branch where I removed the UIWebView yields the following (https://github.com/hiimtmac/HTMLWithImagesToPDF/tree/removing-uiwebview):
no-uiwebview

In this case, the lack of UIWebView seems to result in images no longer rendering properly. Its like the fact the images got run through the UIWebView allows it to be properly rendered in a pdf. So I'm scratching my head for a solution!

Do you have any other ideas how to get images to render properly with WKWebView html content -> PDF??? Or also let me know if I've made some colossal mistake on my end and its something im doing wrong!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.