Author Topic: PDF causes a loss of performance  (Read 6460 times)

0 Members and 1 Guest are viewing this topic.

Hangman

  • Swamp Rat
  • Posts: 566
PDF causes a loss of performance
« on: July 30, 2014, 10:31:32 AM »
Has anyone run into a problem importing a PDF file into an empty template and have the drawing turn really sluggish?

I have an 8mg scanned PDF (from a bldg. drawn 65 years ago, i.e.: board drafting) I xref'd into an empty drawing template and immediately the drawing becomes sluggish.  Especially around the zoom (mouse wheel).  I can turn the layer the xref is attached to off and I get immediate performance gains so it's obviously in the PDF.

I'm looking for a system variable I can adjust or something I can change in ACAD to help with this performance loss as I can't edit / manipulate the PDF.

Any suggestions would be greatly appreciated.
Thank you,  Hangman.
Hangman  8)

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Drafting Board, Mechanical Arm, KOH-I-NOOR 0.7mm
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Rob...

  • King Gator
  • Posts: 3824
  • Take a little time to stop and smell the roses.
Re: PDF causes a loss of performance
« Reply #1 on: July 30, 2014, 10:34:22 AM »
This is a known issue. It should help if you change to a different type of image format, PNG or TIFF should help.
CAD Tech

JohnK

  • Administrator
  • Seagull
  • Posts: 10626
Re: PDF causes a loss of performance
« Reply #2 on: July 30, 2014, 12:27:28 PM »
Or DWFx. I have been using DWFs more and more over the last few years and I really like them. ...The XPS format Microsoft came up with is really nice. A lot of potential.
TheSwamp.org (serving the CAD community since 2003)
Member location map - Add yourself

Donate to TheSwamp.org

cadtag

  • Swamp Rat
  • Posts: 1152
Re: PDF causes a loss of performance
« Reply #3 on: July 31, 2014, 09:49:55 AM »
Or DWFx. I have been using DWFs more and more over the last few years and I really like them. ...The XPS format Microsoft came up with is really nice. A lot of potential.

a DWFx from a scan?  Given the OPs description, I'd go with converting the scanned PDF to either a bitonal TIFF, or a PNG.
The only thing more dangerous to the liberty of a free people than big government is big business

JohnK

  • Administrator
  • Seagull
  • Posts: 10626
Re: PDF causes a loss of performance
« Reply #4 on: July 31, 2014, 09:58:24 AM »
Or DWFx. I have been using DWFs more and more over the last few years and I really like them. ...The XPS format Microsoft came up with is really nice. A lot of potential.
a DWFx from a scan?  Given the OPs description, I'd go with converting the scanned PDF to either a bitonal TIFF, or a PNG.

I was speaking more to the general problem(s) of PDFattach. -i.e. I use DWF whenever possible. But, I'll play along for a while. What do you think is in the PDF? ...DWF, XPS, PDF are containers in this respect. So, when people say "convert a scanned PDF to jpg" they really mean: "extract".
TheSwamp.org (serving the CAD community since 2003)
Member location map - Add yourself

Donate to TheSwamp.org

cadtag

  • Swamp Rat
  • Posts: 1152
Re: PDF causes a loss of performance
« Reply #5 on: July 31, 2014, 10:41:02 AM »
Oh I completely agree with the better performance in general of DWF vs PDF.  PDFAttach is more of a 'checkbox' feature than as useful as it could be IMHO.   For vector CAD generated files, DWF is great.  PDF incorporates so many mixes, that it's often a mess to work with. 

For the OP though, given that he's dealing with a 65 year old  drawing, (blue-line?  blue-print?  ink on linen????) run through a scanner and saved to PDF, I'd expect a lot of pixels, many irrelevant from the background -- probably colored by yellowing of the media, and faded linework that's hard to work with.  IronGall ink does tend to brown out with age and oxidation.  Dunno about squid ink anymore.  Before my time donchaknow.

Heck the 20 year old bluelines I've had to deal with have been messy enough after scanning. 
The only thing more dangerous to the liberty of a free people than big government is big business

CAB

  • Global Moderator
  • Seagull
  • Posts: 10401
Re: PDF causes a loss of performance
« Reply #6 on: July 31, 2014, 11:48:08 AM »
Here in ACAD2006 I avoid PDF & Word Files. Performance & hang ups.
I convert Word files to Mtext & PDF to image to use in the DWG.
I've reached the age where the happy hour is a nap. (°¿°)
Windows 10 core i7 4790k 4Ghz 32GB GTX 970
Please support this web site.

danallen

  • Guest
Re: PDF causes a loss of performance
« Reply #7 on: July 31, 2014, 12:31:44 PM »
I've always converted scans to monochrome/bitmap mode TIF files (all black or white) reduces file size dramatically. In photoshop you need to convert RGB to grayscale, then to bitmap mode. Or in Bluebeam you can export the PDF to TIF format and change export preferences to use monochrome option.

