cancel
Showing results for 
Search instead for 
Did you mean: 

Saving a pdf in an iframe with specific name

Former Member
0 Kudos

Hi,

in our application there is an iframe which displays different pdf depending of the situation. As source we use URLs.

If the user want to save the pdf within the iframe it suggest always a default name. Is it possible that it suggest a specific name for each pdf? I can't find any attributes to deliver a desired name. Or maybe an iFrame is the wrong ui element for this demand?

Thanks, regards

Susanne

Accepted Solutions (0)

Answers (1)

Answers (1)

former_member218672
Active Contributor
0 Kudos

Hi Susanne

You can append time ahead of the pdf, so that name of pdf would never be same.

code would be like this -

java.util.Calendar calendar = java.util.Calendar.getInstance();

String currentTimeInLong = "" + calendar.getTimeInMillis();

and append this string ahead of your pdf. You can give a try.

Regards,

Sen