I am currently evaluating CAD .NET for a project that I am working on. As part of the project I need to add our company logo to a number of CAD drawings and then export them to PDF. I followed the sample code from the Add Entities Demo project to add the logo as a CADImageEnt raster image to each drawing.
To fit the drawing on a PDF page I need to rotate it by 90 degrees. However, after rotation the raster image is no longer visible on the page. I did some testing and it seems like rotation for raster images has a bug when exporting to PDF. Up to a certain angle the image is scaled, and then beyond a certain angle it is no longer visible at all. When I export a drawing to DXF the raster images are rotated correct.
I have attached a Google Drive link to an image of two files that were exported with CAD .NET 15.0.0.61822. The original drawing has been rotated by 15 degrees, and you'll see that the logo is rotated correctly in the DXF image, but in the PDF it has been scaled and flipped.
https://drive.google.com/file/d/1a3-NTJ ... sp=sharing
Is there a workaround for this issue, or is it something that needs to be fixed in the library?
Thanks
Tom
Raster images don't rotate correctly when exported to PDF.
Moderators: SDS, support, admin
Re: Raster images don't rotate correctly when exported to PDF.
Hi again Tom,
To help you we need:
- Your original file - the drawing your are inserting an image to
- The code you are using to insert and image and rotate it.
- If we understand you correctly the problem arises after the file has been exported to PDF. In this case we need an exported PDF-file.
You can send this information to support@cadsofttools.com if it is comfortable for you.
Thank you in advance,
Irina
To help you we need:
- Your original file - the drawing your are inserting an image to
- The code you are using to insert and image and rotate it.
- If we understand you correctly the problem arises after the file has been exported to PDF. In this case we need an exported PDF-file.
You can send this information to support@cadsofttools.com if it is comfortable for you.
Thank you in advance,
Irina
Technical Support E-mail: support@cadsofttools.com
Chat support on Skype: cadsofttools.support
Chat support on Skype: cadsofttools.support