Also allows scan to be color of layer inserted on, such as a dark gray to not compete with linework drawn over

snownut2

  • Swamp Rat
  • Posts: 971
  • Bricscad 22 Ultimate
Re: PDF causes a loss of performance
« Reply #8 on: July 31, 2014, 12:33:05 PM »
I use PNG for images, no noticable performance issues, and the images always print out clearly.

ronjonp

  • Needs a day job
  • Posts: 7527
Re: PDF causes a loss of performance
« Reply #9 on: July 31, 2014, 12:52:46 PM »
I use PNG for images, no noticable performance issues, and the images always print out clearly.


X2

Windows 11 x64 - AutoCAD /C3D 2023

Custom Build PC

Krushert

  • Seagull
  • Posts: 13679
  • FREE BEER Tomorrow!!
Re: PDF causes a loss of performance
« Reply #10 on: July 31, 2014, 12:56:29 PM »
I've always converted scans to monochrome/bitmap mode TIF files (all black or white) reduces file size dramatically. In photoshop you need to convert RGB to grayscale, then to bitmap mode. Or in Bluebeam you can export the PDF to TIF format and change export preferences to use monochrome option.

Also allows scan to be color of layer inserted on, such as a dark gray to not compete with linework drawn over
Adobe Pro will save to TIFF, PNG and JPEG formats. 
I + XI = X is true ...  ... if you change your perspective.

I no longer CAD or Model, I just hang out here picking up the empties beer cans

danallen

  • Guest
Re: PDF causes a loss of performance
« Reply #11 on: July 31, 2014, 01:00:40 PM »
My experience is PNG is good for converting a vector based PDF to image, as PNG format is optimized for this. Raster scans generally have smaller file size in JPG format if color, and I still like TIF for monochrome. If I recall correctly monochrome TIF can be transparent, PNG can't.

I use PNG for images, no noticable performance issues, and the images always print out clearly.

Crank

  • Water Moccasin
  • Posts: 1503
Re: PDF causes a loss of performance
« Reply #12 on: August 01, 2014, 03:29:46 PM »
My experience is PNG is good for converting a vector based PDF to image, as PNG format is optimized for this. Raster scans generally have smaller file size in JPG format if color, and I still like TIF for monochrome. If I recall correctly monochrome TIF can be transparent, PNG can't.

[...]
A vector based PDF can be converted to dxf. :)
Vault Professional 2023     +     AEC Collection

snownut2

  • Swamp Rat
  • Posts: 971
  • Bricscad 22 Ultimate
Re: PDF causes a loss of performance
« Reply #13 on: August 03, 2014, 08:46:19 AM »
I use this for doing my file conversion, you can create bookmarked pdf files containing many different original file types in one operation, also comes with a handy tool "Acroplot Matrix" that allows marking up of PDF files (filling in forms marking drawings etc.)

Also converts PDF's into many different image file types.

https://www.cadzation.com/acroplotpro_info.htm

And @ $199.00 its less than 1/2 the price of Acrobat.

Rob...

  • King Gator
  • Posts: 3824
  • Take a little time to stop and smell the roses.
Re: PDF causes a loss of performance
« Reply #14 on: August 03, 2014, 10:29:32 AM »
But AutoCAD still takes a performance hit with PDFs created from it.
CAD Tech

Hangman

  • Swamp Rat
  • Posts: 566
Re: PDF causes a loss of performance
« Reply #15 on: August 04, 2014, 12:05:45 PM »
Well Thank you for all the replies & the discussion of PDF vs a raster image file.
From the sounds of it, a Monochrome TIFF raster file is a better bet than PNG but isn't a JPEG compressed more?  So if one has an 8mg PDF converting over to a TIFF file vs JPEG file, ...  well I think it would depend on the one doing the conversion, how well they know the software (Acrobat, Bluebeam, Acroplot Pro, etc), how well the software converts the file & the compression, etc.

I agree with the DWF(x) completely, I use to work with them all the time, back when the DWF viewer from Autodesk was 1.2 meg in size. You could copy the .exe file to a 3.5" floppy disk & send it with your drawings to a client.  I was a big promoter of DWF's, but for some reason nobody else liked them so we quit using them.
Hangman  8)

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Drafting Board, Mechanical Arm, KOH-I-NOOR 0.7mm
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

JohnK

  • Administrator
  • Seagull
  • Posts: 10626
Re: PDF causes a loss of performance
« Reply #16 on: August 04, 2014, 12:31:09 PM »
Well Thank you for all the replies & the discussion of PDF vs a raster image file.
From the sounds of it, a Monochrome TIFF raster file is a better bet than PNG but isn't a JPEG compressed more?  So if one has an 8mg PDF converting over to a TIFF file vs JPEG file, ...  well I think it would depend on the one doing the conversion, how well they know the software (Acrobat, Bluebeam, Acroplot Pro, etc), how well the software converts the file & the compression, etc.

