Word Online Editing \ generate image (including and merging), word
1. Business reasons
If the text edited by word is copied to the html editor (fck, etc.), the layout may be disordered, so it is chaotic. There needs to be a new method to end, so there is a series of problems such as whether the word can be edited online, stored in the background, and the front-end display light.
2. First, you can edit the word online by using weboffice or dsoframer. The advantage is that you can edit the word online only in the IE browser. Tangle...
3. After editing, save it in the background. weboffice or dsoframer has corresponding interfaces.
4. After saving the image to the background, convert the page Image Using Aspose. Words.
5. Because the image generated by Aspose. Words has a small margin, you need to save it.
6. Save the multiple graphs.
Pay key code:
Document doc = new Document (Server. mapPath (".. /.. /Uploads/"+ guid + ". doc "); ImageSaveOptions = new ImageSaveOptions (SaveFormat. png );
[Csharp]View plaincopyprint?
- For (int I = 0; I <doc. PageCount; I ++ ){
- Options. PageIndex = I;
- Doc. MailMerge. DeleteFields ();
- Doc. save (Server. mapPath (".. /.. /Uploads/"+ guid +"-"+ I. toString () + "-copy.png"), options); // Save the converted Image
- Bitmap bm = new Bitmap (Server. MapPath (".../Uploads/" + guid + "-" + I. ToString () + "-copy.png "));
- Rectangle cloneRect = new Rectangle (0,100,794,920); //, remove the top PX
- PixelFormat format = bm. PixelFormat;
- Bitmap cloneBitmap = bm. Clone (cloneRect, format );
- CloneBitmap. save (Server. mapPath (".. /.. /Uploads/"+ guid +"-"+ I. toString () + ". png "), ImageFormat. png); // save
- CloneBitmap. Dispose ();
- }
[Csharp]View plaincopyprint?
- Bitmap bmp = new Bitmap (794,920 * doc. PageCount); // create a blank image (combination)
- Graphics g = Graphics. FromImage (bmp );
- For (int I = 0; I <doc. PageCount; I ++)
- {
- Bitmap mp = new Bitmap (Server. MapPath (".../Uploads/" + guid + "-" + I. ToString () + ". png "));
- G. DrawImage (mp, new Point (0, I * 920 ));
- }
- G. Save ();
- Bmp. Save (Server. MapPath (".../Uploads/" + guid + ". png "));
- G. Dispose ();
- Bmp. Dispose ();
How can we combine the text and image of a Word document into a picture or avoid distortion?
Satisfied with the answer to embrace nature Level 4 you try to put the text above the picture, if blocked, right-click the picture, choose the bottom of the order. If you add an image to a text box, you can also try to merge the image, that is, select the text box and image, and right-click to merge. Q: I don't know where to merge them? It seems that there is no .. a: press ctrl on the keyboard, click the picture and text box on the left, and move your hand away from the keyboard. Click the picture or text box right and a drop-down menu is displayed. Select "merge! Q: After this is done, will a document become an image ?? I am worried that if I just merge it, I will go to the print store to print the fonts that I have not installed on my computer ~ Could you give me some advice ?? Thanks .. q: What I want to know most is how to combine the text and images in all Word documents into one image, in this way, I can print the image directly when printing... answer: after the merge, it is the same! If the merger is canceled, the computer to which the merger is made will be one! As for the font, try to find the font folder on your computer and forget the name of the folder. I don't know whether it's type or drive C! Otherwise, you can search for the font file, select the file type in the options, or enter the name of the font you used and search for it! Finally, copy the font file you used to the place where you want to print it and explain the situation to him! Q: Well, thank you !!! 2011-03-22
How to edit images on the Internet in word, such as inserting annotations?
Word is a text processing and typographical software. Editing images is not its strength. It is recommended that you use an image editor for simple image editing and complex PS.