The entire Indonesian Declaration of Independence is only a few sentences long, was written the night before and is signed by 2 people
Indonesia won their independence in 1949, four years after officially declaring their independence.
That declaration is only a few sentences long, though, and was only written the night before it was presented. It was also only signed by two people.
In 1945, Indonesia had plans to declare their independence.
The declaration was to be signed by the 27 members of the Preparatory Committee for Indonesian Independence symbolically representing the new nation's diversity, but the more radical members argued that there would be credibility issues if that were the case.
Instead, a compromise was reached to have only two people sign it: Sukarno and Mohammad Hatta, who signed "In the name of the people of Indonesia".
The reason the declaration was drafted in such a hurry is because they wanted to take advantage of one particular recent event: the unconditional surrender of Japan to the allies after the bombing of Nagasaki.
The entire declaration goes as follows (translated into English):
WE THE PEOPLE OF INDONESIA HEREBY DECLARE THE INDEPENDENCE OF INDONESIA. MATTERS WHICH CONCERN THE TRANSFER OF POWER AND OTHER THINGS WILL BE EXECUTED BY CAREFUL MEANS AND IN THE SHORTEST POSSIBLE TIME. DJAKARTA, 17 AUGUST 1945 IN THE NAME OF THE PEOPLE OF INDONESIA SOEKARNO—HATTA