Jump to content
seiryu

PDF and SVG import issue

Recommended Posts

I'm having an issue opening a specific svg or pdf formatted file. I can display the file fine using other applications but trying to use it as a part of a graphic project is proving impossible. I've attached the pdf, svg and a tiff version of the file so you can see what it should look like. The PDF displays fine using Preview.app and the SVG looks correct in Safari.

 

I note there are a couple other recent reports of issues with pdf and svg file interpretation but not sure if this is related.

qrcode-bc-kb.pdf

qrcode-bc-kb.svg

qrcode-bc-kb.tiff

Share this post


Link to post
Share on other sites

Wow. That QR code is a mess. Each piece is a clipping mask that clips a full-size grey rectangle.

 

It opens fine in other applications for editing, though. But even InkScape has the same issue as AD does once the parts are ungrouped. A mess, that is.

 

Here it is. I think I combined the parts correctly, but I didn't compare it with the PDF in detail. As a "bonus" I traced the dragon, too.

 

Mike

 

qrcode-bc-kb.afdesign

Share this post


Link to post
Share on other sites

Wow! Thanks for doing that Mike!!! From my qrscan it does appear you got it right.

 

I think I understand why the QR was built that way. One of the features of the application I used is the ability to have a background gradient and each block in the QR needs to be a mask to it's part of that gradient. Certainly possible to create a more complex object as you've done but it would make the generating algorithm more complex.

 

Any tricks to how you went about unpacking the mess?

 

Ken

Share this post


Link to post
Share on other sites

Hi Ken,

 

I used another application that opened it properly. I then selected what were the clipped gray parts with the exception of the circular corner targets and combined them. There were a few holes that needed individually selected and subtracted from the now-combined, single path object (which was the aspect I was concerned about).

 

The dragon was traced in CorelDraw and I then replaced the image of the dragon with the traced version in the same size/location of the image version.

 

Assembly was done in AD via an EPS export from the application I used for editing. Whole process was a few minutes in the main--I probably took as long just comparing the PDF to the edited version.

 

Take care, Mike

Share this post


Link to post
Share on other sites

Thanks again for the work! Fingers crossed I can replicate your results using only AD and Inkscape. Not looking to buy another app just to manipulate a few of these files.

Share this post


Link to post
Share on other sites

Yep, sorry to imply the need for yet another software.

 

I could have done the whole thing in AD...it would have just taken longer and I was also seeing what applications handled that SVG and/or PDF properly. So it was simply quicker to deal with in that application.

 

Take care, Mike

Share this post


Link to post
Share on other sites

It looks like the PDF fill mode has got lost on the clipping path. If you open the PDF in Designer, select the clipping path in the Layers tab, and use Layer > Fill Mode > Winding, it looks more like it should.

 

I'm not sure what's going on with the SVG, but we do have some long-standing problems with importing clips, which I think this falls afoul of.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×

Important Information

These are the Terms of Use you will be asked to agree to if you join the forum. | Privacy Policy | Guidelines | We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.