14 Replies Latest reply: May 2, 2013 8:07 AM by Peter Spier RSS

    How to cut a barcode

    luca del carlo Community Member

      This would seem rather simple - I'm looking to to take a supplied barcode and cut across it vertically to eliminate price information found on one side, the EAN5 portion which contains pricing. The barcode has its own white background border box which can be romoved, but I see now way to divide / cut apart the barcode. When clicking on it with the direct select tool, each line and number breaks down to separate outlines, but all elements reamin grouped together (though under "Object" they do show as grouped).

       

      I've tried the more labourious method of selectively covering up portions of the code with the background colour - but these route seems unneccessary; I should be able to cut the object in half.

       

      What to try?

        • 1. Re: How to cut a barcode
          Eugene Tyson CommunityMVP

          Object Path>Release compound path

          • 2. Re: How to cut a barcode
            [Jongware] CommunityMVP

            It must be a compound path, not a group.

             

            No need to release it into separate objects, though. You can use the white arrow to move individual points.

            • 3. Re: How to cut a barcode
              luca del carlo Community Member

              I don't quite follow - using the white arrow is allowing me to do things like bezier curves, but not select individual bars and numbers to delete. Is it suggested that I change the compound path and then cut away parts? Thank you.

              • 4. Re: How to cut a barcode
                [Jongware] CommunityMVP

                luca del carlo wrote:

                 

                I don't quite follow - using the white arrow is allowing me to do things like bezier curves, but not select individual bars and numbers to delete.

                 

                "Do" a bezier curve? The white arrow can be used to edit paths -- including deleting single points or entire sub-paths. Have you tried?

                 

                Look, top-to-bottom: 'grouped' object; ungrouped, so now you can see it's two compound paths; some of the individual parts of the compound path deleted using the white arrow.

                 

                The bottom image shows why I advise against Release Compound Path. Depending on how the image is constructed, after releasing you may not get the exact same image, even though these are the exact same paths.

                compound-edit.PNG

                compund-release.PNG

                • 5. Re: How to cut a barcode
                  luca del carlo Community Member

                  I'm attempting to take the simple steps you've described and delete elements but to no avail, sorry. I'm using the direct select arrow and regardless where one selects an element – on a point or a path – it's not allowing individual selection of a vertical bar or a digit to be moved or deleted from the rest of the barcode. Perhaps the barcode I've received is setup not to be modified. I am able to use the white arrow to reshape individual elements of the barcode but, oddly, not to delete them.

                   

                  The warning against releasing compound paths is of course good to have, however, at the moment, only by releasing paths can I gain control of deleting individual bars, digits, etc. so still unsure of why it's not possible to do the other way.

                  • 6. Re: How to cut a barcode
                    Peter Spier CommunityMVP

                    Seems to me it would be simpler to just cut the barcode in its frame to the clipboard, then paste into a new frame and crop it.

                    • 7. Re: How to cut a barcode
                      [Jongware] CommunityMVP

                      Peter Spier wrote:

                       

                      Seems to me it would be simpler to just cut the barcode in its frame to the clipboard, then paste into a new frame and crop it.

                       

                      .. I've been assuming this was native ID artwork because of Luca's assertion it can be ungrouped -- at least in a black foreground and a white background. My sample image is a barcode created with Marc Autret's EANDesign, which indeed creates native artwork.

                       

                      Luca, perhaps your image is something like an embedded EPS or EMF. In that case you are correct; you cannot edit these with InDesign. Then all you can do is use Peter's trick.

                      • 8. Re: How to cut a barcode
                        Peter Spier CommunityMVP

                        Even native artwork could be pasted into a new frame and cropped......

                        • 9. Re: How to cut a barcode
                          luca del carlo Community Member

                          Pasting onto a new frame and cropping, actually doesn't seem to working here. Is it this simple – I create a rectangale and past the barcode onto it. Not sure whether to group them, but either way I've tried, and it's still not allowing the barcode to be cropped. Pasting into a frame - this I must be doing incorrectly.

                          • 10. Re: How to cut a barcode
                            Peter Spier CommunityMVP

                            Cropped Barcode.png

                             

                            Actually, you don't even need to paste into a new frame if the barcode is a placed image of some sort. Just resize the frame it's in.

                            • 11. Re: How to cut a barcode
                              luca del carlo Community Member

                              Resizing the frame as I've tried to convey, is not working as we are expecting. It results in changing the proportions of the barcode when using the black arrow (which would normally happen with the white arrow), and when using the white arrow, the frame can be removed, or the the lines and points stretched and altered, bu there is no way yet of cropping.

                               

                              I'll return to this again when it's possible for me to see how I'm describing this in a way that's perhaps not useful. Thanks for trying to help.

                              • 12. Re: How to cut a barcode
                                Peter Spier CommunityMVP

                                luca del carlo wrote:

                                 

                                Resizing the frame as I've tried to convey, is not working as we are expecting. It results in changing the proportions of the barcode when using the black arrow (which would normally happen with the white arrow), and when using the white arrow, the frame can be removed, or the the lines and points stretched and altered, bu there is no way yet of cropping.

                                This means youare dealing with either a compound path or a group of pasted path. Use the black arrow to select the entire barcode object, whatever it is, and cut to the clipboard. Switch to a the frame tool and draw a blank frame where the barcode belongs, use the black arrow to select it and Edit > Paste Into. Now you can crop.

                                • 13. Re: How to cut a barcode
                                  The Digital Man Community Member

                                  Wouldn't it be better for them to work with the barcode in Illustrator?  That is what I would do.  Then when I had it cut apart the way I wanted it I would just copy the part that I was going to use and paste it into InDesign.

                                   

                                  Randy

                                  • 14. Re: How to cut a barcode
                                    Peter Spier CommunityMVP

                                    That's a valid approach, if you have Illustrator and know how to do it. I prefer the paste-into-and crop for a couple of reasons, though. First, it's faster, and second it doesn't require you to do any editing on the barcode, so you can use it both ways without having to save two files.