Inject XML to pdf

Post Reply
Ulrik
Member
Posts: 21
Joined: Wed Dec 05, 2018 7:53 pm

Inject XML to pdf

Post 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
jan_suhr
Advanced member
Posts: 592
Joined: Fri Nov 04, 2011 1:12 pm
Location: Nyköping, Sweden

Re: Inject XML to pdf

Post 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.
Jan Suhr
Color Consult AB
Sweden
=============
Check out my apps
User avatar
JimmyHartington
Advanced member
Posts: 310
Joined: Tue Mar 22, 2011 7:38 am

Re: Inject XML to pdf

Post 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.
Ulrik
Member
Posts: 21
Joined: Wed Dec 05, 2018 7:53 pm

Re: Inject XML to pdf

Post 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
User avatar
magnussandstrom
Advanced member
Posts: 365
Joined: Thu Jul 30, 2020 6:34 pm
Location: Sweden
Contact:

Re: Inject XML to pdf

Post 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 :)
Ulrik
Member
Posts: 21
Joined: Wed Dec 05, 2018 7:53 pm

Re: Inject XML to pdf

Post 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
jan_suhr
Advanced member
Posts: 592
Joined: Fri Nov 04, 2011 1:12 pm
Location: Nyköping, Sweden

Re: Inject XML to pdf

Post 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).
Jan Suhr
Color Consult AB
Sweden
=============
Check out my apps
jan_suhr
Advanced member
Posts: 592
Joined: Fri Nov 04, 2011 1:12 pm
Location: Nyköping, Sweden

Re: Inject XML to pdf

Post by jan_suhr »

The new version of Inject XML is now published. It has the stop light outgoing connections
Jan Suhr
Color Consult AB
Sweden
=============
Check out my apps
Ulrik
Member
Posts: 21
Joined: Wed Dec 05, 2018 7:53 pm

Re: Inject XML to pdf

Post 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
jan_suhr
Advanced member
Posts: 592
Joined: Fri Nov 04, 2011 1:12 pm
Location: Nyköping, Sweden

Re: Inject XML to pdf

Post 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.
Jan Suhr
Color Consult AB
Sweden
=============
Check out my apps
Ulrik
Member
Posts: 21
Joined: Wed Dec 05, 2018 7:53 pm

Re: Inject XML to pdf

Post 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
jan_suhr
Advanced member
Posts: 592
Joined: Fri Nov 04, 2011 1:12 pm
Location: Nyköping, Sweden

Re: Inject XML to pdf

Post 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.
Jan Suhr
Color Consult AB
Sweden
=============
Check out my apps
jan_suhr
Advanced member
Posts: 592
Joined: Fri Nov 04, 2011 1:12 pm
Location: Nyköping, Sweden

Re: Inject XML to pdf

Post by jan_suhr »

Version 3 is now available for download
Jan Suhr
Color Consult AB
Sweden
=============
Check out my apps
User avatar
magnussandstrom
Advanced member
Posts: 365
Joined: Thu Jul 30, 2020 6:34 pm
Location: Sweden
Contact:

Re: Inject XML to pdf

Post by magnussandstrom »

Great Jan!
Ulrik
Member
Posts: 21
Joined: Wed Dec 05, 2018 7:53 pm

Re: Inject XML to pdf

Post by Ulrik »

Many thanks Jan, it works perfectly - You solved a huge problem for me.
Post Reply