Re: Query for creating a pdf file from book file using extendScript
Hi Manish, With your latest comments, I am not sure exactly what the scenario is. Do you have a perfectly resolved book for which you get a good PDF through the UI, but a broken PDF through...
View ArticleRe: How to stop a search at the end of the flow?
You can tell if the current Xref you have is the last one in the doc by using: if (!currentXref.NextXRefInDoc.ObjectValid()) { // currentXref is the last one } else { // it is not } where...
View ArticleRe: Inserting XRef in document fails for book component
I think the thing that is wrong is XRefSrcText. It can be set up by doing the following: var paragraphId = targetPgf.Unique; var pgfTag; // The paragraph tag. newXref.XRefSrcText = '' + paragraphId +...
View ArticleRe: How to stop a search at the end of the flow?
The caution here: objects in linked lists are not necessarily in document order.
View ArticleRe: Query for creating a pdf file from book file using extendScript
Hi Russ, Yes, it's not breaking because of the script. And I want my script to create Xref during the generation of pdf. Can you guide me the script part to create Xref Thanks, Manish
View ArticleRe: How to stop a search at the end of the flow?
Rick, this is exactly the cause why I can not rely on the simple method and need to use the Find method. Hence my final solution is this (already implemented and working):From the current location...
View ArticleRe: Query for creating a pdf file from book file using extendScript
Hi Manish, It takes several steps to create and resolve an xref. I don't have time at the moment to create a sample, as I am unfortunately (for you) preparing for a few days of vacation. Is there...
View ArticleRe: Inserting XRef in document fails for book component
Dan, thanks for this idea. IMHO this is what the GUI method Insert XRef does.The description in FDK tells:If FP_XRefSrcIsElem is False, the text of the cross-reference source marker; if...
View ArticleRe: Query for creating a pdf file from book file using extendScript
Hi Russ, The document is not structured. Please let me know the steps to create an Xref once you come back from your vacation. Waiting for your reply. Thanks, Manish
View ArticleHow to set tabs in a paragraph format?
Dear friends,I’m struggling in setting tab positions in a paragraph format.In FDK reference there is a function F_ApiSetTabs(), but this has no equivalence in the Scripting Guide. Hence the following...
View ArticleRe: How to set tabs in a paragraph format?
Hi Klaus, I have recently created some code that sets the tab position in a table cell to be at the right edge of that cell. This is a slightly different use case, as I cannot use a paragraph format...
View ArticleRe: How to set tabs in a paragraph format?
Many thanks, Jang for this tip,I have changed lines 21/22 in the above by this lineFno_SetTab (oParaFmt2a, 1.0 * CM, Constants.FV_TAB_LEFT, "", ""); // no leader, no Dec trigger and changed the...
View ArticleGet missing fonts and graphics from framemaker using script.
Hi, How to find unavailable fonts name and missing graphics from framemaker using script? Please suggests if any ideas.
View ArticleRe: Get missing fonts and graphics from framemaker using script.
Finding missing graphics is fairly straightforward. Loop through the graphics in the document and test for an Inset, which is an imported graphic. If the InsetFile property is not an empty string, it...
View ArticleRe: Get missing fonts and graphics from framemaker using script.
Not sure why you need scripting for this - the console shows you all the info. If you do need automation to process that info you could check whether you can pick up the console messages. Not sure how...
View ArticleRe: How to set tabs in a paragraph format?
I have no idea how to define these tabs due to this oPfgFmt.SetProps(oaProps ); // ESTK does not step further !!So I inspected an existing paragraph, which contains 3 tabs of different complexity...
View ArticleHow to read framemaker console output using script.
Hi,How to read framemaker console result using script? I want to extract unavailble fonts name from the framemaker document.But i didn't get.So i need to extract the unavailable fonts name from the...
View ArticleRe: How to set tabs in a paragraph format?
Hoping to get advice from Adobe how to define a tab stop I have created bug report FRMAKER-6957 ...
View ArticleRe: How to read framemaker console output using script.
You can open the console file like any other textfile: var aConsLines = []; var sLine; var path = app.UserSettingsDir; var ConsFileName = path + "\\" + "consfile.txt"; var oConsFile = new...
View ArticleRe: How to set tabs in a paragraph format?
Klaus, Here is a function I just created. Works like a breeze. function AddTab( oPgf, iPos, iType, sLeader ){ var oaProps = oPgf.GetProps( ); var i = GetPropIndex( oaProps, Constants.FP_Tabs ); var...
View ArticleRe: How to set tabs in a paragraph format?
Of course the iPos is in Metrics and the iType is one of the alignment types for tabs: Constants.FV_TAB_LEFT etc.
View ArticleRe: How to set tabs in a paragraph format?
I think you can avoid the whole props mess just by doing: var tempTabs = oParaFmt2a.Tabs; tempTabs.push(oTab); oParaFmt2a.Tabs = tempTabs; I haven't tested this, but I have had to do this for a number...
View ArticleRe: How to set tabs in a paragraph format?
Thanks Dan, that works. The reason I am using GetPropt and SetProps is that some of the changes to object properties do not give the required changes. The SetProps function allows FrameMaker to catch...
View ArticleRe: How to set tabs in a paragraph format?
Thank you very much, Dan and Jang - my script came to life not far away from the original...After line 25 I inserted:Fno_SetTab (oPgfFmt, 1.0 * CM, Constants.FV_TAB_LEFT, "", ""); // no leader, no Dec...
View ArticleRe: How to read framemaker console output using script.
I didn't know about the console file. That's an interesting feature. I haven't done it for a while, but I think you can also get the console text directly through the app object, for example: var...
View ArticleRe: How to read framemaker console output using script.
Hi Russ,that's really the fastest way. I use my way (option 2), because I can access directly the line I want to see:aConsLines [0] or read it line by linefor (var i = 0; i < aConsLines.length; i++)...
View ArticleHow to extract hidden text from textframe in framemaker using script?
Hi,How to extract hidden text from textframe in framemaker using script?Please suggests if any ideas.
View ArticleThank you all for helping in my recent projects
Dear all,I have published on my web site the following. All this work would not have come to success without your generous help! FMcalc – Calculations in FrameMakerFMcalc uses two marker types: #calc...
View ArticleRe: Query for creating a pdf file from book file using extendScript
Hi Russ, Please guide me the steps for the creation of Xref using ExtendScript. Thanks, Manish
View ArticleRe: Thank you all for helping in my recent projects
Klaus, I think many times you helped yourself! I was impressed at the complexity of things that you were trying to do. I was also a little bit jealous, wondering who gets to spend so much time playing...
View ArticleHow to define a colour?
Dear wise women and men!I definitely have not understood the concept of GetProps and SetProps...It tried to define a new colour by this function and found that no property is set all (inspecting the...
View ArticleRe: How to define a colour?
Analysing the problem I inspect an existing coloured object with the following script: function GetColourProps (oColour) { var PERCENT = 65536, j, n, oColour, aPropVals, oPropVal, aNewPropVals = [];...
View ArticleRe: How to define a colour?
"Da ist wohl hopfen und malz verloren" as we say in German (I guess that's hops and malt are lost).Based on the above findings I tried various things - with no positive results: // DefineColour3.jsx...
View ArticleRe: How to define a colour?
"Da ist wohl hopfen und malz verloren" as we say in German (I guess that's hops and malt are lost).Hi Klaus,we also say: " Du siehst den Wald vor lauter Bäumen nicht" (You missed the forrest for the...
View ArticleRe: How to define a colour?
Many thanks, Klaus - this really works.Yes, I did the tests not in a new document - so the colour was defined already... Now I even found colours named "[object PropVal]" and "undefined". Always...
View ArticleTo select all overflow text frames in framemaker using script.
Hi,How to select all overflow textframes in framemaker using script and get the page number for all overflow texframe in framemaker ?Please suggests if any ideas.
View ArticleRe: To select all overflow text frames in framemaker using script.
What have you been trying to do so far? Show us some code snippets, that you have created yet.
View ArticleRe: To select all overflow text frames in framemaker using script.
Hi,I need convert this code to extendcript.Please suggests if any ideas.Set vCurrentDoc = ActiveDoc Set vPgf = vCurrentDoc.FirstPgfInDoc;Set vStop = 0; //Stop when first overflow found Loop...
View ArticleFirst run of XSLTRunTrScenario is slow
Hi, I am using XSLTRunTrScenario with ExtendScript's CallClient to transform some XML data before using it in a script. The first run of the script is very slow; I am not sure if it is loading the...
View ArticleRe: First run of XSLTRunTrScenario is slow
At the first run of your session, the processor needs to be loaded and this takes time. You could do an identity transform on a small XML file on startup, but you may run the risk of the script being...
View ArticlePlacement of anchored frame fails
"Wecome back my friends to the show that never ends" (don't know from which TV show that is, have no TV).I want to place an Anchored Frame, type "Outside TextFrame".Placing the frame with the UI is ok...
View ArticleRe: Placement of anchored frame fails
Further tests show the following:All anchor types placing the frame at the inner gutter are affected by this problem: FV_ANCHOR_SUBCOL_LEFT, FV_ANCHOR_SUBCOL_NEAREST, FV_ANCHOR_SUBCOL_INSIDE,...
View ArticleRe: Placement of anchored frame fails
Hi Klaus, I hope, you have noticed this: FrameMaker ScriptingWe are excited to announce we will be delivering a modern community experience to you in the very near future! For our Creative Cloud,...
View ArticleRe: Placement of anchored frame fails
Yes, Klaus, I have noticed this - and immedately create a PDF just in case.... But this is more important: it is not the inner gutter, but any placement to the left of the page (right page: close to...
View ArticleRe: Placement of anchored frame fails
Well, it turns out that things work correctly, if I assign SideOffset as the last property ... function CreateAFrame (oDoc, kAnchor, kAlign, width, height, offset) { var CM = 1857713; oUserLoc =...
View ArticleAlign numbers along decimals/assumed decimals
I am looking for/trying to write a script to align decimals (and assumed decimals) in a table. FrameMaker does not align a column of numbers in a table to the decimal/assumed decimal. Instead, numbers...
View ArticleRe: Align numbers along decimals/assumed decimals
Instead of the Find method, I would cycle through all the cells in a table and use the GetText on the paragraphs in those cells. That allows you also to optimize the code: when you find a cell with a...
View ArticleRe: Align numbers along decimals/assumed decimals
A couple of things you can do here. First, you can do this on line 16: textRange.end.offset = Constants.FV_OBJ_END_OFFSET - 1; Then you don't need line 21. The second part should be easy; like Jang...
View Article