#Apache FOP Hide Metadata
54 messages · Page 1 of 1 (latest)
⌛ This post has been reserved for your question.
Hey @icy sedge! Please use
/closeor theClose Postbutton 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.
💤 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.
💤 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.
What about setProducer("redacted");
or include some other text in there but not the empty string
💤 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.
Sorry I've just seen your answer
Yes I tried to put some normal String but it doesn't change it 😒
Can you show the relevant code?
Do you have a PDFDocument instance?
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
Org.apache.fop.apps.Fop
What does userAgent.getProducer() return?
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
I meant after setting it
lile first set it and then get it
and check if it's there
Ok
Sorry I had to build 3 times
So after the set I get the new value
I'm testing now because I have to run other services
It looks like you are having issues with debugging or issues that can be solved using a debugger.
Check out this article on dev.java to see how debugging works and how to use a debugger.
This Stack Overflow question and its answers also explain debugging in general.
These links describe how to use the debugger in some IDEs:
• Debugging in IntelliJ
• Debugging in Eclipse
Fop doesn't have the method getProducer()
oh that was removed already?
Yes there are some default methods and getUserAgent
Unfortunatly not
I will try to debug . I don't have any other Idea why it doesn't work
Does getUserAgent().getProducer() give you the producer you set?
maybe you could try using pdf:Producer in your XML?
ah
The method is deprecated but I will test
"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
Aaaah ok Yes I hav' tried it but it also doesn't work
I have not seen the note 🙄
or maybe you can do something like https://stackoverflow.com/a/57806471/10871900
i.e. you load the document after saving it and then set the producer
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
I will check this one momet
yeah I don't know Apache Fob xd
It's also my first task with apache fop 😵💫
I will try to understand this and see
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.