News:

Please note new Forum URL: forum.designcad.com

Main Menu
DesignCAD 3D Max 2027 box
Now available

DesignCAD 2027

Hatches that follow their boundaries, an on-screen dial to turn your model, and a way to find any command by name, in a clean Windows 11 look.

Import PDF Scale

Started by Dean, January 17, 2020, 06:08:39 AM

Previous topic - Next topic

0 Members and 0 Guests are viewing this topic.

Dean

The Import PDF tool appears to do a good job converting 2D vectorized PDF's though I always need to scale the imported graphics by 8 to match the original PDF scale.
> Is there anyway of adjusting the PDF import scale?
>Attached is a PDF for testing
DesignCad 3D max 2021
Lenovo 17.3"Laptop Intel(R) Core(TM) i7-9750H CPU @ 2.6GHz/Turbo boost 6 cores 12 threads.16GB memory.SSD 256GB/HDD 1TB 7200 Rpm.Nvidia Graphics GeForce GTX 1660 Ti 6GB
Windows 10 Home 64 bit

Rob S

I thin k you will find that any pdf drawing only knows its size relative to its paper-size in inches, so there will be no consistent factor to use unless all of your source drawings are printed at the same scale, in which case the inverse of the scale factor should work.  I don't think there is any setting at this time for import scale.

The best way to scale an imported pdf drawing is if you know the correct distance for two well-separated points of the drawing, and then you use the "units" command to tell DCAD what this distance is supposed to be.   The longer the distance, the more accurate this will be.

I am not sure what precision is used to store pdf drawings, but it is no where near the precision used in CAD drawings, so the accuracy of a pdf import will be reduced from the original.
User since forever

Dean

#2
I understand though Dcad must be using a internal generic scale factor on the imported pdf graphics, correct? why is it 8....
I tried this again by increasing the objects size and printing with a pdf scale @ 1:4 on an Arch E paper  and after importing the pdf in Dcad I still needed to scale up by 8,  (2.50*8= 20) which would be correct being that that the pdf is 1:4, original dim is 80,
When I measure the object in Acrobat (since the scale is noted) the measurement is correct, being 20.
This process is similar as seen in drafting plans.
DesignCad 3D max 2021
Lenovo 17.3"Laptop Intel(R) Core(TM) i7-9750H CPU @ 2.6GHz/Turbo boost 6 cores 12 threads.16GB memory.SSD 256GB/HDD 1TB 7200 Rpm.Nvidia Graphics GeForce GTX 1660 Ti 6GB
Windows 10 Home 64 bit

Rob S

Can't answer that offhand.  I would have thought a larger sized printout would import larger as well.

I did not think the pdf file would be capable of reading and interpreting the noted scale.   :)
User since forever

Dr PR

Dean,

Comparing the properties of the PDF file (18"x12") to the PNG file (1218x924 pixels) I get

67.667x77.25 pixels/inch

My guess is that after you remove the margins the PDF is being converted at 72 dpi. That is the original default printing resolution for color printing machines way back in the dark ages when PDFs were invented. This just may be a coincidence. Where did you get the PNG file?

I don't know how DesignCAD imports vector PDF files. The only "scale" is has to work with is the drawing size included in the PDF file. Acrobat Reader doesn't report a drawing scale in the Properties dialogs. An 18" wide drawing could be of an atom or a galaxy,

NOTE: DesignCAD imports raster files (JPEG< PNG, etc.) at screen resolution. One pixel of the bitmap file is imported as one pixel on the screen. If you zoom way out before importing the resulting image will be large relative to any entities already in the drawing (including other images). If you zoom way in and import the image will be tiny relative to other objects.

It may be that vector PDFs import in a similar manner, somehow scaled to the screen image.

If you import the same vector PDF file twice, zooming in/out after importing the first copy and then importing it again, are the resultant drawings the same size?

Phil
DesignCAD user since 1987

Dean

