Forum Replies Created
-
AuthorPosts
-
Theunis De Jong
MemberThere is a hotkey combo for Find Next — I think that's all you need here :)
Theunis De Jong
MemberSam, the problem is that the default “black” in InDesign is always represented by a CMYK quad in the PDF it exports — even if you are only using the black component, this will show up as “color has been used” in some software. That includes Acrobat Pro! If you convert a PDF to grayscale-only, using the Convert Color command, you'll no longer see the four CMYK colors listed in the Output Preview list, but just only “Black”.
The problem is that a PDF can contain two “kinds” of just-black. The one that ID exports is “full color black”, with C,M, and Y set to 0. There is another type of black: grayscale black — but InDesign does not allow you to select this. (Illustrator, on the other hand, does.)
You could try experimenting with ink aliasing, but I think that would still use InDesign's internal model of “only CMYK” when exporting.
(Edit) Instead of exporting to PDF, try printing. In the Print dialog there is an option to use “grayscale”. You can print just the black-and-white pages and if you need a single document, assemble the PDF again with Acrobat Pro, or just use two separate print commands. You can still seperately export the color pages as usual.
Theunis De Jong
MemberInDesign CS5 cannot create grayscale PDFs. They always appear to be tagged internally as color.
A slight clarification of David's remark:
InDesign internally works with CMYK color only. That means that even plain Black text always gets exported as CMYK, as can be seen in the generated PDF:
BT % Begin text
0 0 0 1 k % Set text color
/T1_0 1 Tf % Set text font
9 0 0 9 36.8504 631.0427 Tm % Set text transform
[(Hel)-9 (lo)]TJ % Draw text with kerningThe 'set text color' command is for setting CMYK colors, and even though the first three inks are 0, your printer software recognizes the command and decides “therefore it's a color page”. Compare it to a 24-bit full color image, which only happens to use black-and-white pixels — that in itself doesn't make it a black-and-white image file.
If you have Acrobat Pro, you can change those black pages to 'real' black with its Convert Colors option (use “Convert Colors to Output Intent, with one of the Dot Gain or Gamma targets).
CS6 has an “Export to Grayscale” PDF but I haven't got that so I cannot tell if that would work better.
Theunis De Jong
MemberWhat are “frame lines”? Do you mean the default border, visible around each page? That is a local viewer setting — in Acrobat you can select a Full Screen mode, but in other viewers this might not be possible.
Theunis De Jong
MemberGah — bit of laryngitis messing with my brain. Of course that should be: replace with
$1 11
because '$0' would insert the entire found string,,including the “10”.
Theunis De Jong
Member(Fig|Table) 10(?=.d)
— replace with
$0 11
Theunis De Jong
MemberThatis quite worrying. Old PDFs should be compatible with newer versions. Can you still open these files with older versions? (If you don't have these anymore, try https://www.oldapps.com/adobe_reader.php).
You could also try to open them with Acrobat Pro, which at least offers options to re-save the file as “a modern version” of PDF, although again theoretically that ought not to be necessary.
Around when, and with what software were these files created? If the files do open with an older version, you might want to contact Adobe about this.
Theunis De Jong
MemberThe pink is InDesign's default for “I don't have the font you requested”. Check with Find Font in the Type menu what font is supposed to be there.
The gray and blue — I don't know. Those look like something else than InDesign's “I have a problem here” marker colors. Can you check if they also appear in Preview mode? Perhaps it's something as easy as a very thick underline under all of your text.
June 16, 2012 at 5:39 pm in reply to: Searching and replacing using GREP – excluding found characters #62447Theunis De Jong
MemberThis ought to work:
(?<=m)d
You can think of this procedural method: first, ignore “lookbehind” and “lookahead” commands, and search for the actual text
md
and then exclude the “lookbehind/lookahead” parts from the selection.
It doesn't really work as described, because you can also rewrite your first attempt to
d(?<=md)
… in fact skipping back over the “just-encountered-digit” in the lookbehind …
Hope this clarifies it a bit!
June 16, 2012 at 5:48 am in reply to: Searching and replacing using GREP – excluding found characters #62444Theunis De Jong
MemberAs for your first question: no, you cannot selectively search for two characters where one must have a certain formatting and the other i have.
You cannot enter formatting specifications in the Find Formatting field for parts of your find text — it's always going to apply to the entire find string, including any lookbehinds or lookaheads. See Mike Rankin's A Little Grep Gripe: https://creativepro.com/a-l…..-gripe.php
June 16, 2012 at 4:25 am in reply to: Searching and replacing using GREP – excluding found characters #62443Theunis De Jong
MemberMove the lookbehind before the digit :)
InDesign does not tell you if your GREP is invalid — it just issues a “not found”, even when you enter nonsense. A mistake in my opinion … But this expression is valid, but it just logically cannot find anything. Imagine each character that does match moves an internal cursor one character ahead. In your case, a digit is found, and the next command checks to the left of the cursor if there is an “m”. Well, there can't be, because there will always be a digit there …
Theunis De Jong
MemberIf you have the general framework in place to load all files from a certain folder, all you need is to do is to write a getFiles command to get just folders. From memory:
var folderList = Folder.myDocuments.getFiles(function(item) { return item instanceof Folder; });
The function will return 'true' for all subfolders in the path, and so the array folderList will contain a list of these. Then you can loop over the items in folderList and run the One Folder To Place Them All portion of your script on each.
Theunis De Jong
MemberYou must have forgotten to set Underline on in the Change To format. How do I know? Because if you had, you'd have another problem — the entire string would be underlined! You cannot set some sort of formatting to just “apply to $2″ — formatting in the Change To field is always applied to all of the text in it.
In addition, you should try to avoid changing text if all you need is change formatting. Leave the Change To text field blank and make sure the Find field only “finds”, i.e. selects, what you want to format.
So how to do that? Since you want to do 2 different things, there is no other option than doing one at a time. First, add the extra text, which you got covered. (But the period is a “wild card” character in Find. You need to escape it with a backslash to make sure it only matches actual periods.)
Then use Lookbehind/Lookahead, like this:
(?<=^Art. )d+(?= (vroeger)
and put just Underline in Change To. This looks for digits that are preceeded by “Art.” and followed by ” (vroeger”. Since the parenthesis is also special in a Find GREP, it again needs an escape.
If you do a Find Next, you will see this will highlight only the digits, and it'll be safe to change all.
Theunis De Jong
MemberI'm sorry, but can you re-read my post and then show your GREP again?
Theunis De Jong
MemberYou'd have to show your GREP before anyone can suggest what's wrong …
(A tip if it contains backslashes: to include these in your post you have to write two \ to get only one — please remember to do so, or else the interesting parts will not be recognizable.)
(post-edit: gah I'm tired… removed additional 'slash comment …)
-
AuthorPosts
