Control of drawing rectangle (links, cropping, etc.)
For some reason, I don't have precise control over drawing rectangles (for adding links or cropping) to PDF documents in Acrobat 9.0 Pro. I used to!
I can still create these boxes, but they are much more rigid control-wise, almost like a "snapping" feature is activated. If links are close together on the PDF, it's hard to make them so they don't overlap.
Does this make sense? Advice?
Under View make sure Snap to grid is turned off.
Similar Messages
-
Missing controls in Develop module - crop etc
They were there a couple of days ago but for the last few sessions the group of controls (including crop etc) that sit under the main image in the Develop module have gone missing.
I've been playing with the 'view' options without success and it seems that they are not coming back of their own volition.
Any help appreciated.
Thanks
Scott HortopThanks - I tried options on the view menu but missed the obvious one at the top.
-
Extracting informations about rectangles, lines, fields etc from PDF
I'm looking for a way, to extract rectangles, lines, fields etc from a PDF, for example think of a blue rectangle which is drawn in a Word document, which is later exported to pdf. I need informations about the position of the rectangle, the color, the size, if it is filled or not, etc. Is there something like an API or an SDK which can help me? I searched for quite a time (so please, no RTFM-answers), but the only references I found where about producing PDF or extracting text, images or graphics (oh, just at the moment, I had the idea, that lines and rectangles could be coded as vector-graphics in PDF, could that be possible?).
I'm thankful for all answers and ideas (even if you just post links with informations),
kind regards,
PivoYes, lines and rects are coded as vector graphics (or specifically path drawing instructions) in a PDF.
Adobe offers an SDK around Adobe Acrobat which would enable you to get this information. If you need a standalone solution, we also offer our full PDFLibrary. -
I have one folder with several projects all of which Aperure can not find the original. I do not use referenced files. I can't make any adjustments like cropping etc. What can I do to adjust or print any of these photos? IO have no ther projects with this problem. My Aperture Library is automatically saved to two external drives.
Dick KoosI have one folder with several projects all of which Aperure can not find the original.
Have you checked inside your Aperture library, if the original files are still there?
Try to find out, when the images in those projects have been originally imported, then open the Aperture library by ctrl-clicking it and using the command "Show package contents" from the pop-up menu. In the window that will open, select the folder "Masters" and browse the contents. You need to find the subfolder with the year you imported the images, then the folders with the month and the day.
Are your original files still there?
If yes, copy them to a folder on your desktop for safe-keeping, and then try, if repairing the permissions and the other Furst Aid tools will help Aperture to connect to these missing files again - see this link: Repairing and Rebuilding Your Aperture Library: Aperture 3 User Manual
If the First Aid Tools don't help, then check, if Aperture has moved the missing images to a "recovered folder". If not, reimport the images, you saved to your Desktop and use the Lift&Stamp tool to transfer any adjustment and captions to your reimported images. -
Can we control Work center group links using auth object UIU_COMP
Hello All,
We are running into an issue while doing our PFCG role configuration.
I need to know if we can control Work center group links in a business role through auth object UIU_COMP.
We can control Workcenter's but not 'Work Center Group Links'.
Here is what we did:
- We have a business role Z_RA_DEFAULT.
- The Nav Bar Profile SRV-PRO for this business role has some work center group links that are checked in menu and visible.
- I'm trying to find the values in the auth object UIU_COMP to restrict Work center group links.
- Even though the values Work center group links are in menu and visible,
I want to remove these Work center group links from the screen using the auth object.
- If we remove the check from in menu and visible in the business role the Work center group links disapper from the screen.
Right now this is only way we are able to controle Work center group links.
Question:
- Can I use UIU_COMP to restrict Work center group links?
- any another auth object that controle Work center group links?
- any document/ website / info available which tells us what can we restrict with auth object UIU_COMP?
- or any other way of doing this... like code change, user exit, ....?
Really appreciate your help.
Thanks,
NasirI am not sure if I have understood the issue correctly, but still what stops you from actually creating a clone business role to your existing business role and deactivating the in menu visible work center group links. Use this new business role for users who need to be prevented from viewing the work center groups links in question.
If you are going to use authorization objects to control the visibility wont it impact all users (still defeating your original purpose?)
Again apologies in case I have got the question wrong. -
When I click to open anything I get a box saying open link in new window, open link in new tab, download linked file etc. When I go to close anything I get hide toolbar, customize toolbar. It takes 3-5 clicks and it will finally close.
In Firefox Options / Privacy be sure "Remember download history" is checked. To see all of the options on that panel, "Firefox will" must be set to "Use custom settings for history".
To find your OS information, on your Windows desktop, right-click the My Computer icon, choose Properties, under System on that small window is info about your OS.
'''If this reply solves your problem, please click "Solved It" next to this reply when <u>signed-in</u> to the forum.''' -
How can i draw rectangle in graph
with Component works++?Annotations were introduced to the C++/ActiveX graph in Measurement Studio 6.0. This is the best way to draw a rectangle.
Details:
CNiAnnotation:hape is a property of type CNiShape. CNiShape::Type is an enumeration, one value of which is CNiShape::Rectangle. Use CNiShape::XCoordinates and CNiShape::YCoordinates to specify the location and size of the rectangle. Use CNiAnnotation::CoordinateType to specify whether the coordinates of the rectangle are in axis units or in pixels relative to plot area or screen area.
If you cannot upgrade to Measurement Studio 6.0, you could consider using 2 cursors as a workaround.
David Rohacek
National Instruments -
Not synching edited (ie, cropped, etc.) versions to iPad
I have recently created Albums of all of the photos in my Events. I did this so that I could rearrange the order of the photos (which is easy to do within an Album, but impossible, I understand to do within an Event). After I moved all of my photos to Albums, I edited some of them (ie, cropping, etc.). I just synched all of my Albums to my iPad, but for many albums it is synching the unedited (ie, not cropped) versions of the photos. I have now removed all of the photos from my iPad and synched them one album at a time, but for some (and only some) albums it is still synching the non-edited versions. I have done a search and haven't been able to locate a similar problem. Any guidance would be very much welcome.
Thank you in advance.FIgured out (I believe) by deleting the iPhoto library cache
-
Draw rectangle at the Intensity graph (position where it is clicked )
I am able to extract coordinates using mouse down and mouse up event structure but unable to draw the rectangle at the specified positions.I am getting coordinates at mouse down and mouse up event in these bounds.I want to draw a rectangle at the position of coordinates but unable to do so.
Solved!
Go to Solution.
Attachments:
Draw Rect on Intensity Graph.vi 21 KBOne more thing, since you're using the Draw Rectangle function you need to deal with the cases where the rectangle is not drawn from top left to bottom right. You have to make sure the minimum X value goes to the LEFT input and the minimum Y value goes to the TOP input of the rect terminal of the Draw Rectangle vi. Use the Max & Min function from the comparison palette for this.
Ben64
Attachments:
Draw Rect on Intensity Graph3.vi 16 KB -
Hi all.
I am looking to manipulate this code so that the user can draw rectangles rather than dragging dots to the screen.
any ideas how I would do this?
import java.applet.Applet;
import java.awt.*;
import java.awt.event.*;
public class L10DragMouse extends Applet {
private int xValue = -10, yValue = -10;
public void init()
addMouseMotionListener(new MotionHandler(this) );
public void paint( Graphics g )
g.drawString("Drag the mouse to draw", 10, 20);
g.fillOval(xValue, yValue, 4, 4);
public void update(Graphics g) {paint(g); }
public void setCoordinates(int x, int y)
xValue = x;
yValue = y;
repaint();
class MotionHandler extends MouseMotionAdapter {
private L10DragMouse dragger;
public MotionHandler(L10DragMouse d) {dragger = d;}
public void mouseDragged( MouseEvent e )
{ dragger.setCoordinates(e.getX(), e.getY() ); }
}Okay it is compiling for me now but is not allowing me to create rectangles when the applet opens up. Just a plain page and no graph / rectangle when I drag mouse.
any ideas?
import java.applet.Applet;
import java.awt.*;
import java.awt.event.*;
public class L10DragMouse extends Applet {
private int xValue = -10, yValue = -10;
private int origX = -10, origY = -10;
public void init()
addMouseMotionListener(new MotionHandler(this) );
public void paint( Graphics g )
g.drawString("Drag the mouse to draw", 10, 20);
g.fillRect(xValue, yValue, origX, origY);
public void update(Graphics g) {paint(g); }
public void setCoordinates(int x, int y)
xValue = x;
yValue = y;
repaint();
public void setOriginalCoordinates(int x, int y)
origX = -10;
origY = -10;
class MotionHandler extends MouseMotionAdapter {
private L10DragMouse dragger;
public MotionHandler(L10DragMouse d) {dragger = d;}
public void mouseDragged( MouseEvent e )
{ dragger.setCoordinates(e.getX(), e.getY() ); }
public void mousePressed( MouseEvent e )
{ dragger.setOriginalCoordinates(e.getX(), e.getY() );}
} -
Dear friends
I do I draw a simple square in rmi?
thanksRuiAranhaJava wrote:
ejp...posting an interface doesn't help and I don't want no one to do my work...
The simple question is to draw a rectangle or circle in a frame...but one of the problems is that draw (Graphics g) is abstract and must be implemented in a abstract class (I can't even declare the function).
what I really need is a small example to understand how to do this... I really want to understand...
Thankssounds like you would be better off posting in the AWT or "new to java" forums. you are currently posting in the RMI forums which is for questions related to remote communication, not questions related to drawing rectangles. once you figure out how to draw a rectangle, if you still need some sort of remote communication help, i'd recommend reading some RMI tutorials. then, if you have a specific question related to remote communication in java, come back here and ask it. -
MFC: Draw rectangle inside a rectangle
Hi,
I have drawn a rectangle:
dc.Rectangle(10,10,200,100);
Now i want to draw rectangle inside it by reducing 10 from each side. i.e the new rectangle will be: CRect(20,20,190,90).
I am manually adjusting the co-ordinate, Is there any API to do this.
offsetRect() is not solving my issue.
ThanksHi,
I have drawn a rectangle:
dc.Rectangle(10,10,200,100);
Now i want to draw rectangle inside it by reducing 10 from each side. i.e the new rectangle will be: CRect(20,20,190,90).
I am manually adjusting the co-ordinate, Is there any API to do this.
offsetRect() is not solving my issue.
Thanks
Just write yourself a function and use it as needed. Programming is not manual work; the computer does the heavy lifting.
Edit: Actually, I think CRect::DeflateRect() does what you want.
David Wilkinson | Visual C++ MVP -
Hi,I want to use mouse to draw a rectangle.But my code doesn't work.Could anyone have a look and make it work please?Heaps of thanks!
import javax.swing.JInternalFrame;
import java.awt.Cursor;
import java.io.File;
//for inner class
import java.awt.event.MouseAdapter;
import java.awt.event.MouseMotionListener;
import java.awt.event.MouseEvent;
import java.awt.Point;
import java.awt.event.ActionListener;
import java.awt.event.ActionEvent;
import java.awt.Graphics;
import java.awt.Graphics2D;
import java.awt.Shape;
import java.awt.Rectangle;
import java.awt.Color;
import java.awt.Container;
import javax.swing.JFrame;
* Testing drawing rectangle
public class TestDraw extends JInternalFrame
private Container c;
public TestDraw(String name) {
super(name,true,true,true,true);
//Set the window size or call pack...
setSize(300,300);
c = this.getContentPane();
c.setCursor(Cursor.getPredefinedCursor(Cursor.CROSSHAIR_CURSOR));
c.addMouseListener(new MouseMonitor(this));
setVisible(true);
}//End of constructor
public static void main(String[] args)
TestDraw td = new TestDraw("test");
TestGUI tg = new TestGUI(td);
private static class TestGUI extends JFrame
public TestGUI(JInternalFrame jif)
setBounds(100,100,400,400);
Container c = getContentPane();
c.add(jif);
setVisible(true);
/********************MouseMonitor INNER CLASS********************/
private class MouseMonitor extends MouseAdapter
private int clickedX,clickedY,releasedX,releasedY;
private JInternalFrame j;
public MouseMonitor(JInternalFrame ji)
this.j = ji;
public void mouseClicked(MouseEvent event)
clickedX = event.getX();
clickedY = event.getY();
}//End of mouseClicked()
public void mouseReleased(MouseEvent event)
releasedX = event.getX();
releasedY = event.getY();
System.out.println("clickedX="+clickedX);
System.out.println("clickedY="+clickedY);
System.out.println("releasedX="+releasedX);
System.out.println("releasedY="+releasedY);
Node node = new Node(clickedX,clickedY,releasedX,releasedY);
node.setColor(Color.RED);
j.paintComponent(node);
j.repaint();
j.validate();
/********************Node INNER CLASS********************/
class Node extends Rectangle
private Color color;
private int left, top, width, height;
public Node( int x, int y, int width, int height)
setBounds(x, y, width, height);
repaint();
void setColor(Color color) {
// Set the color of this shape
this.color = color;
public void setBounds(int left, int top, int width, int height) {
// Set the position and size of this shape.
this.left = left;
this.top = top;
this.width = width;
this.height = height;
void draw(Graphics g) {
g.setColor(color);
g.fillRect(left,top,width,height);
g.setColor(Color.black);
g.drawRect(left,top,width,height);
/**************************END INNER CLASS**********************/
public void paint(Graphics g)
Graphics2D g2 = (Graphics2D) g;
g2.setPaint(Color.red);
g2.draw3DRect(clickedX,clickedY,releasedX,releasedY,true);
}Fabulous program!
I'd like to add more function,but stuck at the right click when the mouse pointing to the node.I want to show the popup menu when user right-clicks at the node,but show error message when he left-click(means he try to draw another node on the top of that node).
The program seems act properly when mouse is pressed,but error dialog pops and blocks the mouseReleased action.Thanks in advance!
import java.awt.Color;
import java.awt.Cursor;
import java.awt.Graphics;
import java.awt.Graphics2D;
import java.awt.Point;
import java.awt.Rectangle;
import java.awt.event.MouseAdapter;
import java.awt.event.MouseEvent;
import java.awt.event.MouseMotionListener;
import java.util.ArrayList;
import java.util.List;
import javax.swing.JFrame;
import javax.swing.JInternalFrame;
import javax.swing.JPanel;
import javax.swing.JOptionPane;
import javax.swing.JPopupMenu;
import javax.swing.JMenuItem;
public class ShapeFrame1 extends JInternalFrame {
private List<Node> nodes;
private Node selected;
private Point start;
private boolean drawing;
public static void main(String[] args) {
ShapeFrame1 sf = new ShapeFrame1("Shape Test");
JFrame frame = new JFrame("Shape Test");
frame.setBounds(100,100,640,480);
frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
frame.getContentPane().add(sf);
sf.pack();
sf.setVisible(true);
frame.setVisible(true);
public ShapeFrame1(String title) {
super(title,true,true,true,true);
setContentPane(new NodePanel());
nodes = new ArrayList<Node>();
getContentPane().addMouseListener(new MouseMonitor());
getContentPane().addMouseMotionListener(new MouseMonitor());
protected Node createNode(Point start, Point end) {
return new Node(start.x, start.y,end.x - start.x, end.y - start.y, Color.BLACK);
protected Node getNodeAt(Point location) {
for(Node node : nodes)
if(node.contains(location))
return node;
return null;
class NodePanel extends JPanel {
public void paintComponent(Graphics g) {
for(Node node : nodes)
node.paint(g);
if(drawing) { // User is currently drawing
Graphics2D g2 = (Graphics2D)g;
g2.setColor(Color.BLUE);
g2.draw(createNode(start, getMousePosition()));
else if (start != null){
class Node extends Rectangle {
private Color color;
private String name;
Node(int x, int y, int width, int height, Color color) {
super(x, y, width, height);
this.color = color;
public void paint(Graphics g) {
Graphics2D g2 = (Graphics2D)g;
if(selected != null && selected.equals(this))
g2.setColor(Color.BLUE);
else
g2.setColor(color);
g2.draw(this);
void setName(String n){
this.name = n;
String getName(){
return this.name;
class MyPopupMenu extends JPopupMenu{
MyPopupMenu(){
createDefaultMenuItem(this);
private void createDefaultMenuItem(JPopupMenu popup) {
JMenuItem item;
item = new JMenuItem("cut");
popup.add(item);
item = new JMenuItem("copy");
popup.add(item);
item = new JMenuItem("paste");
popup.add(item);
popup.addSeparator();
item = new JMenuItem("Add Node Name");
popup.add(item);
class MouseMonitor extends MouseAdapter implements MouseMotionListener {
private MyPopupMenu popup = new MyPopupMenu();
public void mousePressed(MouseEvent evt) {
checkPopup(evt);
Node node = getNodeAt(evt.getPoint());
if (node != null)
JOptionPane.showMessageDialog(
new JFrame(),
"Node exists.Please choose another location!",
"ERROR",
JOptionPane.ERROR_MESSAGE);
else
start = evt.getPoint();
public void mouseReleased(MouseEvent evt) {
checkPopup(evt);
if(drawing) {
Node node = createNode(start, evt.getPoint());
nodes.add(node);
setCursor(Cursor.getDefaultCursor());
drawing = false;
} else {
// User isn't drawing, so select a Node if there is one
Node node = getNodeAt(evt.getPoint());
selected = node;
repaint();
public void mouseMoved(MouseEvent evt) {}
public void mouseDragged(MouseEvent evt) {
drawing = true;
setCursor(Cursor.getPredefinedCursor(Cursor.CROSSHAIR_CURSOR));
repaint(); // User is currently drawing, so repaint the view
private void checkPopup(MouseEvent evt){
if (evt.isPopupTrigger()){
popup.show(evt.getComponent(),evt.getX(),evt.getY());
} -
Draw rectangle and apply fill color
Hi
anyone help me to draw rectangle outside artboard and apply fill color
i want to draw 10 rectangle of same size and apply fill color using javascript
Thak you
appuNow that I am addressing the path items and text items of the group separately I am having some success. Now I am having difficulty getting the correct terms for assigning a Spot Color to the file. Here is a piece of the script.
This works:
tell application "Adobe Illustrator"
set openDoc to document 1
set ftClr1 to (first group item whose note is "Front3") of openDoc
set ftClr1Paths to path items of ftClr1
repeat with thisPath in ftClr1Paths
set fill color of thisPath to {red:255}
end repeat
set textFrames to text frames of ftClr1
repeat with thistext in textFrames
set fill color of every line of thistext to {red:255}
end repeat
end tell
Need help to set the fill color to a Spot Color that already exists in Swatches.
Thanks
Nick -
I want to draw rectangle like corelDraw?
i want to draw rectangle just like corelDraw?
so any body know about how to draw such things please tell meCheckout Graphics and Graphics2D.
Maybe you are looking for
-
I use a gmail account for my mail. When I send an email I sometimes get multiple duplicates (up to 10-12) of the same sent message saved in my sent file. help
-
Disk Images will not mount and Disk Utility will not runru
I am having some major problems with Disk Utility, Disk Images, and software update. First, Disk utility will not open or run. When I double-click the application icon, nothing happens, no message, nothing. I am running OSX 10.4.11. I have deleted di
-
Undo Year end closing for Asset
Hi, I need to undo year end posting for Asset and recalculate depreciation according to the changed laws. Is there any prerequisite/constraints to be taken care of before running OAAR(undo year end closing) and AJAB(year end closing) after required p
-
Non Cumulative Inventory Cube Remodel
Hello Gurus, I've existing inventory cube with non-cumulative key figures with large amount of data. We are using standard non cumulative key figures 0TOTALSTCK, 0ISSTOTSTCK & 0RECTOTSTCK. Now I've a new requirement to report issues (0ISSTOTSTCK) & r
-
CTRL-Tab isn't working anymore in Indesign CC nor in CC (2014)
Hi, I use to switch between open documents using the CTRL-TAB and CTRL-SHIFT-TAB in Indesign. Since we have upgraded to CC and now CC (2014) it seems that Indesign refuses to use these shortcuts. All tough it's possible to assign them, they just do n