Skip to main content
Participating Frequently
June 8, 2019
Question

"This operation is not permitted" when using custom plug-in (on some PC's)

  • June 8, 2019
  • 2 replies
  • 3630 views

Hi,

Wonder if anyone can assist please?

We have a plug-in which has been working fine for years.

When used it saves a copy of the .PDF being worked on.

We have 2 PC's which have just upgraded to the same Adobe DC version (2019.012.20034) - using the same document:

-One one machine it works fine without any errors.

-On the other we get 'This operation is not permitted'.

This occurs when the PDDocSaveWithParams command is called.

Any help would be greatly appreciated. (Wondered if it was font related).

Regards

Stuart

saveParams->fileSys=ASGetDefaultFileSys();

saveParams->newPath=pathName;

saveParams->saveFlags=PDSaveFull|PDSaveLinearized|PDSaveCollectGarbage;

saveParams->size=sizeof(_t_PDDocSaveParams);

saveParams->saveFlags2 = PDSaveCompressed | PDSaveAddFlate | PDSaveReplaceLZW | PDSaveOptimizeXObjects | PDSaveOptimizeContentStreams | PDSaveOptimizeFonts;

PDDocSaveWithParams(pdDoc,saveParams);

This topic has been closed for replies.

2 replies

Legend
June 11, 2019

You could try taking out PDSaveOptimizeXObjects, however this is an old setting unrelated to the PDF Optimizer.  I'm assuming you've tested the regular SAVE AS and it works on those systems.

Legend
June 8, 2019

I wonder if the Acrobat security preferences differ. Compare them in detail.

Participating Frequently
June 9, 2019

Thanks for the reply.

I've been through all of the settings several times and they look to be exactly the same on both PCs.

It's really odd.

I've noticed that the .PDF document is shown as (SECURED).

Also, the plug-in works fine on both PC's for documents that aren't "secured".

Bernd Alheit
Community Expert
Community Expert
June 9, 2019

What security settings in the document?