Skip to content

Instantly share code, notes, and snippets.

View tejash-jl's full-sized avatar
👨‍💻
Contributing

Tejash JL tejash-jl

👨‍💻
Contributing
View GitHub Profile
@tejash-jl
tejash-jl / PDFGenerator.java
Created April 12, 2021 10:19
PDFBox multi language support
package com.example.evaluatems;
import org.apache.pdfbox.pdmodel.PDDocument;
import org.apache.pdfbox.pdmodel.PDPage;
import org.apache.pdfbox.pdmodel.PDPageContentStream;
import org.apache.pdfbox.pdmodel.font.PDFont;
import org.apache.pdfbox.pdmodel.font.PDType0Font;
import org.apache.pdfbox.pdmodel.font.PDType1Font;
import org.apache.pdfbox.pdmodel.font.encoding.GlyphList;
import org.apache.pdfbox.pdmodel.font.encoding.WinAnsiEncoding;
@tejash-jl
tejash-jl / pc
Last active July 11, 2022 04:52
{
"@context": [
"https://www.w3.org/2018/credentials/v1",
"https://gist.githubusercontent.com/priyanka-TL/fad903c8c33916ac0c1429109743678e/raw/549de616e123a7cfe004b24996fc26291c53c2b8/v1_context.json",
"https://gist.githubusercontent.com/tejash-jl/f80b32c053c3bcb62aaaa80514375a88/raw/cb18fdd90777a2f924f1e503d236d0a51d55c5a3/proj_cer_context"
],
"type": [
"VerifiableCredential"
],
"id":"did:sunbird:{{osid}}",
{
"@context": {
"@version": 1.1,
"@protected": true,
"ProjectCertificate": {
"@id": "https://raw.githubusercontent.com/project-sunbird/sunbird-devops/release-4.8.0/kubernetes/helm_charts/sunbird-RC/registry/templates/READ.md#TrainingCertificate",
"@context": {
"id": "@id",
"@version": 1.1,
"@protected": true,
{
"@context": [
"https://www.w3.org/2018/credentials/v1",
{
"@context": {
"@version": 1.1,
"@protected": true,
"Beneficiary": {
"@id": "https://github.com/sunbird-specs/vc-specs#Beneficiary",
"@context": {
{
"@context": [
"https://www.w3.org/2018/credentials/v1",
{
"@context": {
"@version": 1.1,
"@protected": true,
"Beneficiary": {
"@id": "https://github.com/sunbird-specs/vc-specs#Beneficiary",
"@context": {
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
<html lang="en">
<head>
<style>
.line{text-align:center;font-family: 'Imperial Script';font-size: 2em;}
</style>
</head>
<body style="width: 900px">
<div style="margin: 1em;border: 3px solid darkgoldenrod;border-radius: 5px;background-color: lightgoldenrodyellow;height: 600px">
<div style="padding:1em;text-align:center;font-family: Canterbury;font-size: 4em;">Death Certificate</div>
<table width="100%"><tr>
<html lang="en">
<head>
<style>
.line{text-align:center;font-family: 'Imperial Script';font-size: 2em;}
</style>
</head>
<body style="width: 900px">
<div style="margin: 1em;border: 3px solid darkgoldenrod;border-radius: 5px;background-color: lightgoldenrodyellow;height: 600px">
<div style="padding:1em;text-align:center;font-family: Canterbury;font-size: 4em;">Seminar Ticket</div>
<table width="100%"><tr>
[{
"@context": [
"https://www.w3.org/2018/credentials/v1",
"https://www.schema.org",
"https://www.proofofworkexperience.org/2021/credentials/v1"
"http://purl.org/dc/terms/",
],
"@id": "uuid1"
"@type": ["VerifiableCredential", "ProofOfWorkExperience"],
"issuer": {
[{
"@context": [
"https://www.w3.org/2018/credentials/v1",
"https://www.schema.org",
"https://www.proofoftrainingexperience.org/2021/credentials/v1"
"http://purl.org/dc/terms/",
],
"@id": "uuid1"
"@type": ["VerifiableCredential", "ProofOfTraining"],
"issuer": {