#29836

Could you please send a corrupted PDF sample to support pd4ml com?

Also:

1. In the section only the last setPermissions() call takes effect:

[language=java:2fhuhcrq]pd4ml.setPermissions(“empty”, PD4Constants.AllowPrint, true);
pd4ml.setPermissions(“empty”, PD4Constants.AllowModify, false);
pd4ml.setPermissions(“empty”, PD4Constants.AllowCopy, true);[/language:2fhuhcrq]

Correct API call:
[language=java:2fhuhcrq]pd4ml.setPermissions(“empty”, PD4Constants.AllowPrint |
PD4Constants.AllowModify | PD4Constants.AllowCopy, true);[/language:2fhuhcrq]

2. Right MIME type for PDF is

[language=java:2fhuhcrq]response.setContentType(“application/pdf”);[/language:2fhuhcrq]