
Security News
Deno 2.4 Brings Back deno bundle, Improves Dependency Management and Observability
Deno 2.4 brings back bundling, improves dependency updates and telemetry, and makes the runtime more practical for real-world JavaScript projects.
github.com/latonaio/golang-pdf-library
以下をソースとしてpdfを生成する。
※各ファイル名はパラメータで変更可能
サンプル実行用パラメータ
s{
"version" : "1.0", // pdf module version
"orientation" : "landscape", // [landscape|portlait]
"size" : "A4", // size
"image" : "millsheet.pdf", // background image pdf
"styles" : { // define styles
"default" : { // default style
"fontFamily" : "xxxxx",
"fontSize" : 9,
"color" : "#000",
"underline" : false,
"horizontalAlignment" : "left",
"verticalAlignment" : "middle"
},
"default-numeric" : {
"style" : "default", // base style
"horizontalAlignment" : "right"
},
...
},
"fields" : [ // define fields
{ // simple field
"dataSource" : "customer", // data source(this must be value in data.json)
"style" : "default", // style(from styles)
"rect" : [ // rect to draw field
180, 100, 220, 12 // [x, y, width, height]
]
},
...
{ // record field
"dataSource" : "properties", // data source(this must be array in data.json)
"rect" : [ // rect to draw records
140, 293, 263, 90
],
"record" : { // define as record
"direction" : "x", // record direction
"size" : [ // size to draw record
52.6, 90 // [x, y]
],
"fields" : [ // define fields on record
{
"dataSource" : "labelEn", // data source(this must be records' member in data.json)
"style" : "default", // style(from styles)
"rect" : [ // offset rect in record
0, 0, 52.6, 15
]
},
{
"dataSource" : "max",
"style" : "default",
"rect" : [
0, 15, 52.6, 15 // offset rect in record
]
},
{
"dataSource" : "unit",
"style" : "default",
"rect" : [
0, 30, 52.6, 15 // offset rect in record
]
},
...
]
}
},
...
]
}
{
"customer" : "Mill Cert Sample Customer",
...
"properties" : [
{
"labelEn" : "Yield Strength",
"max" : "245.000",
"unit" : "N/m ㎡"
},
{
"labelEn" : "Tensile Strength",
"max" : "640.500",
"unit" : "N/m ㎡"
},
...
]
}```
FAQs
Unknown package
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Deno 2.4 brings back bundling, improves dependency updates and telemetry, and makes the runtime more practical for real-world JavaScript projects.
Security News
CVEForecast.org uses machine learning to project a record-breaking surge in vulnerability disclosures in 2025.
Security News
Browserslist-rs now uses static data to reduce binary size by over 1MB, improving memory use and performance for Rust-based frontend tools.