Page 1 of 1

Inject XML to pdf

Posted: Thu Feb 15, 2024 10:30 am
by Ulrik
Hi,
looking for an app that can Inject XML to pdf
I have tried Inject XML from enfocus.com/en/appstore and works fine but it doesn't have a Error out - if app doesn't find match.
it sends to Problem jobs, which is not so smart.

Example match:
Test.pdf
Test.xml
= match -> Success out

Example no match:
TestX.pdf
Test.xml
= no match -> Error out

Is there something already in Switch that can solve this, or another app that can solve my problem.

Regards Ulrik

Re: Inject XML to pdf

Posted: Thu Feb 15, 2024 11:24 am
by jan_suhr
When I created this app I expected that it would be setup and used so this type of errors would not happen.

But I'll fix it so it can handle errors where the XML supposed to be injected isn't available.

In a week or two a new version will be available.

Re: Inject XML to pdf

Posted: Thu Feb 15, 2024 11:28 am
by JimmyHartington
You could look at the app "Inject Wildcard" https://www.enfocus.com/en/appstore/pro ... t-wildcard
It has traffic lights out, so you should be able to send failed matches out through one connection.

Re: Inject XML to pdf

Posted: Thu Feb 15, 2024 12:32 pm
by Ulrik
Thank you jan - I am looking forward to the new Inject XML it will help me a lot.
Will you let me know when it is ready, i will immediately test it and let you know :D

/Ulrik

Re: Inject XML to pdf

Posted: Thu Feb 15, 2024 1:00 pm
by magnussandstrom
I have requested the same feature from Jan.

I like the Inject XML app because it makes the flow smaller and cleaner.
Another work-a-round (complimentary to Jimmys idea) could be to use the app Wait For Asset before Inject XML, but that kind of ruins the reason for using the app :)

Re: Inject XML to pdf

Posted: Thu Feb 15, 2024 1:03 pm
by Ulrik
jan_suhr wrote: Thu Feb 15, 2024 11:24 am When I created this app I expected that it would be setup and used so this type of errors would not happen.

But I'll fix it so it can handle errors where the XML supposed to be injected isn't available.

In a week or two a new version will be available.
Thank you jan - I am looking forward to the new Inject XML it will help me a lot.
Will you let me know when it is ready, i will immediately test it and let you know :D

/Ulrik

Re: Inject XML to pdf

Posted: Thu Feb 15, 2024 5:23 pm
by jan_suhr
Don't you have the XML Pickup tool?

It will do what you want if you have the two files with the same name. Like yours Test.pdf and Test.xml

The app Inject XML is intended for adding another XML file that is in some other location than the job file and can have a different name than the job file.

I have updated it now with Stop light connections and it will fail if the file to add as a dataset is not and XML file.
It will be available in the Appstore next week (hopefully).

Re: Inject XML to pdf

Posted: Tue Feb 20, 2024 5:36 pm
by jan_suhr
The new version of Inject XML is now published. It has the stop light outgoing connections

Re: Inject XML to pdf

Posted: Wed Feb 21, 2024 8:38 am
by Ulrik
Hi Jan,

First, thank you for the quick reply.
I have now tested Inject XML (version 2) and can see that the stop light.
Unfortunately, when I test no match, it goes to Problem jobs and not to stop light (Error)

Example no match test:
TestX.pdf
Test.xml = no match -> switch Problem jobs
or
Example no match test:
Test.pdf
TestX.xml = no match -> switch Problem jobs

Re: Inject XML to pdf

Posted: Wed Feb 21, 2024 9:22 am
by jan_suhr
What the app can check is if there is an XML-file to inject of not. It checks in the specified folder if it has an XML-file as specified in the properties.

The purpose of this app is to inject XML that are located somewhere else than what the XML Pickup tool do.

To me it looks like you are trying to mimic XML Pickup outside of its functions and what you ask Inject XML to do it can't do.
Inject XML works completely different.

You can send your XML to an external folder on disc and then tell Inject XML to pickup that XML from that folder, of course you have to send the name of that XML in some way with the PDF when it come to Inject XML

In the property "Path to metadata file" you specify the file you want to add as a dataset to your PDF.

Re: Inject XML to pdf

Posted: Wed Feb 21, 2024 10:11 am
by Ulrik
Hello again,

I understand what you mean that's why I want to use I Inject XML as XML Pickup does not have a stop light.
I have attached Test job + xml and Switch flow, so you can see what I mean.

Share Link: https://dam-p.editorial.aller.com/?w=zqJQamxUY1

Path to metadata file (I use [Job.NameProper].xml) which is smart as it finds all match.
E:\Work\Flows\WaitForXMLMatch\[Job.NameProper].xml

Re: Inject XML to pdf

Posted: Thu Feb 22, 2024 10:23 am
by jan_suhr
A new version is on its way, it will fix this problem if it can't find the XML. It will now end up in the error connection.

Re: Inject XML to pdf

Posted: Tue Feb 27, 2024 9:29 am
by jan_suhr
Version 3 is now available for download

Re: Inject XML to pdf

Posted: Tue Feb 27, 2024 10:48 am
by magnussandstrom
Great Jan!

Re: Inject XML to pdf

Posted: Wed Feb 28, 2024 10:34 am
by Ulrik
Many thanks Jan, it works perfectly - You solved a huge problem for me.