In the early stage, I made a PDF document reader. Recently, the company has a project that needs to convert the DOC document into a PDF document. The thread is used. [Java] import java. io. file; import java.net. connectException; import java. util. date; import com. artofsolving. jodconverter. documentConverter; import com. artofsolving. jodconverter. openoffice. connection. openOfficeConnection; import com. artofsolving. jodconverter.
Recently, to do a project, you need to convert the user upload Word,excel document into a PDF document to save and print, find a lot of information on the Internet, not comprehensive, so I wrote a more comprehensive tutorial to share.Here are the steps to proceed:1, install the free OpenOffice software, please go to OpenOffice.org download the latest version.2, JDK support, please self-search download the latest version of the JDK.3, after the install
Java+flexpaper+swftools Imitation Library document online reading
Reproduced from: http://my.oschina.net/stephenzou/blog/144489
I. The idea of online reading of documents1. Convert ppt, Word, Excel, text to PDF with OpenOffice2. Convert the generated PDF to SWF using Swftool and then use Flexplayer to achieve online preview playbackIi. preparatory work1. Installation OpenOffice, website download address: http://www.openoffice.org/download/index.html,
I take the following three packages as an example: (Three packages are under/etc/opt)
A. example-1.2.3-1.rpm
B. Example-1.2.3-1.tar
C. example-1.2.3-1.tar.gz
1. Install RPM Package
Speaking of the RPM (REDHAT Package Management) standard software package, you may recall that the famous REDHAT company, it is the RPM package distribution, the installation of Linux software is simple. If the user wants to install the software released by RPM, simply type the command "Rpm-ivh xxx". RPM "can be.
The case may be one of the most misused keywords in SQL. Although you may have used this keyword before to create a field, it has more usage. For example, you can use the case in the WHERE clause.
First let's take a look at the syntax of the case. In a general SELECT, the syntax is as follows:
SELECT CASEWHEN WHEN ELSE END
In the above code, you need to replace the contents of the angle brackets with specific parameters. The following is a simple example:
USE pubsGOSELECT Title, 'Price Ran
GitHub, address: https://github.com/bartaz/impress.jsOfficial Demo Address: Http://bartaz.github.com/impress.jsBecause the description document use document is not found on its project page, this article will create a more introductory presentation step by step, and we'll go down.Get ready for a modern browser: Google Chrome (Best of Breed), Safari, or ff.* My IE10 do not support, do not know why a lot of information on the written IE10 can support, back a reminder.Configuration
HTML5
Many people know that case is one of the most misused keywords in SQL. Although you may have used this keyword before to create a field, it also has more features. For example, you can use case in the WHERE clause. First, let's take a look at the case syntax. In a general SELECT statement, the syntax is as follows:
Code
Select Case
When When Else
In the above Code, you need to replace the content in angle brackets with specific parameters. The following is a simple example:
Code
Use pubs go
Se
Case
It may be one of the keywords most misused in SQL. Although you may have used this keyword before to create a field, it also has more features. For example, you can
Where
Clause
Case
.First, let's take a look.
Case
. In normal
Select
The syntax is as follows:
Select
Mycolumnspec
>
=
Case
When
A
>
Then
Somethinga
>
When
B
>
Then
Somethingb
>
Else
Somethinge
>
End
In the abov
WHERE clause.
First, let's look at the CASE syntax. In a general SELECT statement, the syntax is as follows:SELECT
=
CASE
WHEN THEN
WHEN
THEN
ELSE
END
The above code should replace the content in angle brackets with specific parameters.
Example:
USE pubsGOSELECTTitle,'Price Range' =CASEWHEN price is null then 'unpriced'WHEN price WHEN price BETWEEN 10 and 20 THEN 'average'ELSE 'gift to impres
No, take the case to replace it.
For example, the following statement shows the Chinese month
Copy Code code as follows:
Select GETDATE () as date, Case month (GETDATE ())
When one then ' 11 '
When then ' 12 '
else substring (' 1,234,567,890 ', Month (getdate ()), 1)
End+ ' Month ' as month
The case may be one of the most misused keywords in SQL. Although you may have used this keyword before to create a field, it has more usage. For example, you can use the case
No, take the case to replace it.
For example, the following statement shows the Chinese month
Copy CodeThe code is as follows:
Select GETDATE () as date, Case month (GETDATE ())
When one then ' 11 '
When then ' 12 '
else substring (' 1,234,567,890 ', Month (getdate ()), 1)
End+ ' Month ' as month
The case may be one of the most misused keywords in SQL. Although you may have used this keyword before to create a field, it has more usage. For example, you can use the case in the WHERE clause.
'unpriced'
WHEN price WHEN price BETWEEN 10 and 20 THEN 'average'
ELSE 'Gift to impress relatives'
END
FROM titles
Order by price
GO
This is a typical example of CASE, but you can do more with CASE. For example, the CASE in the group by clause below:
The Code is as follows:
SELECT 'number of tidles ', Count (*)
FROM titles
GROUP
CASE
WHEN price is null then 'unpriced'
WHEN p
No. Use case when instead.For example, the following statement shows the Chinese year and monthCopy codeThe Code is as follows:Select getdate () as date, case month (getdate ())When 11 then '11'When 12 then '12'Else substring ('february 5, 1234, 80 or 90 ', month (getdate (), 1)End + 'month' as month CASE may be one of the keywords most misused in SQL. Although you may have used this keyword before to create a field, it also has more features. For example, you can use CASE in the WHERE clause.Fi
CASE may be one of the keywords most misused in SQL. Although you may have used this keyword before to create a field, it also has more features. For example, you can use CASE in the WHERE clause.First, let's take a look at the CASE syntax. In a general SELECT statement, the syntax is as follows:SELECT CASEWHEN WHEN ELSE ENDIn the above Code, you need to replace the content in angle brackets with specific parameters. The following is a simple example:USE pubsGOSELECTTitle,'Price range' =CASEWHEN
Case when syntax in SQL
Is there a switch case statement similar to the C language in SQL ??
No. Use case when instead.For example, the following statement shows the Chinese year and monthSelect getdate () as date, Case month (getdate ())When 11 then '11'When 12 then '12'Else substring ('february 5, 1234, 80 or 90 ', month (getdate (), 1)End + 'month' as month
========================================================== ==========
Case may be one of the keywords most misused in SQL. Although you m
No. Use case when instead.
For example, the following statement shows the Chinese year and monthCopyCodeThe Code is as follows: Select getdate () as date, Case month (getdate ())When 11 then '11'When 12 then '12'Else substring ('february 5, 1234, 80 or 90 ', month (getdate (), 1)End + 'month' as month
Case may be one of the keywords most misused in SQL. Although you may have used this keyword before to create a field, it also has more features. For example, you can use case in the WHERE cl
English,From tableCASE may be one of the keywords most misused in SQL. Although you may have used this keyword before to create a field, it also has more features. For example, you can use CASE in the WHERE clause.First, let's take a look at the CASE syntax. In a general SELECT statement, the syntax is as follows:SELECT CASEWHEN WHEN ELSE ENDIn the above code, you need to replace the content in angle brackets with specific parameters. The following is a simple example:USE pubsGOSELECTTitle,
general SELECT statement, the syntax is as follows:Select CaseWhen When Else End
In the above Code, you need to replace the content in angle brackets with specific parameters. The following is a simple example:Use pubsGoSelectTitle,'Price range' =CaseWhen price is null then 'unpriced'When price When price between 10 and 20 then 'average'Else 'Gift to impress relatives'EndFrom titlesOrder by priceGo
This is a typical example of case, but you can do mo
software, both functional and performance, can rival commercial software on the Windows platform. Judging from the development trend, the open-source desktop environment will be accepted by more and more users.
Besides, in terms of exchange, there are two aspects: software compatibility and file format compatibility, but these two aspects are generally confusing.
I. Office Suite
In daily use, the most commonly used include word processing and workbooks. Office kits, such as demo software. Mic
Http://feifei.im/archives/93——————————————————————————————————————————————The project to use the function of doc to PDF, some Google summed up three ways (free program), so one after another to try to do a summary record, the next time to use direct check, save the forgotten ...Method 1.poi Read Doc + itext generate PDF (most convenient, worst-performing, cross-platform)Method 2.jodconverter + OpenOffice (general format implementation of the effect is
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.