Preserve SVG after PDF export from Word

Whenever I need to create a template for business documents (e. g. concept papers or documentation), I have to place some generic graphics such as the company’s logo here and there. Since Microsoft added support for SVG starting with Word 2016, I’m using SVG images in may documents since then without any problem (as long as there is no text inside).

Usually, this works just fine, but now I stumbled across a problem: I placed my company’s logo in a Word document. In Word itself, the image is displayed as a vector graphic perfectly fine, but when I export the document to PDF using Word’s integrated export function, the logo gets converted to a rastered graphic with poor quality.

I tried several other SVG images in that same document and they all work as intended. But I didn’t manage to get my company logo to work correctly. I have several versions of that logo available, but none of them work. It’s always the same behavior: In Word, everything works well, but after doing the PDF export, I get a rastered graphic in the PDF file.

I tried to recreate the SVG file from the source files (EPS, PDF) with all the options available in Adobe Illustrator, but I didn’t manage to get it working properly. Even though this wouldn’t be an option in the end, I tried to print the Word document using several PDF printers (Microsoft’s builtin PDF printer, Adobe PDF printer, PDF24 printer). But the results is exactly the same. 🙁

It has to be a problem with the image files itself, but I’m running out of ideas now. I converted the files back and forth and also tried some converting tools available online, but nothing changed.

I am using Microsoft Word 2019 (included in an O365 subscription) in the newest version available (2010).

I’m looking forward to your ideas. Thanks for your help! 🙂

export – Exporting string with newline and tab symbols to LaTeX

We have a string that has “tab” symbol between letters “B” and “C” and “newline” symbol between letters “C” and “D”:


"A BtCnD"


enter image description here

The output is formatted accordingly to special symbols used.

But when I export the same string to LaTeX, the special symbols n and t are interpreted literally like so:


ExportString["A btcnd", "TeXFragment"]


[text{A b$backslash $tc$backslash $newlined}]

If you put this Latex code into some TeX file the document will display literally “A BtCnD” and without “tab” and “newline” symbols.

How to tell the Mathematica to export the special symbols into LaTeX accordingly?

export – Exporting to PDF with correct size and resolution

I am trying to export a GraphicsGrid to a PDF such that the PDF has a size of 8×10 inches and a resolution of 300 dpi. Here is what I have done:

  1. Create the graphics grid with ImageSize->Full to get all the images placed in the grid correctly.

  2. Rasterize it to RasterSize 300{8,10}.

grid = Rasterize[
GraphicsGrid[{{fiberAndReferencePlot}, {transmissionPlot},
{summaryPlotRadians}}, ImageSize -> Full], RasterSize -> 300 {8, 10}]

  1. Export it to the correct size 8×10.

Export[“Grid.pdf”, grid, ImageSize -> 72 {8, 10}]

When I look at the PDF with Photoshop, it tells me that the image size in pixels is 2400×3000, which is correct. But the size in inches is 6.3 x 7.875, which is not the 8 x 10 I expected.

Can anyone tell me how to do this properly?

python – Create 5k unique users & passwords, export to sql

I’m trying to learn python on my own for a work proof of concept. I’d like to use python to create around 5k unique users and passwords, then export them to mysql. The goal is to show the difference in time from querying a database from a web login vs implementing a caching later in front of the DB using Redis or Memcached as a session store type of use case.

After some research, I found the crypt python library which can be used to create the password, but I’ve not had much success implementing this as my programming knowledge is abhorrent. If I’m going about it the wrong way, or if you all could help point me in the right direction, I’d be extremely grateful.

photoshop – Why do my colours completely fade when I merge layers or export to jpeg?

I’ve been working on a colourful image but when I export it to jpeg, the colours are almost gone. Sure, I understand saving in jpeg can lead to change in colour but.. this is the most massive loss of saturation I’ve seen. The same thing happens if I merge down as well.

This is what my layers look like

enter image description here

Am I missing something obvious?

The difference:

enter image description here

The purple colour especially seems to not appear. I feel like I’m missing something obvious. Am i working in the wrong colour space?

How can I get the colours to pop in my export files?

Magento 1 Export attributes of different types (via script form)

I was trying to create some robust form of exporting EAV values from the DB. Idea is to have a basic set of columns … then the admin can enter the attribute they want to add to the collection. The code below is working for most attribute types … long text, dropdown … but not! simple text values.

(assume _POST("attributecodes") contains comma separated list of existing attribute types)

$attributes = array();
if (isset($_POST("attributecodes")) && !empty($_POST("attributecodes"))) {
    $attribute_codes = array_map('trim', explode(',', $_POST("attributecodes")));
    foreach ($attribute_codes as $attribute_code) {
        $attribute_code = trim($attribute_code, ',');
        $attribute = Mage::getSingleton('catalog/product')->getResource()->getAttribute($attribute_code);
        if (!$attribute) {
            print("Attribute with code {$attribute_code} does not exist");
            Mage::throwException("Attribute with code {$attribute_code} does not exist");
        } else {
            if ( ($attribute->getFrontendInput() === 'select' && $attribute->getSource() instanceof Mage_Eav_Model_Entity_Attribute_Source_Table) ||
                 ($attribute->getFrontendInput() === 'multiselect' && $attribute->getBackend() instanceof Mage_Eav_Model_Entity_Attribute_Backend_Array) ) {
                    $data->addAttributeToSelect($attribute_code . '_value');
            } else {

php – Data/profile export categories name instead of Ids (magento 1.9)

I have done this script to runs data/profile using ssh terminal to export csv data of all products inside of magento 1.9.
I need to have the category name (structure tree) instead of category Ids but i do not know how to do that.
Attached my code.

#$profileId = 1; #All Products
$profileId = 49; #OnSale
require_once 'app/Mage.php';
$profile = Mage::getModel('dataflow/profile');
$userModel = Mage::getModel('admin/user');
if (!$profile->getId()) {
 Mage::getSingleton('adminhtml/session')->addError('(ERROR) Invalid ID');
Mage::register('current_convert_profile', $profile);
$recordCount = 0;