Hello, I have some questions.
Using ObjectARX2013, I have to solve problems.
When I plot PNG or JPG file, its paper size is needed to edit according to drawing size.
I want to know the source code or function(or method) - C#.
Please help me.
I just posted a similar question a while ago and the reply from SENL 1363 offerred the solution I needed exactly.
Pay attention to code
validator.MediaMatchingPolicy = Autodesk.AutoCAD.PlottingServices.MatchingPolicy.M
int itIs = validator.IsCustonPossible(plotInfo);
The last line of code means that you do not need to define a custom size of paper. When IsCustomPossible() called, AutoCAD will create a custom sized paper to match the defined plot area (Layout/Window...). If it returns 0, it means, you can go ahead with the plotting. For the details of the returned value from IsCustomPossible, you need to find it in ObjectARX C++ API documentation, not managed API documentation.