{"id":2742,"date":"2021-03-15T09:03:46","date_gmt":"2021-03-15T00:03:46","guid":{"rendered":"https:\/\/qol-kk.com\/wp2\/?p=2742"},"modified":"2021-03-15T09:03:46","modified_gmt":"2021-03-15T00:03:46","slug":"post-2742","status":"publish","type":"post","link":"https:\/\/qol-kk.com\/wp2\/blog\/2021\/03\/15\/post-2742\/","title":{"rendered":"Django\uff1aReportLab\u306b\u3088\u308bPDF\u30c7\u30fc\u30bf\u4f5c\u6210\u3067\u82e6\u6226\u3057\u305f\u3068\u3053\u308d"},"content":{"rendered":"<h2>Django\uff1aReportLab\u306b\u3088\u308bPDF\u30c7\u30fc\u30bf\u4f5c\u6210\u3067\u82e6\u6226\u3057\u305f\u3068\u3053\u308d<\/h2>\n<p>\u300eReportLab\u300f\u306fDjango\u3067PDF\u51fa\u529b\u3092\u3057\u3088\u3046\u3068\u3057\u305f\u3068\u304d\u306b\u3088\u304f\u9078\u629e\u3055\u308c\u308b\u30e9\u30a4\u30d6\u30e9\u30ea\u306a\u306e\u3060\u305d\u3046\u3067\u3059\u3002<\/p>\n<p>\u6700\u8fd1\u3001\u62b1\u3048\u3066\u3044\u305f\u30d7\u30ed\u30b0\u30e9\u30e0\u306e\u65b9\u306e\u6848\u4ef6\u304c\u3072\u3068\u6bb5\u843d\u3057\u305f\u306e\u3067\u300c\u4ed6\u3092\u63a2\u305d\u3046\u300d\u3068\u601d\u3063\u305f\u306e\u3067\u3059\u304c\u300c\u65b0\u3057\u3044\u30dd\u30fc\u30c8\u30d5\u30a9\u30ea\u30aa\u3092\u304f\u308c\u300d\u3068\u8a00\u308f\u308c\u307e\u3059\u3002<br \/>\n\u6bce\u56deExcel\u3067\u66f8\u304d\u3060\u3059\u306e\u3082\u5927\u5909\u306a\u306e\u3067\u300c\u4ed5\u4e8b\u5c65\u6b74\u3092DB\u5316\u3057\u3066\u5e38\u306b\u6700\u65b0\u3092\u51fa\u529b\u3067\u304d\u308b\u3088\u3046\u306b\u4ed5\u8fbc\u3093\u3067\u3057\u307e\u304a\u3046\u300d\u3068\u601d\u3044\u5b9f\u88c5\u3057\u3066\u307f\u307e\u3057\u305f\u3002<\/p>\n<p>\u3067\u3001\u6240\u611f\u3067\u3059\u304c\u300c\u3081\u3093\u3069\u304f\u305b\uff5e\uff5e\uff5e\u300d\u3068\u3002\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u306e\u521d\u4f53\u9a13\u304c\u3053\u308c\u3060\u3063\u305f\u3089\u6b7b\u306d\u308b\u304b\u3082\u3002<br \/>\n\u5c11\u3057\u3067\u3082\u697d\u306b\u4f5c\u308b\u65b9\u6cd5\u3092\u542b\u3081\u3001\u307e\u3068\u3081\u3066\u3044\u304d\u305f\u3044\u3068\u601d\u3044\u307e\u3059\u3002<\/p>\n<h3>ReportLab\u304c\u4f7f\u3048\u308b2\u3064\u306e\u65b9\u6cd5<\/h3>\n<p>\u79c1\u306f\u52c9\u5f37\u3092\u517c\u306d\u3066\u3044\u305f\u306e\u3067\u5927\u5909\u306a\u65b9\u3092\u9078\u629e\u3057\u307e\u3057\u305f\u304c\u300eReportLab\u300f\u3067\u306f2\u3064\u306e\u65b9\u6cd5\u3067PDF\u3092\u4f5c\u6210\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<div class=\"borderBox\">\n<ol>\n<li>\u30bc\u30ed\uff08\u767d\u7d19\uff09\u304b\u3089\u7f6b\u7dda\u306a\u3069\u306e\u66f8\u5f0f\u3082\u542b\u3081\u30d5\u30a1\u30a4\u30eb\u3092\u4f5c\u6210\u3059\u308b<\/li>\n<li>\u3042\u3089\u304b\u3058\u3081\u7528\u610f\u3057\u305f\u66f8\u5f0fPDF\u3092\u5229\u7528\u3057\u3066\u30d5\u30a1\u30a4\u30eb\u3092\u4f5c\u6210\u3059\u308b<\/li>\n<\/ol>\n<\/div>\n<p>[\u624b\u6bb51]\u306e\u65b9\u304c\u9762\u5012\u3067\u3059\u3002\u4f55\u304c\u9762\u5012\u3067\u3069\u3046\u3059\u308b\u3068\u697d\u306b\u306a\u308b\u304b\u306f\u5f8c\u8ff0\u3059\u308b\u3068\u3057\u3066\u3001\u307e\u305a\u306f[\u624b\u6bb52]\u306e\u69cb\u6210\u304b\u3089\u3002<\/p>\n<pre data-language=\"language-python\">from io import BytesIO\r\nfrom reportlab.pdfgen import canvas\r\nfrom reportlab.pdfbase.cidfonts import UnicodeCIDFont\r\nfrom reportlab.pdfbase import pdfmetrics\r\nfrom PyPDF2 import PdfFileWriter, PdfFileReader\r\nfrom reportlab.lib.pagesizes import A4\r\nfrom reportlab.lib.colors import pink, black, red, blue, green\r\n\r\ndef CreatePDFWithTemplate(request):\r\n    packet = BytesIO()\r\n    new_pdf = PdfFileReader(packet)\r\n\r\n    # \u66f8\u5f0f\u306e\u5165\u3063\u305fPDF\u3092\u8aad\u307f\u8fbc\u3080\r\n    existing_pdf = PdfFileReader(open(\"sample.pdf\", \"rb\"))\r\n    output = PdfFileWriter()\r\n    page = existing_pdf.getPage(0)\r\n    page.mergePage(new_pdf.getPage(0))\r\n    output.addPage(page)\r\n(\u5f8c\u7565)<\/pre>\n<p>\u7c21\u6f54\u3067\u3059\u306d\u3002\u30dd\u30a4\u30f3\u30c8\u306f\u3010\u66f8\u5f0fPDF\u306b\u30b9\u30ad\u30e3\u30ca\u3067\u8aad\u307f\u8fbc\u3093\u3060\u30c7\u30fc\u30bf\u3092\u4f7f\u308f\u306a\u3044\u4e8b\u3011\u3067\u3059\u3002<br \/>\n\u3053\u308c\u3092\u884c\u3063\u3066\u3057\u307e\u3046\u3068\u66f8\u304d\u8fbc\u307f\u6642\u306bFor\u30eb\u30fc\u30d7\u304c\u4f7f\u3048\u306a\u304f\u306a\u3063\u3066\u3057\u307e\u3044\u307e\u3059\u3002<br \/>\n\u7406\u7531\u306f\u300c\u30b9\u30ad\u30e3\u30ca\u3092\u4f7f\u3046\u3068\u7f6b\u7dda\u306e\u4f4d\u7f6e\u306a\u3069\u304c\u5fae\u5999\u306b\u305a\u308c\u3066\u3044\u308b\u304b\u3089\u300d\u306a\u306e\u3067\u3001For\u30eb\u30fc\u30d7\u3067\u4e00\u89a7\u304b\u3089\u5fc5\u8981\u6570\u51fa\u529b\u3057\u3088\u3046\u3068\u3057\u3066\u3082\u300c2\u5217\u76ee\u307e\u3067\u306fOK\u3060\u3051\u30693\u5217\u76ee\u304c\u7f6b\u7dda\u306e\u4e0a\u306b\u6587\u5b57\u304c\u5165\u3063\u305f\u300d\u306a\u3093\u3066\u4e8b\u304c\u767a\u751f\u3057\u307e\u3059\u3002<\/p>\n<p>\u4f7f\u3046\u969b\u306fExcel\u306a\u3069\u3067\u4f5c\u6210\u3057\u305f\u66f8\u5f0f\u3092\u305d\u306e\u307e\u307ePDF\u51fa\u529b\u3057\u305f\u3082\u306e\u3092\u5229\u7528\u3057\u307e\u3057\u3087\u3046\u3002<\/p>\n<h3>\u66f8\u5f0f\u304b\u3089\u3059\u3079\u3066\u3092ReportLab\u3067\u4f5c\u6210\u3059\u308b\u3068\u30ba\u30ec\u306e\u306a\u3044PDF\u3092\u4f5c\u6210\u3067\u304d\u308b<\/h3>\n<p>\u7f6b\u7dda\u306a\u3093\u304b\u3092\u542b\u3081\u767d\u7d19\u304b\u3089\u3059\u3079\u3066\u306e\u51fa\u529b\u3092\u30b3\u30f3\u30c8\u30ed\u30fc\u30eb\u3059\u308c\u3070\u30ba\u30ec\u306f\u751f\u3058\u307e\u305b\u3093\u3002<br \/>\n\u3067\u3082\u306d\u3001\u884c\u6570\u3068\u624b\u6570\u304c\u5897\u3048\u3066\u3001\u4f55\u3088\u308a\u3082\u7f6b\u7dda\u3084\u67a0\u306e\u4f4d\u7f6e\u6c7a\u3081\u304c\u8d85\u9762\u5012\u3060\u3063\u305f\u308a\u3057\u307e\u3059\u3002<\/p>\n<p>\u3053\u306e\u3042\u305f\u308a\u306fLaravel\u3067\u4f7f\u3063\u3066\u3044\u305f\u3010phpspreadsheet\u3011\u3068\u304b\u512a\u308c\u3066\u307e\u3059\u3088\u306d\u3002<br \/>\nHTML\u3067\u66f8\u3044\u305fView\u3092\u305d\u306e\u307e\u307ePDF\u306b\u51fa\u529b\u3057\u3066\u304f\u308c\u308b\u304b\u3089\u6163\u308c\u305f\u30b3\u30fc\u30c9\u3067\u3059\u3079\u3066\u3092\u69cb\u7bc9\u3067\u304d\u308b\u3002<br \/>\n\u3046\u3093\u3001\u7d20\u6674\u3089\u3057\u3044\u3002<\/p>\n<h4>PeportLab\u306e\u9762\u5012\u306a\u6240\u3092\u307e\u3068\u3081\u3066\u307f\u308b\u3068\u3053\u3093\u306a\u611f\u3058<\/h4>\n<div class=\"paperBox\">\n<ol>\n<li>\u30dd\u30a4\u30f3\u30c8\u3068\u30df\u30ea\uff08\u307e\u305f\u306fcm\uff09\u3068\u306e\u5909\u63db\/\u63db\u7b97\u304c\u9762\u5012<\/li>\n<li>\u7f6b\u7dda\u306e\u91cd\u306a\u308a\u3067\u4e00\u90e8\u5206\u3060\u3051\u7dda\u304c\u592a\u304f\u306a\u3063\u305f\u308a\u3059\u308b\u3053\u3068\u304c\u3042\u308b<\/li>\n<li>\u753b\u50cf\u306e\u914d\u7f6e\u3068\u30b5\u30a4\u30ba\u5909\u66f4<\/li>\n<li>\u884c\u6570\u304c\u5897\u3048\u3066\u898b\u96e3\u3044\uff06\u554f\u984c\u500b\u6240\u3092\u63a2\u3057\u96e3\u3044<\/li>\n<\/ol>\n<\/div>\n<p>\u66f8\u5f0fPDF\u306e\u8aad\u307f\u8fbc\u307f\u3067\u69cb\u7bc9\u3059\u308b\u3068[1,2,4]\u304c\u5927\u5e45\u6539\u5584\u3055\u308c\u308b\u306e\u3067\u82e6\u52b4\u306f\u5c11\u306a\u304f\u306a\u308a\u307e\u3059\u3002<\/p>\n<h3>\u30bc\u30ed\u30d9\u30fc\u30b9\u3067\u69cb\u7bc9\u3057\u306a\u304f\u3066\u306f\u3044\u3051\u306a\u3044\u6642\u306b\u697d\u3059\u308b\u30dd\u30a4\u30f3\u30c8<\/h3>\n<p>\u305d\u308c\u3067\u3082\u30bc\u30ed\u30d9\u30fc\u30b9\u3067\u4f5c\u6210\u3057\u306a\u304f\u3061\u3083\u306a\u3089\u306a\u3044\u5834\u5408\u306f\u6b21\u306e\u30dd\u30a4\u30f3\u30c8\u3092\u62bc\u3055\u3048\u307e\u3057\u3087\u3046\u3002<\/p>\n<div class=\"paperBox\">\n<ol>\n<li>\u66f8\u5f0f(\u30d5\u30a9\u30fc\u30de\u30c3\u30c8)\u306f\u30b0\u30ea\u30c3\u30c9\u8a2d\u8a08\u306b\u3059\u308b<\/li>\n<li>\u8a2d\u8a08\u3057\u305f\u30b0\u30ea\u30c3\u30c9\u306f\u51fa\u529b\u3057\u3066\u624b\u5143\u306b\u7f6e\u3044\u3066\u304a\u304f<\/li>\n<li>1\u30b0\u30ea\u30c3\u30c9\u306e\u30b5\u30a4\u30ba\u3092\u8a18\u9332\u3057\u3066\u304a\u304f\uff08for\u30eb\u30fc\u30d7\u3067\u591a\u7528\u3057\u307e\u3059\uff09<\/li>\n<li>PeportLab\u3078\u306e\u30b5\u30a4\u30ba\u6307\u793a\u306f mm \u306b\u7d71\u4e00\u3059\u308b \u203bpt\u3067\u3082\u3088\u3044\u306e\u3067\u3059\u304c\u6163\u308c\u308b\u307e\u3067\u52d8\u306f\u50cd\u304d\u306b\u304f\u3044\u3067\u3059\u3002<\/li>\n<\/ol>\n<\/div>\n<h3>\u66f8\u5f0f\u30d5\u30a9\u30fc\u30de\u30c3\u30c8\uff08\u30b0\u30ea\u30c3\u30c9\uff09\u3092Excel\u3067\u66f8\u3053\u3046\u3068\u3059\u308b\u3068\u60a9\u3080\u3068\u3053\u308d<br \/>\n<a href=\"https:\/\/qol-kk.com\/wp2\/wp-content\/uploads\/2021\/03\/image-1.png\"><img loading=\"lazy\" decoding=\"async\" data-attachment-id=\"2746\" data-permalink=\"https:\/\/qol-kk.com\/wp2\/blog\/2021\/03\/15\/post-2742\/image-28\/\" data-orig-file=\"https:\/\/qol-kk.com\/wp2\/wp-content\/uploads\/2021\/03\/image.png\" data-orig-size=\"860,365\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"image\" data-image-description=\"\" data-image-caption=\"\" data-large-file=\"https:\/\/qol-kk.com\/wp2\/wp-content\/uploads\/2021\/03\/image.png\" class=\"alignnone size-medium wp-image-2746\" src=\"https:\/\/qol-kk.com\/wp2\/wp-content\/uploads\/2021\/03\/image-300x127.png\" alt=\"\" width=\"300\" height=\"127\" srcset=\"https:\/\/qol-kk.com\/wp2\/wp-content\/uploads\/2021\/03\/image-300x127.png 300w, https:\/\/qol-kk.com\/wp2\/wp-content\/uploads\/2021\/03\/image-768x326.png 768w, https:\/\/qol-kk.com\/wp2\/wp-content\/uploads\/2021\/03\/image.png 860w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><\/h3>\n<p>Excel\u306f[ mm ]\u3068\u3044\u3046\u5358\u4f4d\u3067\u4f5c\u3089\u308c\u3066\u3044\u307e\u305b\u3093\u3002pt\u3068\u30d4\u30af\u30bb\u30eb\u3067\u30b3\u30f3\u30c8\u30ed\u30fc\u30eb\u3059\u308b\u3053\u3068\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<div class=\"borderBox\">\n<ul>\n<li>1\u30a4\u30f3\u30c1 \uff1d 25.4mm<\/li>\n<li>1\u30dd\u30a4\u30f3\u30c8 = 1\u30a4\u30f3\u30c1\u306e72\u5206\u5272\u3000=\u300025.4 \u00f7 72 mm\u3000= 0.352777777777778 mm<\/li>\n<li>A4\u30b5\u30a4\u30ba = 210\u00d7297mm\u3000=\u3000595.2759 \u00d7 841.8898pt<\/li>\n<\/ul>\n<\/div>\n<p>Excel\u306e\u5acc\u306a\u3068\u3053\u308d\u306f\u7e26\u6a2a\u3092\u540c\u3058\u30d4\u30af\u30bb\u30eb\u306b\u3057\u3066\u30bb\u30eb\u3092\u6b63\u65b9\u5f62\u306b\u898b\u7acb\u3066\u3066\u307f\u3066\u3082\u3001\u7e26\u6a2a\u306e\u30dd\u30a4\u30f3\u30c8\u5024\u304c\u5927\u304d\u304f\u7570\u306a\u3063\u3066\u3044\u3066\u4f55\u3092\u4fe1\u3058\u308c\u3070\u3088\u3044\u304b\u308f\u304b\u3089\u306a\u3044\u70b9\u3067\u3059\u3002<br \/>\n\u30dd\u30a4\u30f3\u30c8\u3063\u3066\u6c7a\u307e\u3063\u305f\u5024\u306b\u306a\u308b\u7b48\u306a\u306e\u3067\u3059\u304c\u3001Excel\u3067\u306f\u3042\u307e\u308a\u4fe1\u7528\u3057\u3066\u306f\u3044\u3051\u307e\u305b\u3093\u3002<br \/>\n\u305d\u3057\u3066\u6050\u308d\u3057\u3044\u3053\u3068\u306b\u3001\u7e26\u6a2a\u306e\u30d4\u30af\u30bb\u30eb\u30b5\u30a4\u30ba\u3092\u5408\u308f\u305b\u3066\u3082\u7e26\u6a2a\u306e\u51fa\u529b\u30b5\u30a4\u30ba\u306f\u540c\u3058\u306b\u306a\u308a\u307e\u305b\u3093\u3002<br \/>\n\u3053\u3046\u3044\u3046\u6642\u306f\u81ea\u5206\u3067\u6c7a\u3081\u305f\u30b0\u30ea\u30c3\u30c9\u3092\u30d9\u30fc\u30b9\u306b\u67a0\u306e\u914d\u7f6e\u3092\u884c\u3063\u3066\u3044\u304f\u306e\u304c\u6700\u5584\u624b\u6bb5\u3067\u3059\u3002<\/p>\n<h4>\u30b0\u30ea\u30c3\u30c9\u306e\u4f8b<\/h4>\n<p><a href=\"https:\/\/qol-kk.com\/wp2\/wp-content\/uploads\/2021\/03\/fd0d383269c66a16f50d01dee566c91e.png\"><img loading=\"lazy\" decoding=\"async\" data-attachment-id=\"2749\" data-permalink=\"https:\/\/qol-kk.com\/wp2\/blog\/2021\/03\/15\/post-2742\/attachment-0\/\" data-orig-file=\"https:\/\/qol-kk.com\/wp2\/wp-content\/uploads\/2021\/03\/fd0d383269c66a16f50d01dee566c91e.png\" data-orig-size=\"635,898\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"\u30b0\u30ea\u30c3\u30c9\" data-image-description=\"\" data-image-caption=\"\" data-large-file=\"https:\/\/qol-kk.com\/wp2\/wp-content\/uploads\/2021\/03\/fd0d383269c66a16f50d01dee566c91e.png\" class=\"size-medium wp-image-2749 alignleft\" src=\"https:\/\/qol-kk.com\/wp2\/wp-content\/uploads\/2021\/03\/fd0d383269c66a16f50d01dee566c91e-212x300.png\" alt=\"\" width=\"212\" height=\"300\" srcset=\"https:\/\/qol-kk.com\/wp2\/wp-content\/uploads\/2021\/03\/fd0d383269c66a16f50d01dee566c91e-212x300.png 212w, https:\/\/qol-kk.com\/wp2\/wp-content\/uploads\/2021\/03\/fd0d383269c66a16f50d01dee566c91e.png 635w\" sizes=\"auto, (max-width: 212px) 100vw, 212px\" \/><\/a>\u3053\u308c\u306f\u79c1\u304c\u3088\u304f\u4f7f\u3046\u30b0\u30ea\u30c3\u30c9\u3067\u3059\u3002<br \/>\nExcel\u3067\u7e26\u6a2a25\u30d4\u30af\u30bb\u30eb\u306b\u3059\u308b\u3068\u3001\u6a19\u6e96\u7684\u306a\u6709\u52b9\u5370\u5237\u7bc4\u56f2\u306b\u6a2a25\u30de\u30b9\u3001\u7e2640\u30de\u30b9\u3092\u5dee\u3057\u8fbc\u3080\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<br \/>\n1\u30de\u30b9\u30b5\u30a4\u30ba\u306f \u6a2a6.76mm\u00d7\u7e266.35mm<br \/>\n\u4e0a\u4e0b\u5de6\u53f3\u306b\u5165\u3063\u3066\u3044\u308b\u6570\u5b57\u306f\u3001\u5de6\u4e0b\u3092\u57fa\u6e96\u70b9\u3068\u3057\u305f\u3068\u304d\u306e\u9ad8\u3055\u3068\u5e45\u3067\u3059\u3002\u300ePeportLab\u300f\u3067\u306f\u5de6\u4e0b\u89d2\u304c\u57fa\u6e96\u70b9\uff080,0\uff09\u306b\u306a\u308b\u306e\u3067\u305d\u308c\u306b\u5408\u308f\u305b\u3066\u30b0\u30ea\u30c3\u30c9\u6570\u5024\u3092\u52a0\u7b97\u3057\u3066\u3044\u304d\u307e\u3059\u3002<br \/>\n\u3053\u306e\u30b0\u30ea\u30c3\u30c9\u3067\u306f\u3001\u4e0a\u4e0b\u306b24.675mm \u5de6\u53f3\u306b20.5mm \u306e\u4f59\u767d\u304c\u3067\u304d\u308b\u306e\u3067\u3001\u6a19\u6e96\u5370\u5237\u306b\u8fd1\u3044\u4f59\u767d\u3092\u78ba\u4fdd\u3067\u304d\u307e\u3059\u3002<\/p>\n<h3>PeportLab\u3078\u306e\u30b5\u30a4\u30ba\u6307\u793a\u3092\u3010\uff4d\uff4d\u3011\u306b\u7d71\u4e00\u3059\u308b<\/h3>\n<p>PeportLab\u3067\u306f\u5de6\u4e0b\u306e\u89d2\u3092\u57fa\u70b9\u3068\u3057\u3066\u30c6\u30fc\u30d6\u30eb\u3084\u6587\u5b57\u3092\u3069\u3053\u306b\u914d\u7f6e\u3059\u308b\u304b\u6307\u793a\u3092\u51fa\u3057\u307e\u3059\u3002<br \/>\n\u4e0a\u306e\u30b0\u30ea\u30c3\u30c9\u4f8b\u306e16pt\u6587\u5b57\u306eA\u3067\u3042\u308c\u3070\u3010 p.drawString(27.26 * mm, 234.23 * mm, 'A') \u3011\u3068\u3044\u3063\u305f\u5f62\u3067\u3059\u3002<br \/>\n\u3053\u306e[ \u6570\u5024 * mm ] \u3092\u5229\u7528\u3059\u308b\u305f\u3081\u306b\u306f\u5fc5\u8981\u306a\u95a2\u6570\u3092USE\u3057\u306a\u304f\u3066\u306f\u306a\u308a\u307e\u305b\u3093\u3002\u305d\u3093\u306a\u306e\u3092\u8af8\u3005\u542b\u3081\u305f\u5177\u4f53\u4f8b\u304c\u4e0b\u3067\u3059\u3002<\/p>\n<pre class=\"lang:default decode:true\">from reportlab.lib.units import mm\r\nfrom reportlab.platypus import Table\r\nfrom reportlab.platypus import TableStyle\r\nfrom reportlab.lib import colors\r\n\r\n\"\"\" Portfolio\u306e\u66f8\u5f0f\u8a2d\u5b9a \"\"\"\r\ndef portfolio_first_page(p, font_m, font_g, today):\r\n    # \u30dd\u30fc\u30c8\u30d5\u30a9\u30ea\u30aa \u30bf\u30a4\u30c8\u30eb\r\n    font_size = 16\r\n    p.setFont(font_m, font_size)\r\n    # (1)\u66f8\u304d\u51fa\u3057(\u6a2a\u4f4d\u7f6e, \u7e26\u4f4d\u7f6e, \u6587\u5b57)\r\n    p.drawString(20.5 * mm, 263 * mm, 'Profile')\r\n    # (2)\u4f5c\u6210\u65e5\r\n    p.setFont(font_m, 9)\r\n    p.drawString(121.14 * mm, 261 * mm, str(today.year) + ' \u5e74  ' + str(today.month) + ' \u6708  ' + str(today.day) + ' \u65e5\u73fe\u5728')\r\n\r\n    # (3)\u8a3c\u660e\u5199\u771f\r\n    # table\u3092\u4f5c\u6210\r\n    data = [\r\n        ['    \u8a3c\u660e\u5199\u771f'],\r\n    ]\r\n    # table\u306e\u5927\u304d\u3055\u6307\u5b9a\r\n    table = Table(data, colWidths=30 * mm, rowHeights=40 * mm)\r\n    # table\u306e\u88c5\u98fe\u8a2d\u5b9a\r\n    table.setStyle(TableStyle([\r\n        ('FONT', (0, 0), (0, 0), font_g, 12),  # \u30d5\u30a9\u30f3\u30c8\u30b5\u30a4\u30ba\r\n        ('BOX', (0, 0), (0, 0), 1, colors.black),  # \u7f6b\u7dda\r\n        ('VALIGN', (0, 0), (0, 0), 'MIDDLE'),  # \u30d5\u30a9\u30f3\u30c8\u4f4d\u7f6e\r\n    ]))\r\n    # table\u306e\u4f4d\u7f6e\r\n    table.wrapOn(p, 159.5 * mm, 226 * mm)\r\n    table.drawOn(p, 159.5 * mm, 226 * mm)\r\n\r\n    # (4) \u30d7\u30ed\u30d5\u30a3\u30fc\u30eb\r\n    data = [\r\n        ['\u30d5\u30ea\u30ac\u30ca',''],\r\n        ['\u6c0f\u540d',''],\r\n        ['\u751f\u5e74\u6708\u65e5',''],\r\n    ]\r\n    table = Table(data, colWidths=(27.04 * mm,108.16 * mm), rowHeights=(6.35 * mm, 12.7 * mm, 6.35 * mm))\r\n    table.setStyle(TableStyle([\r\n        ('FONT', (0, 0), (1, 2), font_g, 12),\r\n        ('BOX', (0, 0), (1, 2), 1, colors.black),\r\n        ('INNERGRID', (0, 0), (1, 2), 1, colors.black),\r\n        ('VALIGN', (0, 0), (1, 2), 'MIDDLE'),\r\n    ]))\r\n    table.wrapOn(p, 20.5 * mm, 234.2 * mm)\r\n    table.drawOn(p, 20.5 * mm, 234.2 * mm)\r\n\r\n    # (5)\u4f4f\u6240\r\n    data = [\r\n        ['\u9023\u7d61\u5148','\u3012',''],\r\n        ['','E-MAIL',''],\r\n    ]\r\n    table = Table(data, colWidths=(27.04 * mm,27.04 * mm,81.12 * mm), rowHeights=(6.35 * mm,6.35 * mm))\r\n    table.setStyle(TableStyle([\r\n        ('FONT', (0, 0), (0, 0), font_g, 12),\r\n        ('FONT', (1, 0), (2, 2), font_m, 9),\r\n        ('BOX', (0, 0), (0, 1), 1, colors.black),#\u5916\u67a0\u56f2\u3046\r\n        ('LINEBELOW', (1, 0), (2, 1), 1, colors.black),#\u4e0b\u90e8\u6a2a\u7dda\r\n        ('LINEAFTER', (2, 0), (2, 1), 1, colors.black),#\u53f3\u5074\u7e26\u7dda\r\n        ('VALIGN', (0, 0), (0, 0), 'MIDDLE'),\r\n        ('SPAN', (0, 0), (0, 1)),\r\n    ]))\r\n    table.wrapOn(p, 20.5 * mm, 221.5 * mm)\r\n    table.drawOn(p, 20.5 * mm, 221.5 * mm)\r\n\r\n    # (6)\u30d6\u30ed\u30af\/SNS\r\n    data = [\r\n        ['\u30d6\u30ed\u30af\/SNS','Twitter\uff1a','','Facebook\uff1a',''],\r\n        ['','Blog\uff1a','','',''],\r\n    ]\r\n    table = Table(data, colWidths=(27.04 * mm,27.04 * mm,40.56 * mm,40.56 * mm,33.8 * mm), rowHeights=(6.35 * mm,6.35 * mm))\r\n    table.setStyle(TableStyle([\r\n        ('FONT', (0, 0), (0, 0), font_g, 11),\r\n        ('FONT', (1, 0), (4, 2), font_m, 9),\r\n        ('BOX', (0, 0), (0, 1), 1, colors.black),\r\n        ('LINEBELOW', (1, 0), (4, 1), 1, colors.black),#\u4e0b\u90e8\u6a2a\u7dda\r\n        ('LINEAFTER', (4, 0), (4, 1), 1, colors.black),#\u53f3\u5074\u7e26\u7dda\r\n        ('LINEABOVE', (4, 0), (4, 0), 1, colors.black),#\u4e0a\u90e8\u6a2a\u7dda\r\n        ('VALIGN', (0, 0), (0, 0), 'MIDDLE'),\r\n        ('SPAN', (0, 0), (0, 1)),\r\n    ]))\r\n    table.wrapOn(p, 20.5 * mm, 208.8 * mm)\r\n    table.drawOn(p, 20.5 * mm, 208.8 * mm)\r\n\r\n    # (7)PR\u6587\r\n    data = [[\"\"]]\r\n    table = Table(data, colWidths=169 * mm, rowHeights=38.1 * mm)\r\n    table.setStyle(TableStyle([\r\n        ('FONT', (0, 0), (0, 0), font_g, 11),\r\n        ('BOX', (0, 0), (0, 0), 1, colors.black),\r\n        ('VALIGN', (0, 0), (0, 0), 'MIDDLE'),\r\n    ]))\r\n    table.wrapOn(p, 20.5 * mm, 170.7 * mm)\r\n    table.drawOn(p, 20.5 * mm, 170.7 * mm)\r\n\r\n    # (8)\u6700\u8fd1\u306e\u6848\u4ef6\r\n    p.setFont(font_m, font_size)\r\n    p.drawString(20.5 * mm, 158 * mm, '\u6700\u8fd1\u306e\u6848\u4ef6')\r\n    data = [[\"\u6848\u4ef61\"],[\"\u6848\u4ef62\"],[\"\u6848\u4ef63\"],[\"\u6848\u4ef64\"],]\r\n    table = Table(data, colWidths=169 * mm, rowHeights=(32 * mm,32 * mm,32 * mm,32 * mm))\r\n    table.setStyle(TableStyle([\r\n        ('FONT', (0, 0), (0, 3), font_g, 11),\r\n        ('BOX', (0, 0), (0, 3), 1, colors.black),\r\n        ('LINEBELOW', (0, 0), (0, 3), 1, colors.black),#\u4e0b\u90e8\u6a2a\u7dda\r\n        ('VALIGN', (0, 0), (0, 3), 'TOP'),\r\n    ]))\r\n    table.wrapOn(p, 20.5 * mm, 24.68 * mm)\r\n    table.drawOn(p, 20.5 * mm, 24.68 * mm)\r\n    # 1\u679a\u76ee\u7d42\u4e86\r\n\r\n    return\r\n\r\ndef portfolio_second_page(p, font_m, font_g, today):\r\n    \"\"\" 2\u30da\u30fc\u30b8\u76ee \u30b9\u30ad\u30eb\u30b7\u30fc\u30c8 \"\"\"\r\n    # (9)\u66f8\u304d\u51fa\u3057Skill_Sheet\r\n    font_size = 16\r\n    p.setFont(font_m, font_size)\r\n    p.drawString(20.5 * mm, 263 * mm, 'Skill_Sheet')\r\n\r\n    # (10)\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u8a00\u8a9e\r\n    data = [[\"\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u8a00\u8a9e\"],[\"\"]]\r\n    table = Table(data, colWidths=169 * mm, rowHeights=(6.35 * mm,38.1 * mm))\r\n    table.setStyle(TableStyle([\r\n        ('FONT', (0, 0), (0, 0), font_g, 11),\r\n        ('BOX', (0, 0), (0, 1), 1, colors.black),\r\n        ('VALIGN', (0, 0), (0, 1), 'MIDDLE'),\r\n        ('ALIGN', (0, 0), (0, 1), 'CENTER'),\r\n        ('BACKGROUND', (0, 0), (0, 0), '#d3d3d3'),\r\n    ]))\r\n    table.wrapOn(p, 20.5 * mm, 215.2 * mm)\r\n    table.drawOn(p, 20.5 * mm, 215.2 * mm)\r\n\r\n    # (11)\u30d5\u30ed\u30f3\u30c8\u30a8\u30f3\u30c9\r\n    data = [[\"\u30d5\u30ed\u30f3\u30c8\u30a8\u30f3\u30c9\"],[\"\"]]\r\n    table = Table(data, colWidths=81.12 * mm, rowHeights=(6.35 * mm,50.8 * mm))\r\n    table.setStyle(TableStyle([\r\n        ('FONT', (0, 0), (0, 0), font_g, 11),\r\n        ('BOX', (0, 0), (0, 1), 1, colors.black),\r\n        ('VALIGN', (0, 0), (0, 1), 'MIDDLE'),\r\n        ('ALIGN', (0, 0), (0, 1), 'CENTER'),\r\n        ('BACKGROUND', (0, 0), (0, 0), '#d3d3d3'),\r\n    ]))\r\n    table.wrapOn(p, 20.5 * mm, 151.7 * mm)\r\n    table.drawOn(p, 20.5 * mm, 151.7 * mm)\r\n\r\n    # (12)\u30d0\u30c3\u30af\u30a8\u30f3\u30c9\r\n    data = [[\"\u30d0\u30c3\u30af\u30a8\u30f3\u30c9\"],[\"\"]]\r\n    table = Table(data, colWidths=81.12 * mm, rowHeights=(6.35 * mm,50.8 * mm))\r\n    table.setStyle(TableStyle([\r\n        ('FONT', (0, 0), (0, 0), font_g, 11),\r\n        ('BOX', (0, 0), (0, 1), 1, colors.black),\r\n        ('VALIGN', (0, 0), (0, 1), 'MIDDLE'),\r\n        ('ALIGN', (0, 0), (0, 1), 'CENTER'),\r\n        ('BACKGROUND', (0, 0), (0, 0), '#d3d3d3'),\r\n    ]))\r\n    table.wrapOn(p, 108.38 * mm, 151.7 * mm)\r\n    table.drawOn(p, 108.38 * mm, 151.7 * mm)\r\n\r\n    # (13)\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\r\n    data = [[\"\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\"],[\"\"]]\r\n    table = Table(data, colWidths=81.12 * mm, rowHeights=(6.35 * mm,50.8 * mm))\r\n    table.setStyle(TableStyle([\r\n        ('FONT', (0, 0), (0, 0), font_g, 11),\r\n        ('BOX', (0, 0), (0, 1), 1, colors.black),\r\n        ('VALIGN', (0, 0), (0, 1), 'MIDDLE'),\r\n        ('ALIGN', (0, 0), (0, 1), 'CENTER'),\r\n        ('BACKGROUND', (0, 0), (0, 0), '#d3d3d3'),\r\n    ]))\r\n    table.wrapOn(p, 20.5 * mm, 88.18 * mm)\r\n    table.drawOn(p, 20.5 * mm, 88.18 * mm)\r\n\r\n    # (14)\u30a4\u30f3\u30d5\u30e9\/\u30b5\u30fc\u30d0\u30fc\r\n    data = [[\"\u30a4\u30f3\u30d5\u30e9\/\u30b5\u30fc\u30d0\u30fc\"],[\"\"]]\r\n    table = Table(data, colWidths=81.12 * mm, rowHeights=(6.35 * mm,50.8 * mm))\r\n    table.setStyle(TableStyle([\r\n        ('FONT', (0, 0), (0, 0), font_g, 11),\r\n        ('BOX', (0, 0), (0, 1), 1, colors.black),\r\n        ('VALIGN', (0, 0), (0, 1), 'MIDDLE'),\r\n        ('ALIGN', (0, 0), (0, 1), 'CENTER'),\r\n        ('BACKGROUND', (0, 0), (0, 0), '#d3d3d3'),\r\n    ]))\r\n    table.wrapOn(p, 108.38 * mm, 88.18 * mm)\r\n    table.drawOn(p, 108.38 * mm, 88.18 * mm)\r\n\r\n    # (15)\u305d\u306e\u4ed6\/\u30e9\u30a4\u30d6\u30e9\u30ea\r\n    data = [[\"\u305d\u306e\u4ed6\/\u30e9\u30a4\u30d6\u30e9\u30ea\"],[\"\"]]\r\n    table = Table(data, colWidths=81.12 * mm, rowHeights=(6.35 * mm,50.8 * mm))\r\n    table.setStyle(TableStyle([\r\n        ('FONT', (0, 0), (0, 0), font_g, 11),\r\n        ('BOX', (0, 0), (0, 1), 1, colors.black),\r\n        ('VALIGN', (0, 0), (0, 1), 'MIDDLE'),\r\n        ('ALIGN', (0, 0), (0, 1), 'CENTER'),\r\n        ('BACKGROUND', (0, 0), (0, 0), '#d3d3d3'),\r\n    ]))\r\n    table.wrapOn(p, 20.5 * mm, 24.68 * mm)\r\n    table.drawOn(p, 20.5 * mm, 24.68 * mm)\r\n\r\n    # (16)\u305d\u306e\u4ed6\/\u30cf\u30fc\u30c9\u30fb\u30cd\u30c3\u30c8\u30ef\u30fc\u30af\r\n    data = [[\"\u305d\u306e\u4ed6\/\u30cf\u30fc\u30c9\u30fb\u30cd\u30c3\u30c8\u30ef\u30fc\u30af\"],[\"\"]]\r\n    table = Table(data, colWidths=81.12 * mm, rowHeights=(6.35 * mm,50.8 * mm))\r\n    table.setStyle(TableStyle([\r\n        ('FONT', (0, 0), (0, 0), font_g, 11),\r\n        ('BOX', (0, 0), (0, 1), 1, colors.black),\r\n        ('VALIGN', (0, 0), (0, 1), 'MIDDLE'),\r\n        ('ALIGN', (0, 0), (0, 1), 'CENTER'),\r\n        ('BACKGROUND', (0, 0), (0, 0), '#d3d3d3'),\r\n    ]))\r\n    table.wrapOn(p, 108.38 * mm, 24.68 * mm)\r\n    table.drawOn(p, 108.38 * mm, 24.68 * mm)\r\n\r\n    return<\/pre>\n<p>\u6587\u5b57\u30b5\u30a4\u30ba\u306fpt\u3067\u884c\u3063\u3066\u3044\u307e\u3059\u304c\u3001\u67a0\u7dda\u306e\u914d\u7f6e\u306a\u3069\u306f\u5168\u3066mm\u3067\u884c\u3063\u3066\u3044\u308b\u306e\u304c\u308f\u304b\u308b\u3068\u601d\u3044\u307e\u3059\u3002<br \/>\n\u305d\u3057\u3066\u3001\u6307\u793a\u3057\u3066\u3044\u308b\u5834\u6240\u306f\u4f5c\u6210\u3057\u305f\u30b0\u30ea\u30c3\u30c9\u306e\u4ea4\u70b9\u3068\u306a\u3063\u3066\u3044\u307e\u3059\u3002<\/p>\n<h3>\u66f8\u5f0f\u30d5\u30a9\u30fc\u30de\u30c3\u30c8\u3068\u8a18\u8f09\u5185\u5bb9\u306b\u3064\u3044\u3066\u306f\u95a2\u6570\u3092\u5206\u3051\u3066\u3042\u3052\u308b<\/h3>\n<p>\u3064\u3044\u3064\u3044\u30d5\u30a9\u30fc\u30de\u30c3\u30c8\u3068\u30c7\u30fc\u30bf\u306e\u6295\u5165\u30921\u3064\u306e\u95a2\u6570\u3067\u884c\u3063\u3066\u3057\u307e\u3044\u304c\u3061\u3067\u3059\u304c\u3001\u3053\u308c\u306f\u7d76\u5bfe\u306b\u5206\u3051\u305f\u65b9\u304c\u826f\u3044\u3067\u3059\u3002<br \/>\n\u7406\u7531\u306f\u7c21\u5358\u3067\u3001\u4fee\u6b63\u304c\u697d\u306b\u306a\u308b\u304b\u3089\u3002<br \/>\n\u9577\u3044\u30b9\u30af\u30ea\u30d7\u30c8\u304b\u3089\u8981\u4ef6\u500b\u6240\u3092\u63a2\u3059\u306e\u306f\u4e2d\u3005\u306b\u5927\u5909\u3067\u3059\u304c\u3001\u5c0f\u5206\u3051\u306b\u3057\u3066\u3057\u307e\u3048\u3070\u5834\u6240\u306e\u7279\u5b9a\u306f\u5bb9\u6613\u3067\u3059\u3002<br \/>\n\u307e\u305f\u3001\u5206\u3051\u3066\u3044\u308b\u304b\u3089\u3053\u305d\u306e\u7279\u6a29\u300e\u4f7f\u3044\u307e\u308f\u3057\u300f\u3082\u53ef\u80fd\u3068\u306a\u308a\u307e\u3059\u3002<\/p>\n<h3>\u7f6b\u7dda\u307e\u3067\u30b9\u30af\u30ea\u30d7\u30c8\u3067\u7d44\u3093\u3067\u3057\u307e\u3048\u3070\u3001\u3042\u3068\u306f\u30ea\u30b9\u30c8\u3092\u4f5c\u3063\u3066\u30eb\u30fc\u30d7\u3067\u66f8\u304d\u8fbc\u3080\u3060\u3051<\/h3>\n<p>\u30d5\u30a9\u30fc\u30de\u30c3\u30c8\u304c\u3042\u3063\u3066\u8a18\u8f09\u5185\u5bb9\u306e\u30ea\u30b9\u30c8\u3092\u4f5c\u6210\u3067\u304d\u308c\u3070\u3001\u5f8c\u306ffor\u30eb\u30fc\u30d7\u3067\u66f8\u3044\u3066\u3044\u3051\u3070OK\u3067\u3059\u3002<br \/>\n\u30b0\u30ea\u30c3\u30c9\u8a2d\u8a08\u3057\u3066\u3042\u308c\u3070\u4e0a\u4e0b\u5de6\u53f3\u306e\u5897\u3048\u308b\u5e45\uff08\u30ec\u30b3\u30fc\u30c9\u6bce\u306b\u3069\u308c\u4f4d\u305a\u3089\u3059\u304b\uff09\u306f\u7b97\u51fa\u3067\u304d\u307e\u3059\u3002<\/p>\n<h3>\u307e\u3068\u3081<\/h3>\n<p>\u3053\u306e\u30d5\u30a9\u30fc\u30de\u30c3\u30c8\u3092\u4f5c\u308b\u306e\u306b\u307e\u308b\u4e00\u65e5\u3002<br \/>\n\u3082\u3046\u9762\u5012\u3063\u305f\u3089\u306a\u3044\u3067\u3059\u3002<br \/>\n\u5fd9\u3057\u3044\u6642\u306b\u306f\u7d76\u5bfe\u3084\u3089\u306a\u3044\u4f5c\u696d\u3067\u3057\u305f\u3002<br \/>\n\u3067\u3082\u307e\u3041\u3001\u4e00\u56de\u4f5c\u3063\u3061\u3083\u3048\u3070\u3042\u3068\u306f\u30ec\u30b3\u30fc\u30c9\u304c\u5897\u3048\u308b\u5ea6\u306b\u5185\u5bb9\u66f4\u65b0\u3057\u3066\u304f\u308c\u308b\u3093\u3060\u304b\u3089\u4fbf\u5229\u3067\u3059\u3088\u306d\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Django\uff1aReportLab\u306b\u3088\u308bPDF\u30c7\u30fc\u30bf\u4f5c\u6210\u3067\u82e6\u6226\u3057\u305f\u3068\u3053\u308d \u300eReportLab\u300f\u306fDjango\u3067PDF\u51fa\u529b\u3092\u3057\u3088\u3046\u3068\u3057\u305f\u3068\u304d\u306b\u3088\u304f\u9078\u629e\u3055\u308c\u308b\u30e9\u30a4\u30d6\u30e9\u30ea\u306a\u306e\u3060\u305d\u3046\u3067\u3059\u3002 \u6700\u8fd1\u3001\u62b1\u3048\u3066\u3044\u305f\u30d7\u30ed\u30b0\u30e9\u30e0\u306e\u65b9\u306e\u6848\u4ef6\u304c [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":2174,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"sns_share_botton_hide":"","vkExUnit_sns_title":"","_vk_print_noindex":"","sitemap_hide":"","_veu_custom_css":"","veu_display_promotion_alert":"","vkexunit_cta_each_option":"","_jetpack_feature_clip_id":0,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2},"jetpack_post_was_ever_published":false},"categories":[38],"tags":[814,99,224,147,965,53,63,247,964],"class_list":["post-2742","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-python-memorandum","tag-django","tag-mysql","tag-pdf","tag-python","tag-reportlab","tag-53","tag-63","tag-247","tag-964"],"veu_head_title_object":{"title":"","add_site_title":""},"jetpack_publicize_connections":[],"jetpack-related-posts":[],"jetpack_sharing_enabled":true,"jetpack_featured_media_url":"https:\/\/qol-kk.com\/wp2\/wp-content\/uploads\/2020\/11\/django.png","_links":{"self":[{"href":"https:\/\/qol-kk.com\/wp2\/wp-json\/wp\/v2\/posts\/2742","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/qol-kk.com\/wp2\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/qol-kk.com\/wp2\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/qol-kk.com\/wp2\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/qol-kk.com\/wp2\/wp-json\/wp\/v2\/comments?post=2742"}],"version-history":[{"count":0,"href":"https:\/\/qol-kk.com\/wp2\/wp-json\/wp\/v2\/posts\/2742\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/qol-kk.com\/wp2\/wp-json\/wp\/v2\/media\/2174"}],"wp:attachment":[{"href":"https:\/\/qol-kk.com\/wp2\/wp-json\/wp\/v2\/media?parent=2742"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/qol-kk.com\/wp2\/wp-json\/wp\/v2\/categories?post=2742"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/qol-kk.com\/wp2\/wp-json\/wp\/v2\/tags?post=2742"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}