#Apache FOP Hide Metadata

54 messages · Page 1 of 1 (latest)

icy sedge
#

Hi, I'have a program that generate a pdf with Aoache fop. I'm not very familiar with it but I want to hide some Metadata like producer on the properties tab from the pdf.
I'm trying tk do it using UserAgent ( useragent.setproducer(**) ) but it doesn't work. Any Idea please or example ?

rugged estuaryBOT
#

This post has been reserved for your question.

Hey @icy sedge! Please use /close or the Close Post button above when your problem is solved. Please remember to follow the help guidelines. This post will be automatically closed after 300 minutes of inactivity.

TIP: Narrow down your issue to simple and precise questions to maximize the chance that others will reply in here.

rugged estuaryBOT
#

💤 Post marked as dormant

This post has been inactive for over 300 minutes, thus, it has been archived.
If your question was not answered yet, feel free to re-open this post or create a new one.
In case your post is not getting any attention, you can try to use /help ping.
Warning: abusing this will result in moderative actions taken against you.

rugged estuaryBOT
#

💤 Post marked as dormant

This post has been inactive for over 300 minutes, thus, it has been archived.
If your question was not answered yet, feel free to re-open this post or create a new one.
In case your post is not getting any attention, you can try to use /help ping.
Warning: abusing this will result in moderative actions taken against you.

harsh holly
#

What about setProducer("redacted");

#

or include some other text in there but not the empty string

rugged estuaryBOT
#

💤 Post marked as dormant

This post has been inactive for over 300 minutes, thus, it has been archived.
If your question was not answered yet, feel free to re-open this post or create a new one.
In case your post is not getting any attention, you can try to use /help ping.
Warning: abusing this will result in moderative actions taken against you.

icy sedge
harsh holly
icy sedge
#

I can only type it or take a foto

#

It's readable?

harsh holly
#

Do you have a PDFDocument instance?

icy sedge
#

After I execute the applikation a pdf doc is generated
Is that what do you mean?

#

As I understood the code transform xml to a pdf

harsh holly
#

where are you generating the PDF?

#

ah ok

#

what's the package of Fop?

icy sedge
#

Org.apache.fop.apps.Fop

harsh holly
#

What does userAgent.getProducer() return?

icy sedge
#

I asume the default value= the software version . But I'm checking now with syso if it return the same value as in the pdf properties

harsh holly
#

I meant after setting it

#

lile first set it and then get it

#

and check if it's there

icy sedge
#

Ok

icy sedge
#

Sorry I had to build 3 times
So after the set I get the new value

harsh holly
#

and it still isn't added to the PDF?

#

what does fob.getProducer() return?

icy sedge
harsh holly
#

Also you might want to use a debugger

#

it might show you more information

rugged estuaryBOT
icy sedge
harsh holly
#

oh that was removed already?

icy sedge
#

Yes there are some default methods and getUserAgent

icy sedge
#

I will try to debug . I don't have any other Idea why it doesn't work

harsh holly
#

maybe you could try using pdf:Producer in your XML?

icy sedge
harsh holly
#

"Internal" in the Category column means that the user should not set this value. It is set by the application.
hm

#

seems like you might not be able to overwrite it

#

maybe you can use a debugger for finding out where the producer comes from

icy sedge
#

I have not seen the note 🙄

harsh holly
#

i.e. you load the document after saving it and then set the producer

icy sedge
#

There is also a .xconf file how are the fonts settigs . Bjt I don't now how to add another to hide peroducer and if this is even possible

icy sedge
harsh holly
#

yeah I don't know Apache Fob xd

icy sedge
#

Thanks a lot for the help

rugged estuaryBOT
# icy sedge Thanks a lot for the help

If you are finished with your post, please close it.
If you are not, please ignore this message.
Note that you will not be able to send further messages here after this post have been closed but you will be able to create new posts.