Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Batch+ Save PDF Macro #143

Open
millenium-codebug opened this issue Apr 14, 2022 · 0 comments
Open

Batch+ Save PDF Macro #143

millenium-codebug opened this issue Apr 14, 2022 · 0 comments

Comments

@millenium-codebug
Copy link

Hi you project is awesome, I tried to use it with PDM but I saw #111 and i bypassed the issue downloading all PDM files locally.
I think that an if for file exist check will "workaround" the problem.

foreach (var input in inputs)
{
if (Directory.Exists(input))
{
foreach (var file in Directory.EnumerateFiles(input, "*.*", SearchOption.AllDirectories))
{
if (TextUtils.MatchesAnyFilter(file, filters))
{
if (!m_AppProvider.Descriptor.IsSystemFile(file))
{
if (!inputFiles.Contains(input, StringComparer.CurrentCultureIgnoreCase))
{
inputFiles.Add(file);
}
}
else
{
m_JournalWriter.WriteLine($"Skipping file '{file}'");
}
}
}
}
else if (File.Exists(input))
{
if (!inputFiles.Contains(input, StringComparer.CurrentCultureIgnoreCase))
{
inputFiles.Add(input);
}
}
else
{
throw new UserException($"Input '{input}' does not exist");

On the other hand I'm using Batch+ instead of Export+ because of #15, but I'm getting Error '91': Object variable or With block variable not set on my macro when i try to run the a job.

Can you help me? Do I need to buy Standard Edition to fix the problem?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant