Forum Replies Created
-
AuthorPosts
-
Kai Rübsamen
MemberHi Aarti,
if you have additional “#” on your page, then have have probably empty textframes. This can be free floating textframes or anchored textframes. Since those frames will create a so called div-elemenent during the epub-export and generate also CSS, it is good practice to remove them.
So go to the find/change pannel, GREP tab and insert: \A\Z. If this will find something, click on escape and remove the frame.
Kai
Kai Rübsamen
MemberDwayne, your stupid comments are not helpful for anybody and do especially not solve the problem! I would strongly advise you not to say anything if you have nothing to say.
Malcom, thanks for a detailed explanation of the problem. It wasn’t my intention to yelling with you, sorry.
If you want to apply the master B while creating new pages, you could do it in this way:(function () { var curDoc = app.activeDocument, allPages = curDoc.pages, nPages = allPages.length, curPage, i,p, newMaster = curDoc.masterSpreads.itemByName("B-Masterpage"); for (i = nPages-1; i >= 0; i--) { curPage = allPages[i]; p = curDoc.pages.add({appliedMaster: newMaster}); p.move(LocationOptions.AFTER, curPage); } }) ();Kai
Kai Rübsamen
MemberMalcom, if you write in an prof. forum, chances are good, that you get an answer within few hours. So if someone has a question, cause he don’t understand the problem, it is good practice to answer this question within few hours too ;-)
Did you test the script? Seems that it would solve your problem. And yes, the script could also apply a Master B.
Kai
Kai Rübsamen
MemberIt seems, that Malcolm has no interest anymore and like to do his job by hand. Since this: “So I need to insert a page after each, with the new copy?” is not clear to me, even if this means insert text (which kind of text? by hand? automatically?)
Anyway: If someone wants to add pages between pages:
(function () { var curDoc = app.activeDocument, allPages = curDoc.pages, nPages = allPages.length, curPage, i,p; for (i = nPages-1; i >= 0; i--) { curPage = allPages[i]; p = curDoc.pages.add(); p.move(LocationOptions.AFTER, curPage); } }) ();Kai Rübsamen
MemberHi Malcom,
the task is not clear! Insert a page after each is no problem. What do you mean with “new copy”? > Example!
Kai
Kai Rübsamen
Member^[^|]+\|
Beginning of a para
followed by a character, that is not “|”
one or more times
followed by a “|”Kai
Kai Rübsamen
MemberHi John,
you could skip the first one, create your header with continued, write your information twice or create a text-variable for both cells.
Kai
Kai Rübsamen
MemberDavid, some kind of. You did not show the invisibles. How is the gutter controlled? > tracking and a high number of autoleading?
Here is another idea: I would work with columns or threaded frames depending on the order. Every arcticle has its own paragraph. So spaces are controlled bei gutter or style.
Kai
Kai Rübsamen
MemberKayla, your sorting order isn’t self explanatory, since the $300.000 comes between 329 and 315. However: There is no script needed if the document is built in a right way (everything is in one flow).
If you interested sent me a document to forumATruebiarts.de and I will have a look at it.
Kai
Kai Rübsamen
MemberYour task is not clear, since a visual example is missig. Anyway: The easiest way would be, if everything is in one flow. Even if it is possible to script this, the scripter would probably spent hours to do this and this must be paid!
March 21, 2017 at 5:07 am in reply to: How to export (PDF) a document with only part of the content #93010Kai Rübsamen
MemberStephane, you can apply conditions with find/change. But realize, that all questions will stick together. I would assume, that a answer with 3 lines should show 3 blanks instead of complete removing?
Kai
Kai Rübsamen
MemberSending money is possible via PayPal :)
To your last question: I’m not sure, if I understand this correctly. Please sent me a testfile with 5 pages as idml to forumATruebiarts.de
Kai
Kai Rübsamen
MemberHi Tim,
here is your example. Realize that this is not the order by page!
var list = [ "(Genesis|Gen.?)", "(Psalms|Ps.?)", "(Jeremiah|Jer.?)", "(Moses)" ]; var curDoc = app.activeDocument, nList = list.length, curListItem, strToSearch, found, foundList = [], curFound; app.findGrepPreferences = app.changeGrepPreferences = null; app.findChangeGrepOptions.includeFootnotes = true; for (var i = 0; i < nList; i++) { curListItem = list[i]; strToSearch = "(" + curListItem + " d{1,3}[:–]d{1,3}([;–]d{1,3})?(, d{1,3})?(; d{1,3})?([:?]d{1,3})?)"; app.findGrepPreferences.findWhat = strToSearch; found = curDoc.findGrep(); if (found.length > 0) { for (var j = 0; j < found.length; j++) { curFound = found[j]; foundList.push(curFound.contents); } } } app.findGrepPreferences = app.changeGrepPreferences = null; alert(foundList); var tf = curDoc.textFrames.add({geometricBounds: [10, 10, 200, 200]}); tf.contents = foundList.join("\r");Kai
Kai Rübsamen
MemberPlease provide your script and a little example as idml-file.
Kai
Kai Rübsamen
MemberHi Tim,
you can store your found, e.g. “myDoc.findGrep()”. You will get an array of paragraphs, words or other things. Later you can put the “.contents” of those objects together, insert a page at the end, create a textframe with the proper margins and insert your stored contents. To write a .txt with your found on the desktop would also be possible.
Kai
-
AuthorPosts
