PDF Bulletins

pdf-header-footer

ACAP's bulletin PDFs use hard-coded Bicol-related text in their headers and footers to allow flexible manual layout adjustments. These static elements should be updated with text relevant to the new region.

đź’ˇ

This section covers how to update the static text content within the PDF bulletin layouts. To edit or create new PDF layouts, refer to the PDF Development layout guide.

Edit the Logos

Replace the Region 5 logos with new region-related logos in these directories:

  1. /server/src/utils/pdf/livereload/public/common/images
  2. /server/src/utils/pdf/livereload/public/tenday/images
  3. /server/src/utils/pdf/livereload/public/special-signal/images
          • index.html
          • index.html
          • index.html
      • pdf-seasonal.ejs
      • pdf-special-signal.ejs
      • pdf-tenday.ejs
  • Seasonal Bulletin PDF

    Edit the Seasonal HTML File

    1. Open the seasonal PDF's HTML layout:
      /server/src/utils/pdf/livereload/public/seasonal/index.html

    2. Replace Region 5's header text with new region text.

      REGIONAL FIELD OFFICE NO. 5
      San Agustin, Pili, Camarines Sur, 4418
      http://bicol.da.gov.ph
    3. Replace Region 5's footer text with new region text.

      DEPARTMENT OF AGRICULTURE SUPPORTS
      - Pre-positioned planting materials and other farm inputs
      - Research station available for livestock evacuations
      - Availability of ropes, power sprayer, mist blowers, laminated sacks and  water drums
      - Drugs and biologics for livestocks
      - Farm machineries stationed in the DA RFO 5 and Research Outreach Station in every province
      - Technical assistance for farm operations
      - Climate Information services

    Edit the Seasonal EJS File

    1. Open the seasonal PDF's EJS layout file in
      /server/src/utils/pdf/livereload/templates/pdf-seasonal.ejs

    2. Apply the header and footer text updates similar with Edit the Seasonal HTML File steps #2 and #3 in this file.

    10-Day Bulletin PDF

    Edit the 10-day HTML File

    1. Open the 10-day PDF's HTML layout:
      /server/src/utils/pdf/livereload/public/tenday/index.html

    2. Replace Region 5's header text with new region text.

      REGIONAL FIELD OFFICE NO. 5
      San Agustin, Pili, Camarines Sur, 4418
      http://bicol.da.gov.ph
    3. Replace Region 5's footer text with new region text.

      DEPARTMENT OF AGRICULTURE SUPPORTS
      - Pre-positioned planting materials and other farm inputs
      - Research station available for livestock evacuations
      - Availability of ropes, power sprayer, mist blowers, laminated sacks and  water drums
      - Drugs and biologics for livestocks
      - Farm machineries stationed in the DA RFO 5 and Research Outreach  Station in every province
      - Technical assistance for farm operations
      - Climate Information services

    Edit the 10-day EJS File

    1. Open the 10-day PDF's EJS layout file in
      /server/src/utils/pdf/livereload/templates/pdf-tenday.ejs

    2. Apply the header and footer text updates similar with Edit the 10-day HTML File steps #2 and #3 in this file.

    Special Weather Bulletin PDF

    Edit the Special HTML File

    1. Open the special weather PDF's HTML layout:
      /server/src/utils/pdf/livereload/public/special-signal/index.html

    2. Replace Region 5's header text with new region text.

      REGIONAL FIELD OFFICE NO. 5
      San Agustin, Pili, Camarines Sur, 4418
      http://bicol.da.gov.ph
    3. Replace Region 5's footer text with new region text.

      DEPARTMENT OF AGRICULTURE SUPPORTS
      - Pre-positioned planting materials and other farm inputs
      - Research station available for livestock evacuations
      - Availability of ropes, power sprayer, mist blowers, laminated sacks and  water drums
      - Drugs and biologics for livestocks
      - Farm machineries stationed in the DA RFO 5 and Research Outreach Station in every province
      - Technical assistance for farm operations
      - Climate Information services

    Edit the Special EJS File

    1. Open the special weather PDF's EJS layout file in
      /server/src/utils/pdf/livereload/templates/pdf-special-signal.ejs

    2. Apply the header and footer text updates similar with Edit the Special Weather HTML File steps #2 and #3 in this file.