Skip to main content
Inspiring
August 10, 2022
Question

Any way to quickly find page breaks? Showing text symbols doesn't seem to help...

  • August 10, 2022
  • 4 replies
  • 349 views

I don't want to remove all overrides for page breaks, and I'd rather not have to select whole groups of paragraphs looking for what the Page Break panel says is going on. Is there a simple way to find them? I thought maybe making a list of references or markers would have something, but no dice.

    This topic has been closed for replies.

    4 replies

    frameexpert
    Community Expert
    Community Expert
    August 11, 2022
    #target framemaker
    
    main ();
    
    function main () {
    
    	var doc;
    	
    	doc = app.ActiveDoc;
    	if (doc.ObjectValid () === 1) {
    		processDoc (doc);
    	}
    }
    
    function processDoc (doc) {
    
    	var pgf, pgfFmt;
    	
    	pgf = doc.MainFlowInDoc.FirstTextFrameInFlow.FirstPgf;
    	while (pgf.ObjectValid () === 1) {
    		pgfFmt = doc.GetNamedPgfFmt (pgf.Name);
    		if (pgfFmt.ObjectValid () === 1) {
    			if (pgf.Start !== pgfFmt.Start) {
    				writeBookErrorLog (pgf.id, doc.id, 0, "Page break override.");
    			}
    		}
    		pgf = pgf.NextPgfInFlow;
    	}
    }
    
    function writeBookErrorLog (objId, docId, bookId, msg) { 
        
        /// msg = writeBookErrorLog (objId, docId, bookId, msg);
        
        msg = 'log -b=' + bookId + ' -d=' + docId + ' -o=' + objId + ' --' + msg;
        CallClient ('BookErrorLog', msg);
        
        return msg; // Return for troubleshooting.
    }
    
    Community Expert
    August 11, 2022

    Hi Rick,

     

    Wow, very good! Thank you very much!

    I will test this tomorrow or next week, when I have again access to my laptop and FrameMaker. Now I am on a training.

     

    Best regards

     

    Winfried

    Community Expert
    August 11, 2022

    I assume that you do not want to search for manual page breaks (in the Search box enter \n).

    There is no way to search for a paragraph override so that the paragraph starts at the beginning of a column or a page.

    You could write an ExtendScript script that finds such paragraphs. I am not an expert, but I would think that this is not too difficult.

    Bob_Niland
    Community Expert
    Community Expert
    August 11, 2022

    The basic challenge is that there is no mark-up element for page break in FM. It's accomplished by the Pagination of the para that ends up starting the new page, so as CT's link suggests, you're {usually} looking for an override.

    Dave Creamer of IDEAS
    Community Expert
    Community Expert
    August 10, 2022
    David Creamer: Community Expert (ACI and ACE 1995-2023)