Fw: About PDF Import and a font name problem.
by Kim Hovorka
Sincerely,
Kim Hovorka
801-785-3669
kimhovorka@...12...
--- On Tue, 12/18/07, Kim Hovorka <kimhovorka@...12...> wrote:
> From: Kim Hovorka <kimhovorka@...12...>
> Subject: About PDF Import and a font name problem.
> To: inkscape-user(a)lists.sourceforge.net
> Date: Tuesday, December 18, 2007, 11:39 PM
> Hello,
>
> I have to import PDF files on a daily basis from PDF
> drivers such
> as Adobe PDF printer driver or PrimoPDF and when importing
> one
> thing I have recently learned as I am starting to work with
> inkscape
> is that the Font names seem to not get imported properly
> and perhaps
> this is a known bug. If the font used to print to the
> Driver is
> for example Times New Roman, when it is imported to SVG in
> inkscape
> it is converted to the name TimesNewRoman and the missing
> spaces
> are the main problem in the font name. If I use a text
> editor
> and do a search and replace on TimesNewRoman and replace it
> with
> Times New Roman then the font is used properly. I would
> hope this
> can be easily corrected.
>
> I have another question and I don't know if there is
> somewhere you
> can already do this. It would be nice if the X= value could
> be limited
> to just a single X coordinate rather than a list in my type
> of work so
> that the text string is a single string in positioning.
> Example: x="-3.296843 1.747382 2.3432245" could
> just be x="-3.296843".
> Is that a possibility?
>
> Sincerely,
>
> Kim Hovorka
>
>
>
>
> ____________________________________________________________________________________
> Looking for last minute shopping deals?
> Find them fast with Yahoo! Search.
> http://tools.search.yahoo.com/newsearch/category.php?category=shopping
____________________________________________________________________________________
Never miss a thing. Make Yahoo your home page.
http://www.yahoo.com/r/hs
15 years, 5 months
Re: [Inkscape-user] resizing page without resizing drawing?
by Tony Vigil
I've never seen graphics rescale when I change my page size.
Opposite to what was originally asked, how would one force objects to scale with the page when the page size is changed? I see mention of a viewBox attribute. Is that something that is only available through manual editing of the XML, or does Inkscape have this feature per object? If Inkscape isn't capable of doing this (yet), could it be a useful feature?
- Tony
15 years, 5 months
match properties
by heathenx
Was thinking. In AutoCAD we have this feature called "Match Properties". Basically, if you have two
different objects with different properties, say color, layer, or linetype, one can select the
source object (the one with the properties that you want) and apply it's properties to the target
object. Is there anything in Inkscape that is similar?
heathenx
15 years, 5 months
Re: [Inkscape-user] resizing page without resizing drawing?
by Cedric Sagne
To bring some water to the mill, I had a "squashed" image problem
importing in Scribus (those also on that list saw it).
The image I drew is based on a vectorisation of a picture through
VectorMagic, the vectoriser of Stanford University, which did add the
viewbox attribute to all files I created through there. It is possibly
also the case of files created in AI !
viewBox="0 0 132 175"
A small Inkscape file does not create such an attribute. But is there
indeed a place in the Inkscape GUI where it is visible?
Cédric
15 years, 5 months
About PDF Import and a font name problem.
by Kim Hovorka
Hello,
I have to import PDF files on a daily basis from PDF drivers such
as Adobe PDF printer driver or PrimoPDF and when importing one
thing I have recently learned as I am starting to work with inkscape
is that the Font names seem to not get imported properly and perhaps
this is a known bug. If the font used to print to the Driver is
for example Times New Roman, when it is imported to SVG in inkscape
it is converted to the name TimesNewRoman and the missing spaces
are the main problem in the font name. If I use a text editor
and do a search and replace on TimesNewRoman and replace it with
Times New Roman then the font is used properly. I would hope this
can be easily corrected.
I have another question and I don't know if there is somewhere you
can already do this. It would be nice if the X= value could be limited
to just a single X coordinate rather than a list in my type of work so
that the text string is a single string in positioning.
Example: x="-3.296843 1.747382 2.3432245" could just be x="-3.296843".
Is that a possibility?
Sincerely,
Kim Hovorka
____________________________________________________________________________________
Looking for last minute shopping deals?
Find them fast with Yahoo! Search. http://tools.search.yahoo.com/newsearch/category.php?category=shopping
15 years, 5 months
Vacuum defs minor problem
by Brian Vanderburg II
I'm not sure if this is only my problem or not, but vacuuming defs only
seems to work when the file is freshly opened/reverted. If I make
changes to a file that causes new defs to be created, then delete
something else that no longer needs some defs and do a vacuum defs, it
does not. If I save the file and then do a vacuum defs, it still does
not. Only if I reopen and then vacuum or save then revert then vacuum
does it seem to work. It's not too big of a deal, but the file size is
reduced a little when the unused defs are no longer there, and I
normally do this before saving without thinking about saving, reverting,
vacuuming, and then saving again.
I'm on XP SP2, and this seems to be the case with 0.45 and a development
snapshot I've recently downloaded.
Brian Vanderburg II
15 years, 5 months
More control over gradients
by Brian Vanderburg II
First of all thanks for such a great product.
I know that full control can be achieved by directly editing the file,
but I don't know how much Inkscape might still change. After looking
though the files produced by Inkscape, I know that for each item that
uses a gradient, a special 'dummy' gradient is created that uses the
'real' gradient. This makes it where each item can have it's own
transforms for the gradient. But, what if I want two items to use the
same transforms, the same 'dummy' gradient. I could use a clone, but
what if I have an ellipse and a rectangle, but both I want to use the
same gradient.
Here is how it currently works:
linearGradient1234 (real gradient with real stops)
|
|- linearGradient2345 (dummy gradient uses 1234)
| |
| |- rectangle (using dummy gradient 2345)
|
|- linearGradient7890 (dummy gradient uses 1234)
|
|- ellipse (using dummy gradient 7890)
What I want to be able to do is this:
linearGradient1234 (real gradient with real stops)
|
|- linearGradient2345 (dummy gradient uses 1234)
|
|- rectangle (using dummy gradient 2345)
|- ellipse (using dummy gradient 2345)
So that any transforms I apply to the gradient used by the rectangle
will also affect the ellipse.
Perhaps something that would be nice would be a 'graph' editor for
gradients (and for other things maybe as well) that would show the
'real' gradient, and any 'dummy' child gradients connected, grandchild
gradients,etc, or something where you can define the actual relationship
however you want. Then, when assigning a gradient you can select from
not a gradient list only showing the 'real' but a tree, where the items
in the root of the tree are the top gradients and sub-items are child
gradients that use the top gradients or their parent gradients (support
for any level of nested gradients, grandchild gradients, etc)
When editing a gradient for an item, the ability to 'pick' which
gradient is being edited would be nice as well. For example. If my
document is like this:
linearGradient1234 (real gradient with real stops)
|
|- linearGradient2345 (dummy gradient uses 1234)
|
|- rectangle (using dummy gradient 2345)
|
|- linearGradient7890 (dummy gradient uses 2345 which uses 1234)
|- ellipse (using dummy gradient 7890)
When editing the gradient of the ellipse, I can choose to edit gradient
7890 which would only affect the ellipse, or I can edit 2345, which
would affect both the ellipse and the rectangle, or I can edit the stops
of 1234, which would affect both. This would also make it easy to have
a master transformation in 2345 that affects both and a fine-tuned
transformation in 7890 just for the ellipse.
Perhaps even the same idea could be applied to anything, such as
patterns as well.
Brian Vanderburg II
15 years, 5 months
resizing page without resizing drawing?
by Daniel Lenski
Hi all,
I've been using Inkscape (version 0.45 under Ubuntu) for a couple of
months mostly to make technical drawings and diagrams for use on Wikipedia.
I love it, but there's just one thing that's driving me nuts! There's no
way to resize the page without resizing all the objects in it.
For example, I may have an object that's exactly 36×24 mm on an 8×10"
page. If I change the page size to A4, all the objects change their
size. The only way to restore it is to calculate the *exact* scale factor
and then rescale them afterwards... and even then there are sometimes some
rounding errors :-(
So is there a way to resize the page without scaling the objects within?
Thanks!
Dan Lenski
15 years, 5 months
export id to PDF
by Alexander Bonivento
Hello everyone!
strange to say, i need your help once more.
As usual by me, it's a bit complicated...
It may seem a bug, but i also think it may be me, so here's the explanation.
NOTES:
i'm using Inkscape 0.45+devel (Dec 8 2007)
All of this is done via PHP, no human action.
Here i am reporting values dumped from the PHP script itself
The issue: Plz cosider this simple code:
<svg width="2160in" height="2160in" viewBox="0 0 2160 2160" xmlns="http://www.w3.org/2000/svg" xml:space="preserve" shape-rendering="geometricPrecision" text-rendering="geometricPrecision" image-rendering="optimizeQuality" fill-rule="evenodd" clip-rule="evenodd" xmlns:xlink="http://www.w3.org/1999/xlink">
<g id="text_4" transform="translate(1080,1080)">
<text id="text_4_1" transform="translate(0,0)" style=" text-anchor:start; font-size: 90; font-family: 'Times New Roman'; font-style: italic; font-weight: bold; fill: #000000; fill-opacity: 1; stroke: none;">SCHOOL BOARD</text>
</g>
</svg>
It's simply a textline inside a big canvas.
What i need to do is to export in PDF only the text_4 object.
I need it perfectly trimmed, so that the PDF will be exactly sized over it.
As the export-id option seems to work only for PNG export, i tried to do this:
- use query-width and query-height to find "text_4 object" size
- create a new SVG using the resulted values as width and height
- finally export the new SVG in PDF
The results of the queries on the avobe file are:
inkscape -z svgfile.svg --query-width --query-id text_4 => 66073.068
inkscape -z svgfile.svg --query-height --query-id text_4 => 8594.1
NOTE: I queried text_4 and not text_4_1 because sometimes i will have multiline texts here, and so other
text_4_2, text_4_3, etc... inside text_4. text_4 is the container, i need all the "text_4_xxx" in the same PDF.
Anyhow, for this specific case, i also tested the query on ID text_4_1: as expected, same result.
Values are "SVG user units", which are 90 DPI.
So next i divided the values by 90:
66073.068/90=734.1452
8594.1/90=95.49
And finally i create the "last" SVG file:
<svg width="734.1452in" height="95.49in" viewBox="0 0 734.1452 95.49" xmlns="http://www.w3.org/2000/svg" xml:space="preserve" shape-rendering="geometricPrecision" text-rendering="geometricPrecision" image-rendering="optimizeQuality" fill-rule="evenodd" clip-rule="evenodd" xmlns:xlink="http://www.w3.org/1999/xlink">
<rect x="0" y="0" width="734.1452" height="95.49" style="fill: none;" />
<g transform="translate(0,95.49)">
<text id="text_4_1" transform="translate(0,0)" style=" text-anchor:start; font-size: 90; font-family: 'Times New Roman'; font-style: italic; font-weight: bold; fill: #000000; fill-opacity: 1; stroke: none;">SCHOOL BOARD</text>
</g>
</svg>
As you can see, it's the same identical "text_4_1" line, there's nothing there to alter it.
At this point i would have expected the PDF exported from this 2nd SVG to be fine... but it's not at all.
Any ideas/suggestion/hints?
Am i doing something wrong?
Is there some simpler way to export a "trimmed" object alone in a PDF file?
I think i may have missed something about SVG units conversion, maybe.
Thanks in advance, sorry for the long post.
Alex
15 years, 5 months