#5
Phil Quote " If you import the same vector PDF file twice, zooming in/out after importing the first copy and then importing it again, are the resultant drawings the same size?"

Yes, the exact same size and location.
Dcad is translating the vector pdf import, it's not an image file so the zoom level is irrelevant.
Dcad is using some sort of internal scaling value being used on the import that I don't think is correct or perhaps there is an Dcad option somewhere that can be adjusted.
Another way to look at it is that the imported pdf objects are being scale down.by a set value?
.
DesignCad 3D max 2021
Lenovo 17.3"Laptop Intel(R) Core(TM) i7-9750H CPU @ 2.6GHz/Turbo boost 6 cores 12 threads.16GB memory.SSD 256GB/HDD 1TB 7200 Rpm.Nvidia Graphics GeForce GTX 1660 Ti 6GB
Windows 10 Home 64 bit

Rob S

Always remember this bit:

QuoteThe best way to scale an imported pdf drawing is if you know the correct distance for two well-separated points of the drawing, and use the "units" command to tell DCAD what this distance is supposed to be.   The longer the distance, the more accurate this will be.
User since forever

Dean

Quote from: Rob S on January 17, 2020, 12:51:40 PM
Always remember this bit:

QuoteThe best way to scale an imported pdf drawing is if you know the correct distance for two well-separated points of the drawing, and use the "units" command to tell DCAD what this distance is supposed to be.   The longer the distance, the more accurate this will be.

Yes, of course but it's odd they chose .125 to be the static scale value during the pdf import > why not 1.
DesignCad 3D max 2021
Lenovo 17.3"Laptop Intel(R) Core(TM) i7-9750H CPU @ 2.6GHz/Turbo boost 6 cores 12 threads.16GB memory.SSD 256GB/HDD 1TB 7200 Rpm.Nvidia Graphics GeForce GTX 1660 Ti 6GB
Windows 10 Home 64 bit

Dr PR

Dean,

Thanks for checking the effect of zoom on the vector PDF import. Since it is a vector file the amount of zoom shouldn't matter, but some of the things DesignCAD does aren't logical ...

There is one thing I'm not sure I understand. Acrobat reader says your PDF drawing is 18"x12" - that would be the "sheet" size. Looking at the box in your drawing it appears that this 8" square. But when you import the drawing DesignCAD says it is 1" square?

When I open the file in Photoshop (yes, I know it is a bitmap editor) the PDF import dialog says the drawing (not the page) is a bit over 8" wide - that includes the dimension. So there is enough information in the file to get the dimensions right.

Acrobat Reader shows three layers in the PDF - DIM, Layer-2 and Layer_3. When you import the file into DesignCAD does it have the same three layers?

It certainly looks to me as if DesignCAD is screwing up the import.

Phil
DesignCAD user since 1987

Dean

"There is one thing I'm not sure I understand. Acrobat reader says your PDF drawing is 18"x12" - that would be the "sheet" size. Looking at the box in your drawing it appears that this 8" square. But when you import the drawing DesignCAD says it is 1" square?"

Yup

"Acrobat Reader shows three layers in the PDF - DIM, Layer-2 and Layer_3. When you import the file into DesignCAD does it have the same three layers?"

Not necessarily > DesignCad assigns ALL geometry to one layer called "PDF_geometry layer" and the dimension text to a "PDF_Solid fills layer".

DesignCad 3D max 2021
Lenovo 17.3"Laptop Intel(R) Core(TM) i7-9750H CPU @ 2.6GHz/Turbo boost 6 cores 12 threads.16GB memory.SSD 256GB/HDD 1TB 7200 Rpm.Nvidia Graphics GeForce GTX 1660 Ti 6GB
Windows 10 Home 64 bit

Dr PR

Thanks.

Not retaining the layer structure is a serious BUG!

What if you imported a 100 layer drawing? The result would be essentially useless!

Phil
DesignCAD user since 1987