title: Java utility for printing PDF
body: <p>I'm making a utility to grammatically making a document and printing it. </p>
  
  <p>I am gonna apologize, I'm not good at formulating this and there may be some confusion, please bare over with me :(</p>
  
  <p>This project is mostly for making a user friendly utility for creating documents in your program and printing it and also as a learning experience.</p>
  
  <p>It uses objects which I will convert to MarkDown as its easy to work with, I convert it to HTML as its going to be used in a web form.</p>
  
  <p>The problem occurs when I want the program to print this HTML file that i have now created to a PDF.</p>
  
  <p>I've searched for a solution for a very long time but have yet to find results, all that I've found was either out of date, filled with bugs or just could not do what I wanted.</p>
  
  <p>I have tried iText as that seems to be the most popular choice but as stated above, everything I found was out of date and no longer useful, mostly because the classes they speak of do no longer exist.</p>
  
  <p>What I do want is eventually independence of other libraries so that is my ultimate goal, but for now I want a way to print a locally stored HTML file as a PDF, it needs to be CSS compatible.</p>
  
  <p>As an extra thing if anyone could point me in the direction of learning how to make MarkDown to HTML and printing HTML to PDF I would be more than happy.</p>
  
  <p>Edit 1:
  Stephan C pointet the question is too wide and difficult to answer, I will try to explain:</p>
  
  <p>Main thing I want is to print a PDF file using an HTML file and CSS which is stored locally.</p>
  
  <p>Optional solutions is I would love to learn how to code this myself instead of implementing libraries, for example markdown4j and iText. Yes I know that's a lot to take on, but as stated this is a learning experience for me.</p>