r28071715i111
Engaged
r28071715i111
Engaged
Activity
‎Jan 06, 2024
02:04 PM
Thanks for your reply My file is simple , doesn't contain any paragraph syle or char styles Thanks for your advise dear
... View more
‎Jan 06, 2024
01:25 PM
Great Thanks For you Peter Script works like charm Thaaaanks
... View more
‎Jan 06, 2024
11:29 AM
Any Help Here
... View more
‎Jan 06, 2024
10:21 AM
No change occur Nothing happened
... View more
‎Jan 06, 2024
09:33 AM
I already set my document units to millimeters But No change in the script Can you fix this and post whole correct script please ?
... View more
‎Jan 06, 2024
09:03 AM
I want to remove all digits from all text boxes in document Except the digits in text boxes that have certian Width and Height
... View more
‎Jan 06, 2024
08:10 AM
And So Iam a not a Js Thanks for your reply
... View more
‎Jan 06, 2024
07:40 AM
7 Upvotes
Hi All I want a script to remove all digits from the document except for the text box according to its size ( width and height ) . asked chat gpt 4 , replied with this code but It doesn't work What is the problem please ? Thanks --------------------------------------------------------------------------------------- // Create a dialog with input fields for width and height var dialog = new Window("dialog", "Excluded Text Box Size"); dialog.orientation = "column"; dialog.alignChildren = "left"; var widthGroup = dialog.add("group"); widthGroup.add("statictext", undefined, "Width (mm):"); var widthInput = widthGroup.add("edittext", undefined, "50"); widthInput.characters = 10; var heightGroup = dialog.add("group"); heightGroup.add("statictext", undefined, "Height (mm):"); var heightInput = heightGroup.add("edittext", undefined, "25"); heightInput.characters = 10; var buttonGroup = dialog.add("group"); var okButton = buttonGroup.add("button", undefined, "OK"); okButton.onClick = function() { var specifiedWidthInMm = parseFloat(widthInput.text); // Convert input to number var specifiedHeightInMm = parseFloat(heightInput.text); // Convert input to number dialog.close(); removeDigitsExceptSpecifiedSize(specifiedWidthInMm, specifiedHeightInMm); }; var cancelButton = buttonGroup.add("button", undefined, "Cancel"); cancelButton.onClick = function() { dialog.close(); }; dialog.show(); // Remove Digits Function function removeDigitsExceptSpecifiedSize(specifiedWidthInMm, specifiedHeightInMm) { var doc = app.activeDocument; var textFrames = doc.textFrames; for (var i = 0; i < textFrames.length; i++) { var textFrame = textFrames[i]; var frameBounds = textFrame.geometricBounds; var frameWidth = frameBounds[3] - frameBounds[1]; var frameHeight = frameBounds[2] - frameBounds[0]; var specifiedWidthInPoints = specifiedWidthInMm * 2.83464567; // Convert mm to points var specifiedHeightInPoints = specifiedHeightInMm * 2.83464567; // Convert mm to points if (frameWidth !== specifiedWidthInPoints || frameHeight !== specifiedHeightInPoints) { var textContent = textFrame.parentStory.contents; var textWithoutDigits = textContent.replace(/\d/g, ''); textFrame.parentStory.contents = textWithoutDigits; } } }
... View more
‎Dec 22, 2023
05:19 AM
Very Great thanks for you peter Script works as a charm Thanks
... View more
‎Dec 22, 2023
02:22 AM
I entered these informations when running code in indesign made scaling 70 % I want scaling from the center point only
... View more
‎Dec 22, 2023
01:43 AM
I asked chat gpt for this code , answered with this code but it doesn't work for me , Nothing changed Can you help me ? ---------------------------------------- // Create a dialog var myDialog = new Window("dialog", "Scale Text Frames"); myDialog.orientation = "column"; myDialog.alignChildren = "left"; // Function to get paragraph styles function getParagraphStyles() { var styles = app.activeDocument.paragraphStyles; var styleNames = ["(None)"]; // Default "None" style for (var i = 0; i < styles.length; i++) { styleNames.push(styles[i].name); } return styleNames; } // Paragraph Style Dropdown var stylePanel = myDialog.add("panel"); stylePanel.text = "Paragraph Style:"; var styleDropdown = stylePanel.add("dropdownlist", undefined, getParagraphStyles()); styleDropdown.selection = 0; // Page Range Input var pageRangePanel = myDialog.add("panel"); pageRangePanel.text = "Page Range (e.g., 1-5):"; var pageRangeInput = pageRangePanel.add("edittext"); pageRangeInput.text = "1-10"; // Scale Factor Input var scalePanel = myDialog.add("panel"); scalePanel.text = "Scale Factor (%):"; var scaleFactorInput = scalePanel.add("edittext"); scaleFactorInput.text = "150"; // OK and Cancel Buttons var buttonGroup = myDialog.add("group"); var okButton = buttonGroup.add("button", undefined, "OK"); var cancelButton = buttonGroup.add("button", undefined, "Cancel"); okButton.onClick = function () { var selectedStyle = styleDropdown.selection.text; var pageRange = pageRangeInput.text; var scaleFactor = parseFloat(scaleFactorInput.text) / 100; if (!selectedStyle || selectedStyle === "(None)") { alert("Please select a valid paragraph style."); return; } if (!pageRange.match(/^\d+-\d+$/)) { alert("Invalid page range format. Use 'start-end', e.g., '1-5'."); return; } var startPage = parseInt(pageRange.split("-")[0]); var endPage = parseInt(pageRange.split("-")[1]); // Your scaling logic here // (use selectedStyle, startPage, endPage, and scaleFactor) myDialog.close(); }; cancelButton.onClick = function () { myDialog.close(); }; // Show the dialog myDialog.show();
... View more
‎Dec 21, 2023
11:41 PM
Amy help here !!!!!!!!!!!!!!!
... View more
‎Dec 21, 2023
11:25 AM
Any Help Here
... View more
‎Dec 21, 2023
09:55 AM
9 Upvotes
Hi I have an indesign document that contains multiple text frames some of these text frames have paragraph style 1 and some have paragraph style 2 Is there a script to scale text frames based on paragraph style 1 only not all text frames and so on text frames based on paragraph style 2 !! and I want that script that apply on certain pages ( ex : from page 50 to 100 only ) Not all document pages Thanks
... View more
‎Sep 17, 2023
11:45 AM
Help Please
... View more
‎Sep 17, 2023
10:16 AM
the problem is i prepared the all variables in indesign file that created as single page per sheet I don't want to repeat everything from the begining
... View more
‎Sep 17, 2023
08:48 AM
Any help
... View more
‎Sep 17, 2023
08:07 AM
6 Upvotes
Hi , I have an indesign file , pages that created by data merge ( Single record per sheet ) , saved it as pdf file Is there a script to convert this indesign file or pdf file to new file with multiple records per sheet instead of creating data merge from the begining Thanks
... View more
‎Sep 15, 2023
10:04 PM
Thanks For your reply @bebarth I downloaded PitStop now , I found Enfocus Inspector but I don't know how to change measurement units units are in pt only , I want it in mm or cm
... View more
‎Sep 15, 2023
03:42 AM
Hi Excuse me @bebarth : What is the best and simplest method to measure distances in pdf file ?
... View more
‎Sep 12, 2023
03:53 AM
@bebarth Great thanks for you and your effort since 4 days Thanks you
... View more
‎Sep 12, 2023
03:41 AM
Hi Excuse me I attched 2 images for Horizontal clearance and Vertical clearance Is these true ????
... View more
‎Sep 11, 2023
11:36 PM
@bebarth I'm sorry , Can you explain more simple the meaning of : 1- Horizontal clearance between images 2- Vertical clearance between images I tried but I can't understand them .
... View more
‎Sep 11, 2023
10:10 PM
Great thanks for you, your effort and explanation @bebarth
... View more
‎Sep 11, 2023
02:12 PM
Finaallly , Problem solved with me @bebarth - @Bernd Alheit My fault is that I didn't make select all the scribt in console window before I press enter button Very Great thanks for your efforts @bebarth - @Bernd Alheit Excuse me , My last qusetion about this script @bebarth : If I have another pdf file with different size for number of pages per sheet What values should I change in this script to make it correct ?
... View more
‎Sep 11, 2023
01:29 PM
Is this the correct script that you used at the video ? ------------------------------------ // var largeur=86; var hauteur=55; var offsetH=-16.5; var deltaH=91; var offsetV=31; var deltaV=60; // var mm2pt=72/25.4; var nbPages=this.numPages; for (var p=0; p<nbPages; p++) { for (v=0; v<4; v++) { for (h=0; h<2; h++) { this.newPage({ nWidth: largeur*mm2pt, nHeight: hauteur*mm2pt }); this.addWatermarkFromFile({ cDIPath: this.path, nSourcePage: p, nStart: this.numPages-1, nHorizAlign: app.constants.align.left, nVertAlign: app.constants.align.top, nHorizValue: (offsetH-h*deltaH)*mm2pt, nVertValue: (offsetV+v*deltaV)*mm2pt }); } } } this.deletePages(0,nbPages-1); this.saveAs(this.path.replace(/.pdf$/i," \(One Image Per Page\).pdf")); ---------------------------------------------------------------- I send this script to my friend have windows 10 also to test it also and let you the result , may be the problem is from my OS
... View more
‎Sep 11, 2023
12:43 PM
I'm so sorry , I didn't see it that time I saw it now , and the steps I already made it as you made exactly Is this problem in your opinion can be related to operating system ( winodws / Mac ) ? I have windows 10 pro
... View more
‎Sep 11, 2023
12:38 PM
Edit : I changed numbers from arabic to english numbers but the same problem still here
... View more
‎Sep 11, 2023
12:25 PM
We shoud suppose that Orginal file that contain single page are lost or corrupted What is the solution in this case If I have file that contain more page per sheet and want to convert it back to single page per sheet ?
... View more
‎Sep 11, 2023
12:22 PM
Hi I don't think that the problem this is the arabic numbers , I didn't change anything in the script , I will change it to English , test , will tell you the result I'm waiting your video , may be I made another mistake that fail the script
... View more