
Product
Announcing Precomputed Reachability Analysis in Socket
Socket’s precomputed reachability slashes false positives by flagging up to 80% of vulnerabilities as irrelevant, with no setup and instant results.
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.
Product
Socket’s precomputed reachability slashes false positives by flagging up to 80% of vulnerabilities as irrelevant, with no setup and instant results.
Product
Socket is launching experimental protection for Chrome extensions, scanning for malware and risky permissions to prevent silent supply chain attacks.
Product
Add secure dependency scanning to Claude Desktop with Socket MCP, a one-click extension that keeps your coding conversations safe from malicious packages.