Skip to main content
Hi all,

 

As the title says I need to expose the basename or file name for multiple PDF files I read with FeatureReader. Seems there is no way to expose PDF attributes neither in the PDF reader or FeatureReader where PDF is selected as format?

 

 

I use a directory reader to make a list of Word documents that I convert to PDF using an external program and then pass the file name + pdf extension to the FeatureReader. However I'm stranded if I don't find a way to indentifying my input files.

 

 

Thanks!

 

 

/Jacob

 

 

Hi @j2,

 

Have you tried using an AttributeExposer transformer after the FeatureReader?


In addition to the workaround given in the replies, I just thought I'd let you know that this issue has been fixed in FME 2019.1


Hi @jakemolnar

 

 

Thanks for your replies. I have already tried AttributeExposer and it doesn't work.

 

 

Do you mean 2018.1? Or do you have early access to 2019.1?

If you are passing the filename plus pdf extension into the feature reader, you can maintain this attribute for later use by changing the Accumulation Mode to merge initiator and result. Although I'd agree that ideally you'd be able to expose the attributes via a parameter for PDF formats as you can with other formats.

 


If you are passing the filename plus pdf extension into the feature reader, you can maintain this attribute for later use by changing the Accumulation Mode to merge initiator and result. Although I'd agree that ideally you'd be able to expose the attributes via a parameter for PDF formats as you can with other formats.

 

Hi @egomm

 

 

Thanks for the solution it worked perfectly although I should've tested this already!

 

 

/Jacob

Oh, haha, yes I do have early access: I'm an FME developer, and I personally fixed that bug for the next release


Hi @j2,

 

Have you tried using an AttributeExposer transformer after the FeatureReader?

Hi, as of FME 2019 19813, using an attribute exposer to get the basename does not work. It used to in 2017/2018. Also, feature readers used to be able to expose attributes in the feature reader itself, this has been removed.


Reply