I agree with the DWF(x) completely, I use to work with them all the time, back when the DWF viewer from Autodesk was 1.2 meg in size. You could copy the .exe file to a 3.5" floppy disk & send it with your drawings to a client.  I was a big promoter of DWF's, but for some reason nobody else liked them so we quit using them.

TIFF is uncompressed. JPG has a nice compression.
Question: The OP said SCANed PDFs...why even scan to a PDF if you can scan to an image (save the step of "EXTRACTING" the image).

For what its worth:
DWFx uses the XPS format Microsoft developed.
  • XPS still doesn't handle 3d files yet.
  • DWF viewer cant read raw XPS files yet.
  • The built in XPS viewer sucks. --Use Sumatra viewer for a really nice alt.
  • XPS files can be viewed in internet explorer.
TheSwamp.org (serving the CAD community since 2003)
Member location map - Add yourself

Donate to TheSwamp.org

cadtag

  • Swamp Rat
  • Posts: 1152
Re: PDF causes a loss of performance
« Reply #17 on: August 04, 2014, 02:55:01 PM »
Well Thank you for all the replies & the discussion of PDF vs a raster image file.
From the sounds of it, a Monochrome TIFF raster file is a better bet than PNG but isn't a JPEG compressed more?  ...

JPEG (Joint Photographic Experts Group) is optimized for photos.  Monochrome (bi-tonal) is not well served quality or otherwise with a compression scheme that's intended for color photography utilizing millions of colours.  For one thing, it cannot do monochrome.  JPEG can do grayscale, but that's not the same thing at all.

Unless of course you want to print the sepia yellowed paper and blueline colors of the old original....

I'm not sure offhand if a PNG can do monochrome (bitonal) images, of if it would resort to grayscale.  And if you want a transparent background in CAD and only see the lines, then bitonal is the only route to take.
The only thing more dangerous to the liberty of a free people than big government is big business

cadtag

  • Swamp Rat
  • Posts: 1152
Re: PDF causes a loss of performance
« Reply #18 on: August 04, 2014, 02:57:27 PM »
...
TIFF is uncompressed. JPG has a nice compression.
...

TIFF can be used as a compressed format.  LZW or ZIP compression are both incorporated in the format definition.
The only thing more dangerous to the liberty of a free people than big government is big business

JohnK

  • Administrator
  • Seagull
  • Posts: 10626
Re: PDF causes a loss of performance
« Reply #19 on: August 04, 2014, 02:59:10 PM »
...
LZW or ZIP compression are both incorporated in the format definition.

It is? ...huh. Good to know.
TheSwamp.org (serving the CAD community since 2003)
Member location map - Add yourself

Donate to TheSwamp.org

Hangman

  • Swamp Rat
  • Posts: 566
Re: PDF causes a loss of performance
« Reply #20 on: August 04, 2014, 04:18:57 PM »
...
TIFF is uncompressed. JPG has a nice compression.
Question: The OP said SCANed PDFs...why even scan to a PDF if you can scan to an image (save the step of "EXTRACTING" the image).
 ...

Good question; I would think they (the scanners/receptionist in the office) were instructed to preserve the old drawings in PDF (or perhaps that's all the scanner will do is PDF's or perhaps that's all the receptionist knows how to do).  The drawings were literally 30x48 sheets (Yes, you read that right, 30x48 not 30x42) from, like the 1950's era to my understanding.  I don't know when the sheets were scanned, but they did a pretty good job cleaning it up from the fade of the originals.

But now that I know what you know, I'll be sure to use a TIFF or DWF next round.  Thank you all again.
Hangman  8)

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Drafting Board, Mechanical Arm, KOH-I-NOOR 0.7mm
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

ChrisCarlson

  • Guest
Re: PDF causes a loss of performance
« Reply #21 on: August 04, 2014, 04:27:17 PM »
2015 has a noticeable improvement in PDF however it's still far from perfect. In talking to AutoDesk the issue is in the way the PDF is encoded, notably information for snaps. Converting to TIFF is fine and dandy but you lose this ability. However TIFF's are a pain to just view and share via email. My suggestion is scan to PDF, keep the original and create an xref folder containing the TIFF image.

Also try "imaegequality" - "draft" setting within AutoCAD before abandoning PDF's

cadtag

  • Swamp Rat
  • Posts: 1152
Re: PDF causes a loss of performance
« Reply #22 on: August 05, 2014, 07:41:44 AM »
Converting a vector PDF to TIFF will lose snapping - converting a PDF scan of a 65 year old blueline drawing to TIFF won't -- you can't lose what's not there.
The only thing more dangerous to the liberty of a free people than big government is big business

Hangman

  • Swamp Rat
  • Posts: 566
Re: PDF causes a loss of performance
« Reply #23 on: August 05, 2014, 10:24:21 AM »
Converting a vector PDF to TIFF will lose snapping - converting a PDF scan of a 65 year old blueline drawing to TIFF won't -- you can't lose what's not there.

Very true indeed!
Hangman  8)

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Drafting Board, Mechanical Arm, KOH-I-NOOR 0.7mm
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~