Highlighted

Is it possible to hide a document from Adobe FrameMaker 2015?

Participant ,
May 16, 2016

Copy link to clipboard

Copied

Is it possible to hide a document from Adobe FrameMaker 2015?

Ch,

You can open it hidden with the FDK or ExtendScript, something like:

  F_PropValsT openScript, *returnp = NULL;
  UIntT sn;

  F_ObjHandleT docId;


  openScript = F_ApiGetOpenDefaultParams();
  sn = F_ApiGetPropIndex(&openScript, FS_MakeVisible);
  openScript.val[sn].propVal.u.ival = True;
  docId = F_ApiOpen("C:\\SomePath\\SomeDoc.fm", &openScript, &returnp);

You can also make a currently-open document hidden:

F_ApiSetInt(FV_SessionId, docId, FP_IsOnScreen, False);

There isn't any way to do it through the GUI.

Russ

Views

172

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more

Is it possible to hide a document from Adobe FrameMaker 2015?

Participant ,
May 16, 2016

Copy link to clipboard

Copied

Is it possible to hide a document from Adobe FrameMaker 2015?

Ch,

You can open it hidden with the FDK or ExtendScript, something like:

  F_PropValsT openScript, *returnp = NULL;
  UIntT sn;

  F_ObjHandleT docId;


  openScript = F_ApiGetOpenDefaultParams();
  sn = F_ApiGetPropIndex(&openScript, FS_MakeVisible);
  openScript.val[sn].propVal.u.ival = True;
  docId = F_ApiOpen("C:\\SomePath\\SomeDoc.fm", &openScript, &returnp);

You can also make a currently-open document hidden:

F_ApiSetInt(FV_SessionId, docId, FP_IsOnScreen, False);

There isn't any way to do it through the GUI.

Russ

Views

173

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
May 16, 2016 0
Adobe Community Professional ,
May 16, 2016

Copy link to clipboard

Copied

From inside a book? Sure, just right-click and Exclude it

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
May 16, 2016 0
Participant ,
May 16, 2016

Copy link to clipboard

Copied

I am asking if there is a way to open a document but have it hidden.

What is the meaning of excluding a document from a book?

Does this document has limitations?

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
May 16, 2016 0
Adobe Community Professional ,
May 16, 2016

Copy link to clipboard

Copied

If you exclude a document from the book it’s in, it gets skipped when any generated files (like a ToC or IX) are created. I’m not sure what you’re trying to do when you say “open a document but have it hidden” – maybe you can elaborate on what you’re trying to accomplish?

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
May 16, 2016 0
Mentor ,
May 16, 2016

Copy link to clipboard

Copied

Ch,

You can open it hidden with the FDK or ExtendScript, something like:

  F_PropValsT openScript, *returnp = NULL;
  UIntT sn;

  F_ObjHandleT docId;


  openScript = F_ApiGetOpenDefaultParams();
  sn = F_ApiGetPropIndex(&openScript, FS_MakeVisible);
  openScript.val[sn].propVal.u.ival = True;
  docId = F_ApiOpen("C:\\SomePath\\SomeDoc.fm", &openScript, &returnp);

You can also make a currently-open document hidden:

F_ApiSetInt(FV_SessionId, docId, FP_IsOnScreen, False);

There isn't any way to do it through the GUI.

Russ

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
May 16, 2016 0
Participant ,
May 16, 2016

Copy link to clipboard

Copied

Actually I was searching for a way to handle the temporary files that FM creates sometimes.

I want to exclude these documents when I loop through all open documents.

What I have done is the following:

1. Get all the open documents.

2. If any of these documents is hidden I ignore it and do not handle it in my application.

And because the temporary files are hidden by default I handle these also in the same way.

I couldn't find a way of handling temporary files explicitly with a nice API call.

This is the reason why I asked if it is possible to hide a document.

Thank you.

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
May 16, 2016 0
Mentor ,
May 17, 2016

Copy link to clipboard

Copied

Yes, you can also just test whether a document is currently hidden:

if(!F_ApiGetInt(FV_SessionId, docId, FP_IsOnScreen))    ....

I noticed that my open script parameter was backwards, but you probably get the idea. Sorry, should have been:

  openScript.val[sn].propVal.u.ival = False;

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
May 17, 2016 0