Skip to content

Commit

Permalink
Merge pull request #46 from eliansoutu/master
Browse files Browse the repository at this point in the history
agrego hoja institucional
  • Loading branch information
eliansoutu authored Jan 17, 2024
2 parents aae388c + 6e02aca commit 28512df
Showing 1 changed file with 17 additions and 1 deletion.
18 changes: 17 additions & 1 deletion R/unir_paginas.R
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,15 @@ unir_paginas <- function(input, save_as, topic, back_colour = "gris") {
# topic_path <- "https://tableros.yvera.tur.ar/recursos/hojas_institucionales/generico_st.pdf"
# }

topic_path <- "https://tableros.yvera.tur.ar/recursos/hojas_institucionales/segunda_hoja.pdf"
if (topic == "naturaleza apn") {

topic_path <- "https://tableros.yvera.tur.ar/recursos/hojas_institucionales/turismo_naturaleza_apn_ct.pdf"

} else {

topic_path <- "https://tableros.yvera.tur.ar/recursos/hojas_institucionales/segunda_hoja.pdf"

}

temp <- tempfile()

Expand Down Expand Up @@ -89,8 +97,16 @@ unir_paginas <- function(input, save_as, topic, back_colour = "gris") {
# topic_path <- "/srv/shiny-server/recursos/hojas_institucionales/generico_st.pdf"
# }

if (topic == "naturaleza apn") {

topic_path <- "/srv/shiny-server/recursos/hojas_institucionales/turismo_naturaleza_apn_ct.pdf"

} else {

topic_path <- "/srv/shiny-server/recursos/hojas_institucionales/segunda_hoja.pdf"

}

suppressWarnings(staplr::staple_pdf(input_files = c("cover.pdf",
topic_path,
"body.pdf",
Expand Down

0 comments on commit 28512df

Please sign in to comment.