{"id":18537809,"url":"https://github.com/rafalkaron/princepal","last_synced_at":"2026-04-30T13:33:33.148Z","repository":{"id":114583015,"uuid":"280659986","full_name":"rafalkaron/princepal","owner":"rafalkaron","description":"Preview your PDFs like a prince!","archived":false,"fork":false,"pushed_at":"2023-01-21T17:41:48.000Z","size":12520,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-05-15T01:40:05.723Z","etag":null,"topics":["automation","css","html5","pdf","pdf-generation","prince","prince-xml","python-script","python3"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/rafalkaron.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-07-18T13:16:19.000Z","updated_at":"2023-01-21T17:42:05.000Z","dependencies_parsed_at":null,"dependency_job_id":"81944cd2-e37a-4525-a2aa-273d79af289a","html_url":"https://github.com/rafalkaron/princepal","commit_stats":null,"previous_names":[],"tags_count":8,"template":false,"template_full_name":null,"purl":"pkg:github/rafalkaron/princepal","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rafalkaron%2Fprincepal","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rafalkaron%2Fprincepal/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rafalkaron%2Fprincepal/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rafalkaron%2Fprincepal/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rafalkaron","download_url":"https://codeload.github.com/rafalkaron/princepal/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rafalkaron%2Fprincepal/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32466333,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-30T13:12:12.517Z","status":"ssl_error","status_checked_at":"2026-04-30T13:12:06.837Z","response_time":57,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["automation","css","html5","pdf","pdf-generation","prince","prince-xml","python-script","python3"],"created_at":"2024-11-06T19:40:26.269Z","updated_at":"2026-04-30T13:33:33.131Z","avatar_url":"https://github.com/rafalkaron.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# PrincePal\n*Preview your PDFs like a prince!*\n\n**Before you begin:**\n* Download the latest **PrincePal** version. See [PrincePal Download](https://github.com/rafalkaron/PrincePal/releases/latest)  \n**NOTE:** You can download a Windows bundle, macOS bundle, or a non-compiled Python script.\n* If you want to run non-compiled **PrincePal**, install **Python 3.8.2** or higher. See [Properly Installing Python](https://docs.python-guide.org/starting/installation/).\n* Install **Prince**. See [Prince - Getting Started](https://www.princexml.com/doc/installing/).\n* Begin developing a Prince PDF style. See [Your First Document](https://www.princexml.com/doc/first-doc/).  \n**TIP:** Ensure that the HTML files do not contain any broken references because they significantly slow down conversion.\n\n**Do any of the following:** \n* To convert the HTML files in the **PrincePal** directory:\n    * Put **PrincePal** in the HTML files directory.\n    * Run **PrincePal** with the *-cwd* attribute.\n* To convert the HTML files in a given directory, run **PrincePal** with the *-i* attribute followed by the directory path.\n* To convert a single HTML file, run **PrincePal** with the *-i* attribute followed by the file path.\n* If needed, accept any security prompts. See [Accepting macOS Security Prompts](https://github.com/rafalkaron/PrincePal/wiki/Accepting-macOS-Security-Prompts) or [Accepting Windows Security Prompts](https://github.com/rafalkaron/PrincePal/wiki/Accepting-Windows-Security-Prompts).  \n**NOTE:** You may need to run **PrincePal** as an administrator.  \nEvery PDF file opens in the default application determined by your OS settings. I recommend setting a web browser (e.g. Chrome or Brave) to open PDFs by default in your OS settings. This way, each time you run **PrincePal**, a new tab opens so you can quickly compare your styling modifications.\n\n**Optional arguments:**\n* To use a CSS style, use the *-s* attribute followed by the file path to the CSS file.\n* To prevent the PDF preview from opening use the *-nopr* attribute.\n* To set the number of concurrent jobs, use the *-jobs* attribute.  \n**NOTE:** The number of concurrent conversion, removal, and preview jobs defaults to 12. You can use this attribute with other attributes.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frafalkaron%2Fprincepal","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frafalkaron%2Fprincepal","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frafalkaron%2Fprincepal/lists"}