I am trying to add a drop cap to some paragraphs of a Word (.docx) document using python.
I know this is possible with Aspose but I do want to use free/open source software.
I can easily modify the text of a paragraph to add a new paragraph before that contains only the first letter in capital and with a bigger font size using python-docx. But this results in 2 paragraphs and not in a drop cap.
How to add a drop cap in a .docx file using python?
29 Views Asked by AnastasiaShishkova At
0
There are 0 best solutions below
Related Questions in PYTHON
- How to store a date/time in sqlite (or something similar to a date)
- Instagrapi recently showing HTTPError and UnknownError
- How to Retrieve Data from an MySQL Database and Display it in a GUI?
- How to create a regular expression to partition a string that terminates in either ": 45" or ",", without the ": "
- Python Geopandas unable to convert latitude longitude to points
- Influence of Unused FFN on Model Accuracy in PyTorch
- Seeking Python Libraries for Removing Extraneous Characters and Spaces in Text
- Writes to child subprocess.Popen.stdin don't work from within process group?
- Conda has two different python binarys (python and python3) with the same version for a single environment. Why?
- Problem with add new attribute in table with BOTO3 on python
- Can't install packages in python conda environment
- Setting diagonal of a matrix to zero
- List of numbers converted to list of strings to iterate over it. But receiving TypeError messages
- Basic Python Question: Shortening If Statements
- Python and regex, can't understand why some words are left out of the match
Related Questions in MS-WORD
- VBA query - sort text in alphabetical order in Word
- Can you programmatically generate a link to open a Word document and navigate to a particular location within it (preferably a comment)?
- How can I create an automatic table of contents in docx without the text being bold?
- Does MS Word secretly upload my file to cloud?
- How to use VBA to bold just some text
- Find text and numbers Formatted: "Case: BE########" and format them, regardless of the number
- Access all documents for Word from multiple instance using Excel VBA
- Using document.Application.PixelsToPoints will give different results
- Error: "Document_KeyUp" event not working
- Word macro for reversing selected text
- Make a table of remarks/figures, and format it as a table
- Add custom ribbon button to dotm file that runs macro
- Inline pictures: Add margin
- Excel VBA: Action logging on label click (like Audit Trail)
- Custom referencing format in CSL document, Want to add whitespace into bibliography
Related Questions in FORMATTING
- Calling ToString with a nominated format returns Char rather than String
- How do I use Poor Man's T-SQL Formatter in SSMS v20?
- Auto style text in flutter
- Have ISODD(SUMPRODUCT(1/COUNTIF ignore all blank cells
- Python library to display interview questions results (stored in excel)
- All styling is being removed from tables
- Highlight column based on current date and time
- ORACLE: Tabs used for indentation converted to spaces in stored procedure when executing through DSN connection
- Is there a 'bottom-to-top' equivalent of the unicode 'rtl override'?
- Write text to excel sheet using python but with different formats in a single cell
- how to format with double quotes using f-format in python?
- How to use 4 spaces formatting for indentation in VSCode for Volar through Vue - Official extension in .vue files?
- I am receiving a color formatting error when trying to run a Crystal Report in Personify
- how to Customize autoformatting of C# Code in visual Studio 2022
- How do I change the way my brace completion is handled in Visual Studio 2022 for Unity when coding in HLSL?
Related Questions in PYTHON-DOCX
- I am getting none with font name in some files
- Preserving word document formatting - footnotes, end notes everything while rewriting via code
- python-docx: Remove bibliography (w:sdt) section
- duplicate a page using docx-template
- Unable to read the elements in word document having content layout of 3 columns in the order in which it appears in word file
- Copying values from an excel table into a table in a word document
- How can I move paragraphs using python docx?
- Is there any way I can count the number of pages of a word document in python?
- python-docx - find and replace fails on table with multiple merged cells (list index out of range)
- Unable to add new line after matching a document.paragraphs - python docx library
- Faster / fastest way to convert pandas dataframes to word tables
- Issue with docxcompose and pyinstaller
- Read detailed style of paragraph in docx-file?
- How to access text box in a word document with Python?
- Split docx file at all Headings and keep styles?
Related Questions in DROP-CAP
- How to apply drop cap styles to pseudo-element content
- How to add a drop cap in a .docx file using python?
- How to remove extraneous space after drop capital in nested container
- Custom CSS drop caps in Wordpress 6.2.2 with Twenty Twenty Three theme
- CSS for dropcap image with text aligned over blank part
- How to handle nested div with ::first-letter pseudo-element
- Drop caps resulting in different letter height in Firefox
- How to limit CSS Drop Caps to only Filled Paragraphs of more than one line?
- Quick question about changing the font of the drop cap letter in my wordpress blog
- Floated element "steals" width from a following block element inside a display:table container
- How to style a DROP CAP when punctuations are involved
- dropcaps.js issue when first word is 2 letters
- Dropcap - :first-letter pseudo class not working as expected in firefox
- Workaround For Firefox Ignoring line-height In Floated Pseudo Element
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?