Jump to content

Welcome to eMastercam

Register now to participate in the forums, access the download area, buy Mastercam training materials, post processors and more. This message will be removed once you have signed in.

Use your display name or email address to sign in:

can't open pdf files in mastercam 2023


DEAN@CLASSICGEARS.COM
 Share

Recommended Posts

I just tried this and all that showed up was the outline.  But as I moved the mouse around the interior of the outline, I could see that other entities were in there.

I slelected everything and changed the color to green and everything was there.

 

I have a black background and the PDF geometry came in as color255  (black)

 

No warning about the geometry being the same color as the background color

Link to comment
Share on other sites
  • 2 weeks later...

"...No warning about the geometry being the same color as the background color..."

You're right ... that's missing from the PDF importer! I'll take a look.

Typically, the biggest issue will be what cam-eleon says : some PDFs are just images (aka 'raster data') and we cannot pull those in yet (but we've been trying).

Pete

  • Like 3
Link to comment
Share on other sites

Now I am re-thinking this one (warning if the color is the same as the background color)...

The color coming in from the PDF file is an RGB value, and so we need to map it to the closest Mastercam color.  We do actually try to avoid the background color when doing that mapping, but what we use is the closest color to the background color that is not the background color. Our graphics system will balk at drawing entities that are defined with exactly the same color as the background color - so we go out of our way to make sure that they are not the same.

Color 255 is very, very dark, but it is not black. When I read in a PDF that has black entities (RGB = <0,0,0>) with a black (color 0) background, I also get entities in color 255, which is different (RGB = <0, 0, 51>) from Mastercam's Black.

I've got a PDF here that is almost black. If I set the Mastercam background color to anything but 202 they come in as color 202. If I set the Mastercam background color to 202 and read in that file, they now come in as color 204 (which is also very dark - almost black).

So the tough part for us when programming our importers is to say : When is a color so dark that it could be considered as visually being black? Perhaps we could use a brighter color for those ... but where to draw the line is unclear.

Edited: Note that this color mapping applies to ALL of the CAD file importers that have entity colors defined as RGBs.

Edited by Pete Rimkus from CNC Software Inc.
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.

Join us!

eMastercam - your online source for all things Mastercam.

Together, we are the strongest Mastercam community on the web with over 56,000 members, and our online store offers a wide selection of training materials for all applications and skill levels.

Follow us

×
×
  • Create New...