Skip to content

split_pdf on Windows PC #14

Description

@pohndorff

I have an issue migrating my code from MacOS to Windows devices.
The following code snippet works just fine on my MacOS but hangs itself after the first iteration:

include
path <- list.files(path = paste0(getwd(),"/raw"),
                   pattern = "*.pdf",
                   recursive = TRUE,
                   full.names =  TRUE)
file <- list.files(path = paste0(getwd(),"/raw"),
                   pattern = "*.pdf",
                   recursive = TRUE)

for(i in 1:length(file)){
  file.path <- str_extract(file[i],".*(?=(KV[0-9]+\\.pdf))")
  dir.create(file.path(paste0(getwd(),"/output/",file.path)), showWarnings = FALSE)
  split_pdf(input_filepath = path[i],
            output_directory = file.path,
            prefix = paste0("p","_"))
}

I installed pdftk on both devices and they work fine, so I guess it's an issue regarding staplr.

Any suggestions to quickly solve the issue?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    failed to replicateFailed to replicate the issue. Might need additional details to isolate the problem

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions